Spaces:
No application file
No application file
Download start_portable_cpu.bat from Annihilator3000/InstantID: direct link, hf CLI and curl.
- Browser
- Download file 937 Bytes
-
https://huggingface.co/spaces/Annihilator3000/InstantID/resolve/main/start_portable_cpu.bat
- Command line
-
hf download hf://spaces/Annihilator3000/InstantID/start_portable_cpu.bat
-
curl -L -o start_portable_cpu.bat https://huggingface.co/spaces/Annihilator3000/InstantID/resolve/main/start_portable_cpu.bat
937 Bytes
| @echo off | |
| set pypath=home = %~dp0python | |
| set venvpath=_ENV=%~dp0venv_cpu | |
| if exist venv_cpu (powershell -command "$text = (gc venv_cpu\pyvenv.cfg) -replace 'home = .*', $env:pypath; $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($False);[System.IO.File]::WriteAllLines('venv_cpu\pyvenv.cfg', $text, $Utf8NoBomEncoding);$text = (gc venv_cpu\scripts\activate.bat) -replace '_ENV=.*', $env:venvpath; $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($False);[System.IO.File]::WriteAllLines('venv_cpu\scripts\activate.bat', $text, $Utf8NoBomEncoding);") | |
| rmdir /S /Q instantid\tmp\gradio | |
| set appdata=tmp | |
| set userprofile=tmp | |
| set temp=tmp | |
| REM set HF_HUB_OFFLINE=True | |
| set PATH=%PATH%;git\cmd;python;venv_cpu\scripts;ffmpeg | |
| call venv_cpu\Scripts\activate.bat | |
| cd instantid | |
| python gradio_demo\app_lcm_cpu.py | |
| pause | |
| REM Упаковано и собрано телеграм каналом Neurogen News: https://t.me/neurogen_news | |