yiranran / APDrawingGAN

Code for APDrawingGAN: Generating Artistic Portrait Drawings from Face Photos with Hierarchical GANs (CVPR 2019 Oral)
Apache License 2.0
785 stars 145 forks source link

How to generate a new landmark txt file for a new photo? #24

Open wujoho opened 1 year ago

wujoho commented 1 year ago

I put a new photo test.png in folder _dataset\data\testsingle, run the command: python test.py --dataroot dataset/data/test_single --name formal_author --model test --dataset_mode single --norm batch --use_local --which_epoch 300 --gpu_ids -1 got the below error:

FileNotFoundError: [Errno 2] No such file or directory: 'dataset/landmark/ALL\test.txt'

How to generate a new landmark txt file for this new photo?

feitgemel commented 1 year ago

Did you got an answer ?

feitgemel commented 1 year ago

Hi, Can you elaborate what are those txt files inside the Landmark folder? How can I generate a file for my one image ?

I took a fresh image, convert it to 512X15 , and created a mask for the head. How to generate this landmark txt file ?

Eran

wujoho commented 1 year ago

No, I am using Windows OS, and one of the prerequisites is using Linux or macOS, so could be my environment issue