Closed Z-Xiong closed 2 months ago
Hello again, thank you so much for your quick response and sharing your code that fast. This helped a lot.
I've got only one question about precision casting. The ostrack-256-ep300.onnx model that you have shared in google drive link before includes a module named "Cast" between Sub and Pow modules (I've checked the model structure with netron.app)
I couldn't export this model with the code you have provided. Did you do some post-processing over the onnx model, probably for FP32 casting? If you remember something like that it would be great to have that post-process step as well.
Thank you in advance.
Thank you for your feedback. Last time I uploaded the code for converting to onnx, but the one in Google Drive is the onnx model needed for converting to mnn, they are not the same.
Dowdload pretrained-model to the project root path:
output/checkpoints/train/ostrack/vitb_256_mae_ce_32x4_ep300/OSTrack_ep0300.pth.tar
torch2any.zip
Try running the code torch2mnn.py as follows:
python torch2mnn.py ostrack vitb_256_mae_ce_32x4_ep300
You will get the onnx model same as the model in google drive.
If you have any further questions, feel free to reach out again.
Originally posted by @ozgyal in https://github.com/Z-Xiong/OSTrack-mnn/issues/2#issuecomment-2307164993