Skip to content
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 when tying to Usiigaci weigths: ValueError: Layer #362 (named "anchors") expects 1 weight(s), but the saved weights have 0 element(s). #27

Open
avnerst opened this issue Jun 9, 2022 · 0 comments

Comments

@avnerst
Copy link

avnerst commented Jun 9, 2022

hey!
my project also involves cell detection, so I thought I'd try training my CNN using your pre-trained weights.
but when I try i get the following error:
ValueError: Layer #362 (named "anchors") expects 1 weight(s), but the saved weights have 0 element(s).
The training works fine for pretrained coco weigths for example.
this is the code i use to load the weights:
model = MaskRCNN(mode='training', model_dir='./', config=config) model.load_weights('Usiigaci_3.h5', by_name=True, exclude=["mrcnn_class_logits", "mrcnn_bbox_fc", "mrcnn_bbox", "mrcnn_mask"])

please let me know if you understand why is this happening.
thanks!!

@avnerst avnerst changed the title error when tying to load your weigths: ValueError: Layer #362 (named "anchors") expects 1 weight(s), but the saved weights have 0 element(s). error when tying to Usiigaci weigths: ValueError: Layer #362 (named "anchors") expects 1 weight(s), but the saved weights have 0 element(s). Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant