wty-ustc / HairCLIP

[CVPR 2022] HairCLIP: Design Your Hair by Text and Reference Image
GNU Lesser General Public License v2.1
524 stars 68 forks source link

How to slove the problem "train.py: error: the following arguments are required: --hairstyle_description, --color_description " when i run code in Colab? #34

Open Ed-ivan opened 1 year ago

Ed-ivan commented 1 year ago

Code : !python /content/HairCLIP/mapper/scripts/train.py \ !--exp_dir=/path/to/experiment \ !--latents_train_path=/path/to/train_faces.pt \ !--latents_test_path=/path/to/test_faces.pt \ !--hairstyle_ref_img_train_path=/path/to/celeba_hq_train \ !--hairstyle_ref_img_test_path=/path/to/celeba_hq_val \ !--color_ref_img_train_path=/path/to/celeba_hq_train \ !--color_ref_img_test_path=/path/to/celeba_hq_val \ !--color_ref_img_in_domain_path=/path/to/generated_hair_of_various colors\ !--hairstyle_manipulation_prob=0.5 \ !--color_manipulation_prob=0.2 \ !--both_manipulation_prob=0.27 \ !--hairstyle_text_manipulation_prob=0.5 \ !--color_text_manipulation_prob=0.5 \ !--color_in_domain_ref_manipulation_prob=0.25 \ !--hairstyle_description = "hairstyle_list.txt"\ !--color_description="purple, red, orange, yellow, green, blue, gray, brown, black, white, blond, pink"\

then train.py: error: the following arguments are required: --hairstyle_description, --color_description