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
Error in loading weights #6
Comments
This error is usually related to the number of classes in the dataset. Can you give me some more specifics? What did you try to run? |
I ran with a class file .txt made only by three classes. What exactly is the txt classe file that i should use? |
I ran the command : python segment.py -i set/ -f -p ../Mask_RCNN/ -w pretrained_weights/coco_10/mask_rcnn_bags_0006.h5 -c classes/products.txt But this still gives me the error about the weights: Traceback (most recent call last): |
Oh I think the problem is that you're trying to get initial segmentations for a custom dataset (with different number of classes) using the pre-trained model for the products dataset used in this repo. You can generate the initial segmentations using Mask RCNN model for your custom dataset only if you train a Mask RCNN model for it. |
raise ValueError(err.message)
ValueError: Dimension 1 in both shapes must be equal, but are 92 and 84 for 'Assign_682' (op: 'Assign') with input shapes: [1024,92], [1024,84].
Any help would be appreciated,
Thanks!
The text was updated successfully, but these errors were encountered: