re-enable torch extraction by default in legacy converter
This commit is contained in:
parent
da6e813638
commit
e707bc8dde
|
@ -78,7 +78,7 @@ class ConversionContext(ServerContext):
|
||||||
def from_environ(cls):
|
def from_environ(cls):
|
||||||
context = super().from_environ()
|
context = super().from_environ()
|
||||||
context.control = get_boolean(environ, "ONNX_WEB_CONVERT_CONTROL", True)
|
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.reload = get_boolean(environ, "ONNX_WEB_CONVERT_RELOAD", True)
|
||||||
context.share_unet = get_boolean(environ, "ONNX_WEB_CONVERT_SHARE_UNET", True)
|
context.share_unet = get_boolean(environ, "ONNX_WEB_CONVERT_SHARE_UNET", True)
|
||||||
context.opset = int(environ.get("ONNX_WEB_CONVERT_OPSET", DEFAULT_OPSET))
|
context.opset = int(environ.get("ONNX_WEB_CONVERT_OPSET", DEFAULT_OPSET))
|
||||||
|
|
Loading…
Reference in New Issue