|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
gan="stylegan2_car512" |
|
stylegan_space="W+" |
|
stylegan_layer=11 |
|
corpus="cars" |
|
|
|
|
|
num_latent_support_dipoles=64 |
|
min_shift_magnitude=0.1 |
|
max_shift_magnitude=0.2 |
|
lss_beta=0.5 |
|
|
|
|
|
linear=false |
|
styleclip_like=false |
|
loss="contrastive" |
|
temperature=0.07 |
|
css_beta=0.5 |
|
|
|
|
|
batch_size=3 |
|
max_iter=20000 |
|
|
|
|
|
|
|
|
|
linear_text="" |
|
if $linear ; then |
|
linear_text="--linear" |
|
fi |
|
|
|
styleclip="" |
|
if $styleclip_like ; then |
|
styleclip="--styleclip" |
|
fi |
|
|
|
python train.py --gan=${gan} \ |
|
--truncation=0.7 \ |
|
--stylegan-space=${stylegan_space} \ |
|
--stylegan-layer=${stylegan_layer} \ |
|
--corpus=${corpus} \ |
|
--num-latent-support-dipoles=${num_latent_support_dipoles} \ |
|
--lss-beta=${lss_beta} \ |
|
--loss=${loss} \ |
|
--temperature=${temperature} \ |
|
--css-beta=${css_beta} \ |
|
${linear_text} \ |
|
${styleclip} \ |
|
--min-shift-magnitude=${min_shift_magnitude} \ |
|
--max-shift-magnitude=${max_shift_magnitude} \ |
|
--batch-size=${batch_size} \ |
|
--max-iter=${max_iter} \ |
|
--log-freq=10 \ |
|
--ckp-freq=100 |
|
|