stargan icon indicating copy to clipboard operation
stargan copied to clipboard

How to change dataset in the pre-trained StarGAN

Open Gigibulid opened this issue 6 years ago • 5 comments

How I can add my own dataset (even if that is one image) in the pre-trained model?? I changed the --dataset value from CelebA to the name of mine but it did not work.

Gigibulid avatar Jun 13 '18 14:06 Gigibulid

I just change the --rafd_image_dir as mine 'Norland_Images' and CelebA need no change. It worked. "--dataset RaFD --image_size 256 --c_dim 5 --rafd_image_dir Norland_Images"

(However, each row of the samples are the same.)

SummerHuiZhang avatar Aug 02 '18 05:08 SummerHuiZhang

Thank you so much for your response @SummerHuiZhang !!!! However, I don't have the RaFD dataset... I only used the celebA. Is there any other way?

Gigibulid avatar Aug 13 '18 20:08 Gigibulid

I have the same question as @Gigibulid

AndreasRef avatar Aug 18 '18 23:08 AndreasRef

@Gigibulid Firstly I think you need to add your photo into the celebA folder and then add the attribute of your photo into list_attri_celeba.txt. You know, the first row of list_attri_celeba.txt is number of your photos and second all attributes (like black_hair, laughing, sad). And the other rows are the same structure like "photo_name.jpg 1 1 -1 -1 1 -1 "(1 stands for that your photo has this attributr and -1 means not ). Hope it may help you.

SummerHuiZhang avatar Aug 20 '18 06:08 SummerHuiZhang

Dear @SummerHuiZhang, Is there any code that one pass a single image into the network & then all possible states of it generated (via pre-trained model on CelebA Data Set)?

ahkarami avatar Sep 16 '18 10:09 ahkarami