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

Problem #45

Open
long123524 opened this issue Mar 15, 2022 · 1 comment
Open

Problem #45

long123524 opened this issue Mar 15, 2022 · 1 comment

Comments

@long123524
Copy link

The functions of load_pretrained_caffe and load_vgg16_caffe have some difference? I don't know which one I should use? Can you give me some suggests?

@xwjabc
Copy link
Owner

xwjabc commented Mar 15, 2022

load_pretrained_caffe() will load all parameters from pretrained HED caffe checkpoint, while load_vgg16_caffe() only loads the weights for VGG network.

If you want to evaluate the pretrained HED caffe checkpoint (e.g. hed_pretrained_bsds.py36pickle), please use load_pretrained_caffe().

If you want to train a new HED model, please use load_vgg16_caffe() to load VGG weights from 5stage-vgg.py36pickle and train the model on BSDS dataset.

See https://github.com/xwjabc/hed/blob/master/utils.py#L90 for more details.

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