-
Notifications
You must be signed in to change notification settings - Fork 42
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
Comments
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~ |
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. |
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?
The text was updated successfully, but these errors were encountered: