Thank you for the great project.
3Tips for users of the pretrained models.
Tips0
Installation method that worked successfully
git clone https://github.com/hukenovs/easyportrait.git
cd easyportrait/pipelines/
pip install torch==1.13.1 torchvision==0.14.1
pip install -U openmim
mim install mmengine
mim install mmcv==1.7.1
mim install mmcv-full==1.7.1
pip install mmsegmentation==0.30.0
pip install ftfy
Tips1:
If you change line 281 of formatting.py, it will run smoothly.
# img_meta[key] = results[key]
img_meta[key] = results.get(key,None)
Tips2:
When plotting the results, set palette to None to plot the results.
show_result_pyplot(
model,
img,
result,
None,
opacity=1,
out_file=out)
Swift/iOS version
I converted segformer512fp to Core ML ( Swift / iOS format ).
https://github.com/john-rocky/easyportrait-coreml
And made Swift demo.
https://github.com/john-rocky/CoreML-Models?tab=readme-ov-file#easyportrait

Thanks again!
Thank you for the great project.
3Tips for users of the pretrained models.
Tips0
Installation method that worked successfully
git clone https://github.com/hukenovs/easyportrait.git cd easyportrait/pipelines/ pip install torch==1.13.1 torchvision==0.14.1 pip install -U openmim mim install mmengine mim install mmcv==1.7.1 mim install mmcv-full==1.7.1 pip install mmsegmentation==0.30.0 pip install ftfyTips1:
If you change line 281 of formatting.py, it will run smoothly.
Tips2:
When plotting the results, set palette to None to plot the results.
Swift/iOS version
I converted segformer512fp to Core ML ( Swift / iOS format ).
https://github.com/john-rocky/easyportrait-coreml
And made Swift demo.
https://github.com/john-rocky/CoreML-Models?tab=readme-ov-file#easyportrait
Thanks again!