Skip to content

Model Fails to load darknet weights when using custom classes. #5

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

Open
nasheedyasin opened this issue Jan 13, 2021 · 2 comments
Open

Comments

@nasheedyasin
Copy link

Following is the message I recieve:
failed to read all weights, # of unread weights: 0 load from ./darknet_base_model/yolov4.weights

I am training it on the ASL (American Sign Language) dataset and it has 26 classes from A-Z.
The class file is formatted as per standard (1 class per line).

@gajdosech2
Copy link

Is it necessary to use the pretrained weights in your case? The dataset you are using looks quite different from VOC/COCO anyway, so maybe you should just train the network from scratch.

@nasheedyasin
Copy link
Author

They are different no doubt, but certain low level features that would be captured at the upper levels of the model would be fairly similar and I would ideally look to having those layers frozen, leaving the deeper layers, which more dataset specific features, unfrozen

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

2 participants