- [07/31/2025] 🔥 We release MOE-FaceUM Inference Code.
conda create --name MOE-FaceUM python=3.8
conda activate MOE-FaceUM
# Install requirements
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
pip install -r requirements.txt
# Install MOE
cd model/parallel_linear
python setup.py install
# Install mmsegmentation
git clone https://github.com/open-mmlab/mmsegmentation.git
cd mmsegmentation
python setup.py install
# Install mmdetection
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
python setup.py install
The pretrained models can be downloaded manually from FaRL
The model can be downloaded manually from Google Drive
The directory structure should finally be:
. ── MOE-FaceUM ──┌── ckpts
├── FaRL-Base-Patch16-LAIONFace20M-ep64.pth
└── checkpoint.pth.tar
├── model
└── inference.py
├── results
└── images
CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 --master_port=53000 inference.py --config_path test.yaml \
--model_path ckpts/checkpoint.pth.tar \
--image_path images/2025073.jpg \
--results_path results \
--gpu_num 0 \- Release training code.
- Release training script.
We would like to thank the authors of Faceptor and FaRL for their open-source contribution, which inspired parts of this project.
