| | |
| | | logging.basicConfig(level=log_level) |
| | | |
| | | if kwargs.get("debug", False): |
| | | import pdb; pdb.set_trace() |
| | | import pdb |
| | | |
| | | pdb.set_trace() |
| | | |
| | | if "device" not in kwargs: |
| | | kwargs["device"] = "cpu" |
| | | model = AutoModel(**kwargs) |
| | | |
| | | res = model.export(input=kwargs.get("input", None), |
| | | res = model.export( |
| | | input=kwargs.get("input", None), |
| | | type=kwargs.get("type", "onnx"), |
| | | quantize=kwargs.get("quantize", False), |
| | | fallback_num=kwargs.get("fallback-num", 5), |
| | |
| | | print(res) |
| | | |
| | | |
| | | if __name__ == '__main__': |
| | | if __name__ == "__main__": |
| | | main_hydra() |