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

AttributeError: 'NoneType' object has no attribute 'HasField' #699

Open
rku1999 opened this issue Mar 3, 2024 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'HasField' #699

rku1999 opened this issue Mar 3, 2024 · 1 comment

Comments

@rku1999
Copy link

rku1999 commented Mar 3, 2024

Firstly thank you for the awesome work.

I've been trying out the demo Jupyter notebooks on Colab but I'm having issues exporting the quantized and optimized model.
Screenshot from 2024-03-02 16-23-24

@ryouchinsa
Copy link

Thanks for writing the issue.

Installing the old onnxruntime version solved the problem in our environment.
pip3 install onnxruntime==1.16.0

We could export the quantized onnx model.
python3 scripts/export_onnx_model.py --checkpoint sam_vit_b_01ec64.pth --model-type vit_b --output sam_vit_b_01ec64.onnx --quantize-out sam_vit_b_01ec64_q.onnx

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

2 participants