Dassl.pytorch icon indicating copy to clipboard operation
Dassl.pytorch copied to clipboard

use adabn.py

Open yuanhaorannnnnn opened this issue 2 years ago • 1 comments

At first, thanks for your work, it's a nice project in DA, DG filed. I'm using your adabn.py to deploy AdaBN method on my model, I read the code, found it's pretty simple and I think maybe there is somthing missing? From my understanding, AdaBN method is to use the mean and var of the target domain to replace the ones from the training stage on BN layers, but I just found reset running stats function in the adabn.py.

I'm looking forwar to your reply, thanks!

yuanhaorannnnnn avatar Dec 28 '22 06:12 yuanhaorannnnnn

There is an error when I tried to run adabn.py, the breakpoint appears at the following code: def check_cfg(self, cfg): assert check_isfile( cfg.MODEL.INIT_WEIGHTS ), "The weights of source model must be provided" It seems I haven't offer the INIT_WEIGHTS previously however I couldn't find anywhere to solve it.

Liu2126 avatar Jun 24 '24 12:06 Liu2126