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

Pre-trained models #5

Closed
fsbarros98 opened this issue Jul 18, 2024 · 3 comments
Closed

Pre-trained models #5

fsbarros98 opened this issue Jul 18, 2024 · 3 comments

Comments

@fsbarros98
Copy link

Hello there, I was wondering where did you get the pre-trained HED model from your config /mnt/fry2/landmarkdb/models/pytorch/weights/hed/sniklaus_github.pth, the one I get from the https://github.com/sniklaus/pytorch-hed has different model layer names so I can't load it directly on this code, did you train a model or simply changed the names of the layers from this one?

@mohwald
Copy link
Owner

mohwald commented Jul 20, 2024

Hi @fsbarros98

Thanks for the question.

The weights are those from sniklaus, but scaled down for [0, 1] pixel range.

You can now replace the path /mnt/fry2/... you are asking about with http://ptak.felk.cvut.cz/personal/jenicto2/download/iccv23_gan/hed_sniklaus_github.pth

Tommorow, I will fix the link in the yaml scenarios.

@mohwald
Copy link
Owner

mohwald commented Jul 21, 2024

I fixed now the weights loading so they are downloaded if needed: bce54f6

Layer names are different and correspond to mdir/components/model/network/hed.py Weights are the same like in sniklaus/pytorch-hed.

@fsbarros98, please let me know if you can now load the weights now.

@fsbarros98
Copy link
Author

Yes, thank you so much! :)

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