Closed Alecapra96 closed 2 months ago
This looks like an error with the ONNX library installation. Unfortunately, I don't have a Windows machine at hand to reproduce this error.
One potential solution is to not import onnx when the export function is not called (which is the case since we are just using MobileSAMV2's python backend for inference). I pushed a commit here that may fix this issue for you. Can you try to remove the cached MobileSAMV2 codebase from your torch.hub cache and try the installation process again in a fresh conda environment?
Any updates on this? If I don't receive a response in the next few days, I will assume my commit above works and close the issue.