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

BN Stats Adapt in cityscape -> ACDC #17

Closed
HaihangWu opened this issue Feb 6, 2023 · 5 comments
Closed

BN Stats Adapt in cityscape -> ACDC #17

HaihangWu opened this issue Feb 6, 2023 · 5 comments

Comments

@HaihangWu
Copy link

Dear author:
Thanks for your code of semantic segmentation adaptation from cityscape -> ACDC. However, I can not find the code of BN Stats Adapt there. Could you tell me where is this part of code? Thanks

@goirik-chakrabarty
Copy link

Hi @HaihangWu,

I am also trying to use this codebase, but somehow, I cannot understand where to put the models and the data. Could you tell me how you ran "run_base.sh", "run_cotta.sh", "run_tent.sh" ? Thanks.

@HaihangWu
Copy link
Author

Hi:
To know this, you may need to read the code. For data, you need to specify the data root in local_config/base/acdc_1024X1024_repeat. For model, I author has put it in the directory and you do not need to change the path

@qinenergy
Copy link
Owner

qinenergy commented Feb 7, 2023

Dear author: Thanks for your code of semantic segmentation adaptation from cityscape -> ACDC. However, I can not find the code of BN Stats Adapt there. Could you tell me where is this part of code? Thanks

Hi, BN Stats Adapt is a simple baseline without any training.
One way to implement it is to modify the source-only baseline model. You can change model.eval() to model.train() in the baseline inference code. You also don't need to add any loss or back propagation. This will let the batch norm layer in the decoder use the target batch statistics instead of the averaged source statistics. You can check this page if you are not sure.

@HaihangWu
Copy link
Author

Thanks for your reply. For cityscape to ACDC experiments, all the results on table 5 in the paper "Continual Test-Time Domain Adaptation" are reproducible.

@qinenergy
Copy link
Owner

Thanks, and feel free to shoot me an email if you have further questions.

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

3 participants