dskjal
広告
広告

Python 3.13 で kohya-ss sd-scripts の環境構築

カテゴリ:deeplearning

xformers は使わない(--sdpa を使う)ので入れていない。

python -m venv venv
./venv/Scripts/activate
pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124

requirements.txt のバージョンを以下のように修正。

safetensors==0.6.2
transformers==4.48.3

インストールの続き。

pip install --upgrade -r requirements.txt
pip uninstall numpy
pip install "numpy<2"
accelerate config

numpy < 2 が要求されるのは accelerate のバージョンが低いからで、accelerate のバージョンを上げれば numpy 2 以降が使える。


広告
広告

カテゴリ