-
Notifications
You must be signed in to change notification settings - Fork 107
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
Not detecting the custom object #36
Comments
It looks like the model was unable to detect any stamps in that image. It could be that the image you used was very difficult for it to predict on, or possibly your model has poor accuracy even after training. You can check how well your model is doing by passing it a validation dataset and setting |
Hi, thanks for the reply Have updated the code like below
Got the issue which was i guess open,
Input image shape for prediction is (4001, 2517, 3) As per your suggestion to test it on validation set, have the following code
but could not find graph as losses is Nan output:
|
For the first error: see if the suggestions in #33 help. As for the nan losses, could you share what the output of |
Thanks for the reply alankbi! Yes, I had seen #33 but it didnot help me either... dataset[0]:
Length of Dataset:
|
I'm trying to reproduce this error, as it seems a lot of people are having it. Could you provide me with as many details as you can regarding your environment? Python version, PyTorch/torchvision versions, code environment, etc. In addition, if you're able to, it'd be helpful if you can send me your trained model file and some images through email. This will help me see whether the error is specific to certain use cases, as right now when I run the code on my end, no error occurs. |
Since I'm having the same issue, I'll share the dataset + trained model that's giving this error with you via Google Drive as well! |
I have got one conclusion that we have
i didnot get any error, also prediction did not happen and got a blank tensor when we install dependencies with We get this error
In both the cases Python Version: 3.6.9 |
@prasad01dalavi so you're saying the error goes away when you run it with @jagilley spent some time going through your Drive folder to see if I could get it to work (I created a Colab file which you can browse through, but it's very messy). It seems like there's some issue with your dataset for some reason, which is causing
I'm not sure why this is the case, but I can try looking deeper into it over the next few days. In the meantime though, hopefully this helps a bit in clearing up what exactly is happening. |
you were absolutely right! there is a problem in dataset. one of the xml file filename was not matching with image name. i removed them, rechecked the dataset and file names. continued with and boom, it predicted my object with 0.96 confidence..thanks alot |
have trained the model on about 126 images, 30% images contain two objects in a image
Output:
The text was updated successfully, but these errors were encountered: