Gourieff / ReActor-UI

Fast and Simple Face Swap
GNU Affero General Public License v3.0
259 stars 32 forks source link

No more coreml option? #9

Open mephiliu123 opened 1 year ago

mephiliu123 commented 1 year ago

Dear, If there are options like coreml or mps?

(venv) mephiliu@mephi_MBP ReActor-UI % venv/bin/python run.py --execution-provider coreml usage: run.py [-h] [-s SOURCE_PATH] [-t TARGET_PATH] [-o OUTPUT_PATH] [--frame-processor {face_swapper,face_enhancer} [{face_swapper,face_enhancer} ...]] [--keep-fps] [--keep-audio] [--keep-frames] [--many-faces] [--video-encoder {libx264,libx265,libvpx-vp9}] [--video-quality [0-51]] [--max-memory MAX_MEMORY] [--execution-provider {azure,cpu} [{azure,cpu} ...]] [--execution-threads EXECUTION_THREADS] [-v] run.py: error: argument --execution-provider: invalid choice: 'coreml' (choose from 'azure', 'cpu')

Gourieff commented 1 year ago

You can run the batchfile:

@echo off

@call venv\Scripts\activate

echo Launching ReActor-UI Help...

python run.py --help

PAUSE

run_help.zip

and see what execution providers are available, e.g. --execution-provider {tensorrt,cuda,cpu}

Gourieff commented 1 year ago

If you installed onnxruntime-silicon you can run the app with coreml execution provider