-
Notifications
You must be signed in to change notification settings - Fork 8
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
can't reproduce results on cub dataset #1
Comments
Same issue here. I've created the conda env with the provided environment.yaml and used the training command in the instructions, but I can only reach R@1=~68% for CUB dataset with the config as it is. The packages version are the same as the environment.yaml stated, I tried the setup with cuda 10 and cuda 11 (as sometimes this can create different results). But none of go more than 68% for cub. I can only reproduce the result with the provided weights. It would be nice if you can provide some further insights on how to reach the performance reported. |
Hey everyone :) sorry for the late result! We lately experienced something similar. Some of the layers we use (especially torch scatter) are unfortunately undeterministc. Also, batch sampling has a significant impact on the performance. If you re-train the network you should be able to reproduce the results (at least this is what our experiments showed). Please let me know if you have more questions! |
Hi Jenny, thanks for your reply. I am using the same config as provided in your repo and the command shown on README. Did you use any specific setting different from the one provided in Did you find out ways to make the process more deterministic or closer to your runs? As you mentioned above, I think this could be a strong possibility why I cannot reproduce the result. Thanks in advance! :D |
We used the same config file and my students were actually able to reproduce the performance :( My students used the following to make it more deterministic:
However, I'm sorry that I cannot help you more, reproducibility in pytorch is a pain... |
Hi @JennySeidenschwarz, thanks very much for sharing the code with clear instructions. Recently I have tried training on cub dataset but I only get 67.07% best R@1, which is worse than the reported result (70.3%). I have created the env with the provided environment.yaml and used the training command in the instructions. I only modify the bssampling setting below from "NumberSampler" to "no".
intra_batch/config/config_cub_train.yaml
Lines 53 to 55 in 5d10e8d
Besides, I have tried testing the provided best_weights on cub dataset and the result is 70.3%, so I think the downloaded dataset is correct. I wonder do I miss anything and could you give me some suggestions for getting the reported result? Thanks!
The text was updated successfully, but these errors were encountered: