Skip to content

To generate latent for new data, what shoud be revise under ../../GAN2Shape/gan2shape/stylegan2/stylegan2-pytorch/project_dist.sh #40

Description

@cynthia-you

Dr.Pan ,thanks for sharing your work.

I'm trying to reconstruct the 3D shape or info of old bulidng according to your repo. The inference of church(you offered) works well . But for new data , i'm a little bit confused, could you please give me some hint.

In the bash of ../../GAN2Shape/gan2shape/stylegan2/stylegan2-pytorch/project_dist.sh , you write:
python projector.py \ --ckpt checkpoints/stylegan2-synface40k-config-e.pt --size 128 \ --step 1001 --channel_multiplier 1 --synface \ --with_vgg --lr 0.1 --noise 0.05 --no_noise \ --list_path /home/xgpan/projects/GAN/unsup3d/data/synface/train/img_list_200.txt \ --img_root /home/xgpan/projects/GAN/unsup3d/data/synface/train/image \ --save_path project/synface_train_40k \ --batch_size 25 --distributed

Frist , I found that the checkpoints/stylegan2-synface40k-config-e.pt donest exist, so i revised the sh like:
!python /content/drive/MyDrive/GAN2Shape/gan2shape/stylegan2/stylegan2-pytorch/projector.py \ --ckpt /content/drive/MyDrive/GAN2Shape/checkpoints/stylegan2/stylegan2-synface-config-e.pt --size 128 \ --step 1001 --channel_multiplier 1 --synface \ --with_vgg --lr 0.1 --noise 0.05 --no_noise \ --list_path /content/drive/MyDrive/GAN2Shape/my_data/train/img_list.txt \ --img_root /content/drive/MyDrive/GAN2Shape/my_data/train/depth \ --save_path /content/drive/MyDrive/GAN2Shape/my_data/latent \ --batch_size 1

Actually, i have no idea of the exact checkpoints i should revise. As for the input size, i revised the from 128 to 64 to 256.

Since I don't know which ckpts to use, I've been arranging and combining the ckpts(/checkpoints/stylegan2/, wich your scripts/dounlad.sh mentioned) and input sizes...
Could you please tell how to revise? thanx~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions