Spaces:
Running
Running
File size: 1,466 Bytes
ca0d92e |
1 |
{"metadata":{"colab":{"provenance":[{"file_id":"https://github.com/victorgeel/FaceSwapNoNfsw/blob/main/SwapFace.ipynb","timestamp":1712333672487}],"gpuType":"T4"},"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"accelerator":"GPU","kaggle":{"accelerator":"nvidiaTeslaT4","dataSources":[],"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!git lfs install\n!git clone https://huggingface.co/spaces/victorisgeek/DeepSwapFace","metadata":{"id":"KNKvYxD7iXpI","trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#@title\n%cd /kaggle/working/DeepSwapFace\nprint(\"Installing requirements...\")\n!pip install -r requirements.txt \n!pip install gdown\nprint(\"Installing requirements done.\")","metadata":{"id":"qqmXzZR8ie9A","trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"\ndefault_output_path = \"/kaggle/working/DeepSwapFace\" #@param {type:\"string\"}\n\ncommand = f\"python app.py --cuda --kaggle --out_dir {default_output_path}\"\n!{command}","metadata":{"cellView":"form","id":"386ajdZ0ixQ0","trusted":true},"execution_count":null,"outputs":[]}]} |