
source /home/Ubuntu/apps/stable-diffusion-webui/venv/bin/activate

cd /home/Ubuntu/apps/stable-diffusion-webui 
git pull
cd /home/Ubuntu/apps/stable-diffusion-webui/extensions
git clone https://github.com/Yomisana/Stable-Diffusion-WebUI-TensorRT

cd Stable-Diffusion-WebUI-TensorRT

rm -r install.py

cd /home/Ubuntu/apps/stable-diffusion-webui 

wget https://huggingface.co/MonsterMMORPG/SECourses/resolve/main/styles.csv -O styles.csv


python3 -m pip install --force importlib_metadata
python3 -m pip install --force nvidia-cudnn-cu11==8.9.4.25 --no-cache-dir
python3 -m pip install --force --pre --extra-index-url https://pypi.nvidia.com tensorrt==9.0.1.post11.dev4 --no-cache-dir
python3 -m pip install --force polygraphy --extra-index-url https://pypi.ngc.nvidia.com
python3 -m pip install --force protobuf==3.20.2
python3 -m pip install --force onnx-graphsurgeon --extra-index-url https://pypi.ngc.nvidia.com
python3 -m pip install --force optimum