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? #1

Closed
zuru opened this issue Jul 13, 2020 · 3 comments
Closed

Pre-trained models? #1

zuru opened this issue Jul 13, 2020 · 3 comments

Comments

@zuru
Copy link

zuru commented Jul 13, 2020

Hello, are there any pre-trained models available for the PyTorch implementation?

If not, has this training implementation been verified to (closely?) reproduce the paper's results with the default hyperparameters (i.e. train for 100 epochs with a batch size of 4)?

A known issue is the incompatibility between PyTorch's and TensorFlow's weight decay which I suspect will influence results compatibility.

@palver7
Copy link
Owner

palver7 commented Jul 14, 2020

@zuru No, there are no pre-trained models for this implementation. I cannot reproduce the paper's performance and am still figuring out what bug is responsible for the performance gap. Thank you for pointing out about the incompatibility of the weight decay.

@zuru
Copy link
Author

zuru commented Jul 14, 2020

Setting weight decay to 0.0 improves training and the qualitative results are better indeed but the reported metrics (tried with snapshots @100 and @200 epochs):

EDGES: IoU: 0.153; Accuracy: 0.818; Precision: 0.230; Recall: 0.302; f1 score: 0.260
CORNERS: IoU: 0.046; Accuracy: 0.963; Precision: 0.099; Recall: 0.074; f1 score: nan

indicate something is not there yet.

The resulting corner maps though are noisy and corner detection does not behave very well.

Please let me know if you manage to identify the issue and reproduce the results.

@palver7
Copy link
Owner

palver7 commented Aug 27, 2020

@zuru Hi zuru, I have converted the pretrained weights from the original CFL to PyTorch and also implemented the model that can reproduce the results in the paper during inference. (there are a few differences in the metrics, they are close) The models have TFCFL in their names. I'll also put the link to the pretrained weights in README. Now, I still have not figured the exact training strategy used by Clara et.al so the training performance still does not come close to the inference performance.

@zuru zuru closed this as completed Aug 31, 2020
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