From e707bc8dde5a283ac3b2121b7fe0f1cac1784891 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 24 Dec 2023 06:25:24 -0600 Subject: [PATCH] re-enable torch extraction by default in legacy converter --- api/onnx_web/convert/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/onnx_web/convert/utils.py b/api/onnx_web/convert/utils.py index 7785007b..6b4dca35 100644 --- a/api/onnx_web/convert/utils.py +++ b/api/onnx_web/convert/utils.py @@ -78,7 +78,7 @@ class ConversionContext(ServerContext): def from_environ(cls): context = super().from_environ() context.control = get_boolean(environ, "ONNX_WEB_CONVERT_CONTROL", True) - context.extract = get_boolean(environ, "ONNX_WEB_CONVERT_EXTRACT", False) + context.extract = get_boolean(environ, "ONNX_WEB_CONVERT_EXTRACT", True) context.reload = get_boolean(environ, "ONNX_WEB_CONVERT_RELOAD", True) context.share_unet = get_boolean(environ, "ONNX_WEB_CONVERT_SHARE_UNET", True) context.opset = int(environ.get("ONNX_WEB_CONVERT_OPSET", DEFAULT_OPSET))