Closed TheRedCyclops closed 1 week ago
I'm waiting for this too.
I'm waiting for this too.
I think the directML should work with AMD
Trying to use directml with AMD gives me this:
`python run.py --execution-provider directml
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 {dml,cpu} [{dml,cpu} ...]] [--execution-threads EXECUTION_THREADS] [-v] run.py: error: argument --execution-provider: invalid choice: 'directml' (choose from 'dml', 'cpu')`
Using python run.py --execution-provider dml
works well and fast for "Preview" until you set everything up and press "Start" - it crashes right after this line:
Processing: 0%| | 0/188 [00:00<?, ?frame/s, execution_providers=['DmlExecutionProvider'], execution_threads=8, max_me
It never gets to 1%.
Identical issues to TiberiusMars with my RX 6650xt, including using dml.
Waiting for this
Waiting for this too.
I can use AMD GPU with directml. It work perfectly until face enhancer enabled, when face enhancer enabled it not use any GPU or CPU and it generate very slow.
Trying to use directml with AMD gives me this:
`python run.py --execution-provider directml
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 {dml,cpu} [{dml,cpu} ...]] [--execution-threads EXECUTION_THREADS] [-v] run.py: error: argument --execution-provider: invalid choice: 'directml' (choose from 'dml', 'cpu')`
Using
python run.py --execution-provider dml
works well and fast for "Preview" until you set everything up and press "Start" - it crashes right after this line:
Processing: 0%| | 0/188 [00:00<?, ?frame/s, execution_providers=['DmlExecutionProvider'], execution_threads=8, max_me
It never gets to 1%.
Maybe try to play with other parameters, like video quality, or the encoder
it does work on my 6500m using directml.
Try running with python run.py --execution-provider dml --execution-threads 1 --max-memory 4
and increase the value of threads and max-memory according to you gpu's vram usage(for failsafe launch by set threads 1 and max memory lower than your vram first time). and if you are using nsfw content uncomment nsfw options from ui.py in \Deep-Live-Cam\modules location and select nsfw in app(otherwise it may crash).
I know it's a big ask, but it would be great if support for AMD GPUs would be considered for this project.