Download parse_utils/detectron2/export/__init__.py from tigger13/fastfit: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/spaces/tigger13/fastfit/resolve/main/parse_utils/detectron2/export/__init__.py
- Command line
-
hf download hf://spaces/tigger13/fastfit/parse_utils/detectron2/export/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/tigger13/fastfit/resolve/main/parse_utils/detectron2/export/__init__.py
673 Bytes
| # -*- coding: utf-8 -*- | |
| import warnings | |
| from .flatten import TracingAdapter | |
| from .torchscript import dump_torchscript_IR, scripting_with_instances | |
| try: | |
| from caffe2.proto import caffe2_pb2 as _tmp | |
| from caffe2.python import core | |
| # caffe2 is optional | |
| except ImportError: | |
| pass | |
| else: | |
| from .api import * | |
| # TODO: Update ONNX Opset version and run tests when a newer PyTorch is supported | |
| STABLE_ONNX_OPSET_VERSION = 11 | |
| def add_export_config(cfg): | |
| warnings.warn( | |
| "add_export_config has been deprecated and behaves as no-op function.", DeprecationWarning | |
| ) | |
| return cfg | |
| __all__ = [k for k in globals().keys() if not k.startswith("_")] | |