-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
How can I test/evaluate my custom model and custom dataset when my model is loaded via torch.hub? #13136
Comments
@Rich2020 hello, Thank you for reaching out and for providing detailed information about your issue. It looks like you're trying to evaluate your custom model using the To evaluate your custom model, you should load it without the
If you encounter any issues, please ensure you are using the latest versions of pip install --upgrade torch
pip install --upgrade git+https://github.com/ultralytics/yolov5.git If the problem persists, please provide a minimum reproducible code example so we can investigate further. You can find more details on creating a minimum reproducible example here. Thank you for your cooperation, and feel free to reach out if you have any further questions! 😊 |
@glenn-jocher Thank you so much. You always respond so quickly and with such helpful answers. I really appreciate all that you do for the world of CV. |
Hello @Rich2020, Thank you for your kind words! The credit truly goes to the amazing YOLO community and the dedicated Ultralytics team. I'm glad to hear that setting If you have any more questions or run into any other issues, feel free to reach out. We're here to help! 😊 Best of luck with your project, and happy coding! Warm |
ABGJE-F32IJ-KL892O-P870T-UVW9Y |
Hello @fsafsfda-KL892O-P870T-UVW9Y, Thank you for reaching out and for your detailed report. To assist you effectively, we need a minimum reproducible code example. This helps us understand the context and reproduce the issue on our end. You can find guidelines on how to create one here. Additionally, please ensure you are using the latest versions of pip install --upgrade torch
pip install --upgrade git+https://github.com/ultralytics/yolov5.git Once you've done that, if the issue persists, please share the reproducible code example so we can investigate further. Thank you for your cooperation, and we look forward to helping you resolve this issue! 😊 |
Search before asking
Question
I have trained a custom model and now I want to evaluate/test it on a different dataset (the classes/labels are the same in this dataset as what the model was trained on).
I load my model via torch.hub and I am trying to evaluate:
results = model.val(data='data/config.yml', conf=0.25, iou=0.45, save_json=True, save_conf=True)
But this just errors:
I tried to find the correct documentation online, but none of the examples using torch say a word about evaluation or testing.
Additional
No response
The text was updated successfully, but these errors were encountered: