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

About the aligned crop #33

Open
cainiaoqiuzhu opened this issue Apr 23, 2021 · 3 comments
Open

About the aligned crop #33

cainiaoqiuzhu opened this issue Apr 23, 2021 · 3 comments

Comments

@cainiaoqiuzhu
Copy link

Thank you for your contribution about the HED in pytorch. About the aligned crop, I'd like to ask you some questions, why did not you use the offset which got by (offset = (Original_length - desired length ) / 2) to crop the image?

@xwjabc
Copy link
Owner

xwjabc commented Apr 23, 2021

Hi @cainiaoqiuzhu, it is okay to simply calculate the offset in your shown way. However, since the aim of this repo is to reproduce the Caffe version of HED as much as possible and re-use the pretrained checkpoints, I follow the same cropping (aligned crop) used in Caffe.

@cainiaoqiuzhu
Copy link
Author

Hi @cainiaoqiuzhu, it is okay to simply calculate the offset in your shown way. However, since the aim of this repo is to reproduce the Caffe version of HED as much as possible and re-use the pretrained checkpoints, I follow the same cropping (aligned crop) used in Caffe.

Thank you for your reply. Actually, I used the offset got by (offset = (Original_length - desired length ) / 2) to train the HED net, I found that the F1-score is much lower than yours, I want to use your crop way to other edge_detection algorithm, such as RCF, DexiNed. Could you explain the principle of your cropping way(aligned crop), or could you tell me how to learn this way. Thank you so much again~

@xwjabc
Copy link
Owner

xwjabc commented Apr 25, 2021

Hi, actually the aligned cropping is to mimic the corresponding crop function in Caffe. I would suggest you read the discussion first and attempt to understand the reference code in original HED.

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