Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

unsupported type: Instances #3

Open
Gavinic opened this issue Nov 1, 2023 · 0 comments
Open

unsupported type: Instances #3

Gavinic opened this issue Nov 1, 2023 · 0 comments

Comments

@Gavinic
Copy link

Gavinic commented Nov 1, 2023

Thanks for your great work!!
But i have got some error,when i try to convert the .pth model to onnx!
image

xxxxx/DeepSolo/adet/modeling/text_spotter.py:260: TracerWarning: Converting a tensor to a Python number might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
width = input_per_image.get("width", image_size[1].item())

RuntimeError: Only tuples, lists and Variables are supported as JIT inputs/outputs. Dictionaries and strings are also accepted, but their usage is not recommended. Here, received an input of unsupported type: Instances

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

No branches or pull requests

1 participant