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

why #27

Open
ld-xy opened this issue Jan 3, 2025 · 1 comment
Open

why #27

ld-xy opened this issue Jan 3, 2025 · 1 comment

Comments

@ld-xy
Copy link

ld-xy commented Jan 3, 2025

Why is your code on github different from the code on huggingface? ? ? ?

@niki-amini-naieni
Copy link
Owner

The Hugging Face App is meant for simple single-image inference and does not have adaptive cropping or the SAM test-time normalization applied. On the other hand, the GitHub code has these additions. The reason for this is that the app is a simpler stripped-down version of the code intended for users to try out custom images, etc... On the other hand, the GitHub code is intended to show how to exactly reproduce the results from the paper. The Hugging Face app code is based on the GitHub code. The pretrained model is the same for both codebases though. In short, the Hugging Face code is a simplified version of the GitHub code, but both repositories use the same pretrained CountGD model.

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