-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
After Model training on HUB, while testing model getting below error #682
Comments
@kumarneeraj2005 We just tested Pose inference on our end using a model trained on the Ultralytics COCO8-POSE Dataset and everything seems to be working fine. The error you are seeing could be happening because of:
Can you please share your model ID with us so we can investigate this further? |
@sergiuwaxmann |
@kumarneeraj2005 The size shown in the screenshot you shared represents the size of the model + all exported formats. Just by looking at the screenshot, I imagine the first two models are identical - the only difference being: some exports performed on the the second one. Please share the model IDs (ID in the URL on the model page). |
@sergiuwaxmann https://hub.ultralytics.com/models/ZtmNMtUkGNAS1yqYM2AB Model - 7 May 2024 12:41 |
@kumarneeraj2005 Looks like inference is working correctly for the model ID you provided. {
"data": [
{
"class": 0,
"confidence": 0.952075719833374,
"keypoints": [
0.596757173538208,
0.6352880597114563,
1.0,
0.6028388142585754,
0.694744348526001,
1.0,
0.6017828583717346,
0.7683327198028564,
1.0
],
"name": "kidney"
}
],
"message": "Inference complete.",
"success": true
} Do you still have this issue? |
@sergiuwaxmann Yes, I understand; it is working perfectly for you and for me, but a few photographs are presenting that issue. I discovered the problem: your platform's error handling is ineffective. |
@kumarneeraj2005 What do you mean by "error handling is ineffective"? Can you maybe explain what is the issue you are facing (Minimal Reproducible Example) and share one of the images that is causing the issue so that we can improve our platform? |
@sergiuwaxmann Keep the threshold high, for example, 80, and if the picture object is faded (yolo could not recognize the object and returned null), the platform should display the correct message instead of an error message. |
I`m also having this problem. My old models works fine, but new model does not. New model: https://hub.ultralytics.com/models/MFE4Iwe37kJRfqy9440W Beside the preview error, I also meet another error when exporting, while the old model works fine. Thank you for the hard work and expect this issue to be fixed soon. |
@suren1986 The POSE preview issue was solved and the fix will be deployed in the next release (by the looks of it, tomorrow by EOD). If you are having a similar issue for segmentation, it might be the same problem with #691. Can you maybe share an image that has this issue? Or does this issue occur for any image? Regarding the export, does this issue occur for any new models or just for the model you shared? Can you train a new model for 2-3 epochs and check if you have the same issue? Also, maybe before training a new model, can you try again (it could be that the server faced a temporary issue)? If you still have this issue, can you open a new issue in order to properly log this issue and so that other users can easily find the discussion? |
I have same problem either. I tried changing both 'Confidence Threshold' and 'IoU Threshold", but it still doesn't works. Here's my model ID : https://hub.ultralytics.com/models/D9ttDl0mWIyPHisfp4lQ |
@sctcorp01 hi there! Thanks for sharing the details. It seems like you're encountering a known issue with the preview functionality for certain models. We are actively working on a fix for this. In the meantime, could you please try running your model using the API directly with a sample image to see if the inference works outside of the preview environment? Here's a quick example on how to do this using Python: import requests
# Replace 'MODEL_ID' and 'API_KEY' with your actual model ID and API key
url = "https://api.ultralytics.com/v1/predict/D9ttDl0mWIyPHisfp4lQ"
headers = {"x-api-key": "your_api_key_here"}
with open("path/to/your/image.jpg", "rb") as image_file:
files = {"image": image_file}
response = requests.post(url, headers=headers, files=files)
print(response.json()) This might help us understand if the issue is specific to the preview or a broader problem with the model. Let us know how it goes! 🚀 |
Thank you for your reply. |
Hola! I tried running your Python code in Visual Studio Code with .png image file. Here's my log message. Thanks a lot. |
@kumarneeraj2005 @suren1986 @sctcorp01 |
Excellent! Thank you for your hard work! |
|
@kumarneeraj2005 I can’t reproduce this issue, but I will investigate further. When you export your model, the weights used for inference do not change. Are you sure you were receiving inference results previously on the image you are trying now? I ask because it might simply be that the model is unable to detect anything in the current image. |
Yes @sergiuwaxmann I am confirming earlier it was functioning, I have trained three pose models, previously all three models were working well, but suddenly nothing is working, that is, it is not detecting. on your platform. But same model working on my local system after export. |
@kumarneeraj2005 Can you please share the IDs of these models? |
@kumarneeraj2005 I understand. |
@kumarneeraj2005 Thank you! |
Could you please let me know , if it's bug or not ? |
Hi @kumarneeraj2005, We have internally checked the issue and are unable to reproduce it on our end. We trained the models using the official COCO8-pose dataset and found that after training, the inference is working fine. Additionally, there are no issues with exports. You can verify the model using this link: https://hub.ultralytics.com/models/Y88Hm7b757UzLUO0ZSju?tab=preview Please let us know if there are any specific steps or configurations you are using that might help us replicate the problem. |
@sergiuwaxmann @yogendrasinghx |
@kumarneeraj2005 I will investigate this again. Thank you! |
@sergiuwaxmann @pderrenger Could you please tell me if you have a prompt support system? If your platform isn't operating, what's the sense of paying a monthly fee? I'd want to cancel my membership; it appears that your platform is not yet ready for production. |
@kumarneeraj2005 I apologize for the inconvenience. Based on our tests, inference works fine with the official POSE datasets and models. The inference error you are facing is hard to reproduce as we don't have access to your dataset, reason why it takes time to debug. You can cancel your subscription at any time from the Settings page under the Billing & License tab by clicking on the Manage Subscription button. |
Ok i am cancelling the Paid HUB subscription., |
@kumarneeraj2005 Once again, I apologize for the inconvenience. Thank you for your time with us! |
Search before asking
HUB Component
Inference
Bug
Once model training on HUB Pro is completed, during preview model testing for pose detection, your platform reports a problem... could you kindly tell me what the reason is?
Environment
No response
Minimal Reproducible Example
No response
Additional
No response
The text was updated successfully, but these errors were encountered: