yuval-alaluf / restyle-encoder

Official Implementation for "ReStyle: A Residual-Based StyleGAN Encoder via Iterative Refinement" (ICCV 2021) https://arxiv.org/abs/2104.02699
https://yuval-alaluf.github.io/restyle-encoder/
MIT License
1.03k stars 156 forks source link

Invalid Syntax #42

Closed corranmac closed 3 years ago

corranmac commented 3 years ago

Think I should have everything set up correct but I get an invalid syntax when I run

python scripts/train_restyle_psp.py \ --dataset_type=fashion \ --encoder_type=ResNetBackboneEncoder \ --exp_dir=experiment/restyle_psp_ffhq_encode \ --workers=8 \ --batch_size=8 \ --test_batch_size=8 \ --test_workers=8 \ --val_interval=5000 \ --save_interval=10000 \ --start_from_latent_avg \ --lpips_lambda=0.8 \ --l2_lambda=1 \ --w_norm_lambda=0 \ --id_lambda=0.1 \ --input_nc=6 \ --n_iters_per_batch=5 \ --output_size=256 \ --stylegan_weights=pretrained_models/stylegan2-ffhq-config-f.pt

yuval-alaluf commented 3 years ago

Can you please show where you get the invalid syntax by sending the stack trace?