stargan-v2
stargan-v2 copied to clipboard
eval bug
`Traceback (most recent call last): File "/opt/data/private/starganv2/stargan-v2-master/metrics/eval.py", line 76, in calculate_metrics x_ref = next(iter_ref).to(device) UnboundLocalError: local variable 'iter_ref' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 182, in
the command is "nohup python main.py --mode train --num_domains 4 --w_hpf 1 --lambda_reg 1 --lambda_sty 1 --lambda_ds 1 --lambda_cyc 1 --train_img_dir data/Chinese-Landscape-Painting-Dataset-main/train --val_img_dir data/Chinese-Landscape-Painting-Dataset-main/val --num_workers 0 --batch_size 4 > /opt/data/private/starganv2/mylog 2>&1 &"
I give up to handle it
same question
setting --val_batch_size=1
solves the issue.