aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.34k stars 644 forks source link

How to do model.pth to model.pt , #621

Open Micla-SHL opened 8 months ago

Micla-SHL commented 8 months ago

Traceback (most recent call last): File "demo/demo.py", line 90, in predictions, visualized_output = demo.run_on_image(img) File "/Micla/Project/AdelaiDet/demo/predictor.py", line 77, in run_on_image traced_script_model = torch.jit.trace(predictions,self.predictor(image)) File "/Micla/Program/Anaconda3/envs/ABCNet/lib/python3.8/site-packages/torch/jit/_trace.py", line 785, in trace name = _qualified_name(func) File "/Micla/Program/Anaconda3/envs/ABCNet/lib/python3.8/site-packages/torch/_jit_internal.py", line 1000, in _qualified_name raise RuntimeError("Could not get name of python class object") RuntimeError: Could not get name of python class object

Micla-SHL commented 8 months ago

I don't know what jit really needs (model, image)