Commit message: Added support for hardware accelerators in ffmpeg. #5

This commit is contained in:
Xavi Vinaixa
2023-06-06 11:27:53 +02:00
parent f5606ca4c4
commit bbc10893b4
3 changed files with 40 additions and 23 deletions

View File

@@ -35,27 +35,14 @@
"outputs": [],
"source": [
"!pip uninstall numpy -y -q\n",
"!pip install numpy==1.24.3 onnxruntime-gpu gradio insightface ffmpeg_python opencv_python -q --force\n",
"!pip install --disable-pip-version-check --root-user-action=ignore numpy==1.24.3 onnxruntime-gpu gradio insightface==0.7.3 ffmpeg_python opencv_python -q --force\n",
"\n",
"!git clone https://github.com/xaviviro/refacer.git\n",
"%cd refacer\n",
"\n",
"!wget --content-disposition \"https://huggingface.co/deepinsight/inswapper/resolve/main/inswapper_128.onnx\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "0SsyI3quBb0L",
"outputId": "56add1a6-6b47-429d-e07a-cf3fadc7a6ce"
},
"outputs": [],
"source": [
"!python app.py --share_gradio"
"!wget --content-disposition \"https://huggingface.co/deepinsight/inswapper/resolve/main/inswapper_128.onnx\"\n",
"\n",
"!python app.py --share_gradio\n"
]
}
],