Upload 2 files
Browse files
RunPod_Kohya_FLUX_Installer_part1.sh
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
apt update --yes
|
| 2 |
+
yes | apt-get install python3.10-tk
|
| 3 |
+
apt-get install psmisc --yes
|
| 4 |
+
|
| 5 |
+
cd /workspace
|
| 6 |
+
|
| 7 |
+
git clone https://github.com/bmaltais/kohya_ss.git
|
| 8 |
+
|
| 9 |
+
cd /workspace/kohya_ss
|
| 10 |
+
|
| 11 |
+
git checkout sd3-flux.1
|
| 12 |
+
|
| 13 |
+
python3 -m venv venv
|
| 14 |
+
|
| 15 |
+
source venv/bin/activate
|
| 16 |
+
|
| 17 |
+
yes | apt-get install python3.10-tk
|
| 18 |
+
|
| 19 |
+
./setup.sh -n
|
| 20 |
+
|
| 21 |
+
|
RunPod_Kohya_FLUX_Installer_part2.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
apt update --yes
|
| 2 |
+
yes | apt-get install python3.10-tk
|
| 3 |
+
apt-get install psmisc --yes
|
| 4 |
+
|
| 5 |
+
fuser -k 7860/tcp
|
| 6 |
+
|
| 7 |
+
cd /workspace/kohya_ss
|
| 8 |
+
|
| 9 |
+
git checkout sd3-flux.1
|
| 10 |
+
|
| 11 |
+
source venv/bin/activate
|
| 12 |
+
|
| 13 |
+
pip uninstall xformers --yes
|
| 14 |
+
|
| 15 |
+
pip install torch==2.5.1+cu124 torchvision --index-url https://download.pytorch.org/whl/cu124
|
| 16 |
+
|
| 17 |
+
pip install xformers==0.0.28.post3 --index-url https://download.pytorch.org/whl/cu124
|
| 18 |
+
|
| 19 |
+
./gui.sh --listen=0.0.0.0 --share --noverify
|