Skip to content

Instantly share code, notes, and snippets.

@Zuntan03
Created November 21, 2023 12:52
Show Gist options
  • Save Zuntan03/ff77d69b5db1c8c0c527e4331c1d2669 to your computer and use it in GitHub Desktop.
Save Zuntan03/ff77d69b5db1c8c0c527e4331c1d2669 to your computer and use it in GitHub Desktop.
LCM_i2i_PoC-2023_11_21
@chcp 65001 > nul
@echo off
pushd %~dp0
if not exist LCM_i2i_PoC (
git clone https://github.com/mattyamonaca/LCM_i2i_PoC.git
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
)
popd rem %~dp0
pushd %~dp0\LCM_i2i_PoC
if not exist venv (
python -m venv venv
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
call venv\Scripts\activate.bat
python -m pip install -q --upgrade pip
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --index-url https://download.pytorch.org/whl/cu118
pip install --upgrade opencv-python numpy pygetwindow pyautogui diffusers Pillow pynput pytk transformers accelerate
)
call venv\Scripts\activate.bat
echo https://github.com/mattyamonaca/LCM_i2i_PoC
echo https://fate.5ch.net/test/read.cgi/liveuranus/1700474878/757
python realtime_i2i.py
popd rem %~dp0\LCM_i2i_PoC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment