Verg-Avesta / CounTR

CounTR: Transformer-based Generalised Visual Counting
https://verg-avesta.github.io/CounTR_Webpage/
MIT License
92 stars 9 forks source link

[Reproduce] Cannot Reproduce the results. #1

Closed wjun0830 closed 1 year ago

wjun0830 commented 1 year ago

Hello. Thank you for the great work.

However, under the given instructions with the pretrained weight, I could not reproduce the reported result on FSC-147.

Actually, due to the error regarding 'torch._six container_abcs', I could not run the evaluation code with torch==1.10. (Same error occurs even with 3090Ti server)

Then, when I tried to lower the torch version to 1.8 which is stable, the performance on the test set becomes "MAE : 14.98, MSE : 106.51".

Is there any way to fix this issue and reproduce the reported results? Or, if may, can you provide the docker image?

Verg-Avesta commented 1 year ago

Sorry to make you confused. These problems are caused by my negligence.

About your first problem of pytorch 1.10, we used timm==0.3.2 in our job, for which a fix is needed to work with PyTorch 1.8.1+. I have added this in the readme.md file. The change of the environments' version usually cause the result to change about 0.3 in MAE.

About your second problem of the low performance, I apologize for uploading a wrong test file used for zero-shot counting without test-time augmentation. I have also uploaded the right test file for few-shot counting with test-time augmentation, and you can check whether the results can be reproduced with it.

If you can reproduce the corresponding results, you can close this issue. If there are still other problems, you can continue to contact me.

Best wishes.