Prepare the dataset for training
mainThe model expects a specific directory structure for training datasets. You should organize your images and their corresponding segmentation masks as follows:
dataset/images/: Contains the input face images (e.g.,.jpg).dataset/labels/: Contains the corresponding segmentation masks (e.g.,.png).
Note: The model was originally trained on the CelebAMask-HQ dataset.
dataset/
├── images/ # Input face images
│ ├── image1.jpg
│ ├── image2.jpg
│ └── ...
└── labels/ # Corresponding segmentation masks
├── image1.png
├── image2.png
└── ...