clovaai / stargan-v2

StarGAN v2 - Official PyTorch Implementation (CVPR 2020)
Other
3.5k stars 658 forks source link

stargan-v2 NameError: name 'fname_template' is not defined #128

Open xiaochuangshu opened 2 years ago

xiaochuangshu commented 2 years ago

(stargan-v2) E:\sxc\stargan-v2-master>python main.py --mode train --num_domains 1 --w_hpf 1 --lambda_reg 1 --lambda_sty 1 --lam bda_ds 1 --lambda_cyc 1 --train_img_dir data/airplane/train --val_img_dir data/airplane/val Traceback (most recent call last): File "main.py", line 21, in from core.solver import Solver File "E:\sxc\stargan-v2-master\core\solver.py", line 22, in from core.checkpoint import CheckpointIO File "E:\sxc\stargan-v2-master\core\checkpoint.py", line 15, in class CheckpointIO(object): File "E:\sxc\stargan-v2-master\core\checkpoint.py", line 24, in CheckpointIO self.fname_template = fname_template NameError: name 'fname_template' is not defined

I encountered this problem when training the stargan-v2 code, how can I solve it?