How to do model.pth to model.pt ,
Micla-SHL opened this issue · 1 comments
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
I don't know what jit really needs (model, image)