FICE: Text-Conditioned Fashion Image Editing with Guided GAN Inversion (arXiv)
cat requirements.txt | xargs -n 1 -L 1 pip install
./download.sh
python main.py --input_dir imgs/input --description "long sleeve silk crepe de chine shirt featuring graphic pattern printed in tones of blue"
The --input_dir argument specifies directory of images (256x256 resolution) to be edited.
- Train the GAN model using the StyleGAN2 repository
- Convert the best .pkl file (lowest FID score) to .pt file with provided script in
scripts/pkl2ptdirectory. Themain.pyin this directory has to be run from this directory! You can simply place a .pkl file in thetargetdirectory and the result will be placed in theresultdirectory. - Run the E4e training from
misc_scripts/E4edirectory. This is only a slight modification of the original E4e repository, where most edits happen inmodels/psp.pyfile to enable the proper GAN code. Make sure to edit thescripts/train.pyfile with your custom arguments. - (optional) Depending on the dataset and your purpose you might need to train a segmentation model that supports lower body regions as well. The training procedure follows common segmentation training regimes and should be easy to perform. Nevertheless, finding a good dataset for such segmentation training could be a problem!
Supported in parts by the Slovenian Research Agency ARRS through the Research Programme P2-0250(B) Metrology and Biometric System, the ARRS Project J2-2501(A) DeepBeauty and the ARRS junior researcher program.

