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 to use the provided model? #67
Comments
For test mode add "convert=True" (see file predict.py) |
LOL! That was it! |
...+ pands 1.0.xx and above don't work since Thanks a lot, Eran! I'll see If I can convert this model to PyTorch for some experiments. |
@RafayAK Didn't you receive the following error while using the pretrained model?
I saw the fix in #30 but it was related to the
|
Hi @CodeJjang. Did you try the following change for opencv4?
eg4000/SKU110K_code@8ceefcf#diff-e423f29cb3fad81e3b987d4c03d26f1d |
@eg4000 I applied that now, the
Using your pretrained weights. |
It might use fallback in rare cases. |
@CodeJjang Sorry for the late reply, unfortunately, I didn't face the same problems as you. I'll see If I can attach a sample code showing the way I tested the author's model. I'll also attach my environment setup perhaps that may come in handy. |
Setup of my Anaconda Environmentsubstitute
|
@CodeJjang https://gist.github.com/RafayAK/98988d3bbb2d1160b11a0b1d5e719da5 example of inference |
May you need the 2nd train(train_iou.py). |
@gmt710 this issue was not related to |
@RafayAK ,I met this problem too.Because I do not train the 2nd step by train_iou.py and only eval the 1st step model(train.py). |
model = models.load_model(model_path, backbone_name='resnet50',convert=True) |
Hi @RafayAK thanks for opening this issue, I met the same problem when I run the model with Then I'm trying to retrain the model with my own dataset. The training running well, but when I run prediction with my retrained model and enabling the convert by adding Is there something wrong with the training? *the retrained model can be found here |
Hi Eran, I tried to test out the pre-trained model that you graciously provided in #9, but I can't seem to figure out why it does not work?
Following is the way I'm trying to make it work:
... this is where the inference fails:
I've been looking at previously closed issues in solving this #21, #51, and #30, sadly to no avail.
Any help will be much appreciated
PS: Following are my dependencies setup:
The text was updated successfully, but these errors were encountered: