You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~$ docker run --gpus all --rm -u $(id -u):$(id -g) -it -v <PATH-TO-OFFICIAL-REPO>:/work-dir -w /work-dir stylegan2:official /bin/bash
# now you are inside docker container# run following python script to extract model weights~$ python export_weights.py
Check that 4 files are created
checkpoint
model.ckpt.data-00000-of-00001
model.ckpt.index
model.ckpt.meta
Leave docker container
~$ exit
Step 2. Working on this repository(stylegan2-tf-2.x)
Move to stylegan2-tf-2.x directory
~$ cd<PATH-TO-stylegan2-tf-2.x>
Copy 4 files that are created from step 1 to <PATH-TO-stylegan2-tf-2.x>/official-pretrained
~$ docker run --gpus all --rm -u $(id -u):$(id -g) -it -v <PATH-TO-stylegan2-tf-2.x>:/work-dir -w /work-dir stylegan2:tf.2.x /bin/bash
# now you are inside docker container# run following python script to convert model weights~$ python inference_from_official_weights.py
Check inference result images *.png
Check converted model weights ./official-converted/cuda && ./official-converted/ref