Skip to content

Few Tips and Swift Core ML version. #22

Description

@john-rocky

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

Jan-18-2024 20-51-05

Thanks again!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions