-
Notifications
You must be signed in to change notification settings - Fork 14
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
Model not Training #1
Comments
Have you tried lowering the initial learning rate? e.g. to 1e-4 |
I tried training the network with learning rate 1e-5, and the loss is ~0.234 a bit better than before. And this is the inference code that I have used. Is this correct? `
test_gmn() |
any update for the testing code? |
@agentcap Your code is missing a line to load the trained weights into the model before predicting, e.g. Otherwise, it looks good to me. |
@agentcap How did you extracted the ex_patch from the testing image as we don't have the ground truth(dot annotations) for the testing image? |
@akshitac8 You should use an exemplar patch (or multiple) from the training set. |
Hi @erikalu , in the above code snippet, there is a section under the title "attempt to load pre-trained GMN" in which we are loading the trained model. And I am passing the path to the trained model via the gmn_path argument. Can you share the trained model so that I can try to find my mistake.
Hi @akshitac8 I was not able to reproduce the results. |
Hi @agentcap, I've updated the README with the link to the pretrained weights. There is still an issue with your code, since the code snippet you mention loads the weights into the |
@NgTuong Here are some common issues/debugging tips:
|
@erikalu thank you so much |
somme one can help me please ? |
@erikalu can this be useful to count the occluded objects with multiple kinds. Say in retail shops cart |
When I trained the network with the default parameter setting, the loss is getting saturated just after 2-3 epochs. And also the results are coming out to be random. Is there something I am missing or need to change?
Thanks
The text was updated successfully, but these errors were encountered: