Update README.md

This commit is contained in:
bmaltais 2022-12-04 21:22:57 -05:00 committed by GitHub
parent 6c22f723e2
commit 30b4be5680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,20 +21,29 @@ Give unrestricted script access to powershell so venv can work:
Open a regular Powershell terminal and type the following inside:
```powershell
# Clone the Kohya_ss repository
git clone https://github.com/bmaltais/kohya_ss.git
# Navigate to the newly cloned directory
cd kohya_ss
# Create a virtual environment using the system-site-packages option
python -m venv --system-site-packages venv
# Activate the virtual environment
.\venv\Scripts\activate
# Install the required packages
pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
pip install --upgrade -r requirements.txt
pip install -U -I --no-deps https://github.com/C43H66N12O12S2/stable-diffusion-webui/releases/download/f/xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl
# Copy the necessary files to the virtual environment's site-packages directory
cp .\bitsandbytes_windows\*.dll .\venv\Lib\site-packages\bitsandbytes\
cp .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bitsandbytes\cextension.py
cp .\bitsandbytes_windows\main.py .\venv\Lib\site-packages\bitsandbytes\cuda_setup\main.py
# Configure the accelerate utility
accelerate config
```