Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Micla-SHL opened this issue Oct 19, 2023 · 1 comment
Open

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

Micla-SHL opened this issue Oct 19, 2023 · 1 comment

Comments

@Micla-SHL
Copy link

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
Copy link
Author

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant