Download link: https://drive.google.com/drive/folders/0B7EVK8r0v71pWEZsZE9oNnFzTm8?resourcekey=0-5BR16BdXnb8hVj6CNHKzLg
The package I downloaded is "img_align_celeba.zip", which contains .jpg version of images. It should be noticed that when user unzip this file, it creates a foler directly with all images, i.e. no subfolder.
This is jupyter notebook of our DCGAN project containing the whole training process.
Notice: the path of CelebA dataset folder defined in "datasets.ImageFolder()" function is weird. The path of the dataset should never be the path of folder which directly contains images. For example, if user store images in foler "dataset" whose path is "your_path/previous_folder/dataset", user should define the path as "your_path/previous_folder" to treat "dataset" folder as subfolder.
It is the architectures of discriminator and generator for DCGAN networks.
This is a script for copy a group of images with a specific feature from foler of CelebA dataset and transfer to a new folder defined by yourself.
User should edit this script before compiling it.
In this script, it contains four editable parameters that user needs to define:
- output_path, which is the path of output folder;
- image_path, the path of CelebA image folder;
- CelebA_Attr_file, the path of "list_attr_celeba.txt" file;
- Attr_type, the desired feature (attribute) that user wants to group images by.
There are 40 attributes in CelebA dataset, which can be viewed in the "list_attr_celeba.txt" file. They are:
- 5_o_Clock_Shadow (Newly grown cheek beard): 刚长出的双颊胡须
- Arched_Eyebrows:柳叶眉
- Attractive:吸引人的
- Bags_Under_Eyes:眼袋
- Bald:秃头
- Bangs:刘海
- Big_Lips:大嘴唇
- Big_Nose:大鼻子
- Black_Hair:黑发
- Blond_Hair:金发
- Blurry:模糊的
- Brown_Hair:棕发
- Bushy_Eyebrows:浓眉
- Chubby:圆胖的
- Double_Chin:双下巴
- Eyeglasses:眼镜
- Goatee:山羊胡子
- Gray_Hair:灰发或白发
- Heavy_Makeup:浓妆
- High_Cheekbones:高颧骨
- Male:男性
- Mouth_Slightly_Open:微微张开嘴巴
- Mustache:胡子,髭
- Narrow_Eyes:细长的眼睛
- No_Beard:无胡子
- Oval_Face:椭圆形的脸
- Pale_Skin:苍白的皮肤
- Pointy_Nose:尖鼻子
- Receding_Hairline:发际线后移
- Rosy_Cheeks:红润的双颊
- Sideburns:连鬓胡子
- Smiling:微笑
- Straight_Hair:直发
- Wavy_Hair:卷发
- Wearing_Earrings:戴着耳环
- Wearing_Hat:戴着帽子
- Wearing_Lipstick:涂了唇膏
- Wearing_Necklace:戴着项链
- Wearing_Necktie:戴着领带
- Young:年轻人