git clone https://github.com/Mrkomiljon/face-segmentation_pytorch.git
cd face-segmentation_pytorch
# create env using conda
conda create -n face-segmentation python==3.9.18
conda activate face-segmentation
-
1.Prepare training data: -- download CelebAMask-HQ dataset
-- change file path in the prepropess_data.py and run
python prepropess_data.py
If you do not wish to train the model, you can download pre-trained model and save it in res/cp.
python test.py