sd-scripts

(β˜… 7,202)

No description available.

  • .gitignore
  • _typos.toml
  • anima_minimal_inference.py
  • anima_minimal_inference_control_net_lllite.py
  • anima_train.py
  • anima_train_control_net_lllite.py
  • anima_train_network.py
  • fine_tune.py
  • flux_minimal_inference.py
  • flux_train.py
  • flux_train_control_net.py
  • flux_train_network.py
  • gen_img.py
  • gen_img_diffusers.py
  • hunyuan_image_minimal_inference.py
  • hunyuan_image_train_network.py
  • inpainting_minimal_inference.py
  • LICENSE.md
  • lumina_minimal_inference.py
  • lumina_train.py
  • lumina_train_network.py
  • pytest.ini
  • README-ja.md
  • README.md
  • requirements.txt
  • sd3_minimal_inference.py
  • sd3_train.py
  • sd3_train_network.py
  • sdxl_gen_img.py
  • sdxl_minimal_inference.py
  • sdxl_train.py
  • sdxl_train_control_net.py
  • sdxl_train_control_net_lllite.py
  • sdxl_train_leco.py
  • sdxl_train_network.py
  • sdxl_train_textual_inversion.py
  • setup.py
  • train_control_net.py
  • train_db.py
  • train_leco.py
  • train_network.py
  • train_textual_inversion.py

# Installation Guide

1. Get the code
git clone https://github.com/kohya-ss/sd-scripts

Downloads the entire project code from GitHub to your computer.

cd sd-scripts

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Python 3 Python is required to use pip.
pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124

Installs the package published on PyPI directly β€” no need to clone the source.

pip install --upgrade -r requirements.txt

Installs the package published on PyPI directly β€” no need to clone the source.

pip install xformers --index-url https://download.pytorch.org/whl/cu124

Installs the package published on PyPI directly β€” no need to clone the source.

pip install deepspeed==0.16.7

Installs the package published on PyPI directly β€” no need to clone the source.

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
python -m venv venv

Runs the Python script (or module).

pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124

Installs the package published on PyPI directly β€” no need to clone the source.

pip install --upgrade -r requirements.txt

Installs the package published on PyPI directly β€” no need to clone the source.

pip install xformers --index-url https://download.pytorch.org/whl/cu124

Installs the package published on PyPI directly β€” no need to clone the source.

pip install deepspeed==0.16.7

Installs the package published on PyPI directly β€” no need to clone the source.

βœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation