MikaelTradera commited on
Commit
270a143
1 Parent(s): 32729b5

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +25 -0
start.sh ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ git clone https://github.com/cocktailpeanut/fluxgym.git /app/fluxgym;
3
+ git clone -b sd3 https://github.com/kohya-ss/sd-scripts /app/fluxgym/sd-scripts;
4
+
5
+ cd /app/fluxgym/sd-scripts &&
6
+ pip install -r requirements.txt &&
7
+ echo "fluxgym requirements installed successfully.";
8
+
9
+ cd /app/fluxgym &&
10
+ pip install -r requirements.txt &&
11
+ echo "fluxgym requirements installed successfully.";
12
+
13
+ pip install --pre torch==2.4 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 &&
14
+ echo "PyTorch installed successfully.";
15
+
16
+ echo "Downloading models..." &&
17
+ wget -O /app/fluxgym/models/unet/flux1-dev.sft https://huggingface.co/cocktailpeanut/xulf-dev/resolve/main/flux1-dev.sft?download=true &&
18
+ wget -O /app/fluxgym/models/clip/clip_l.safetensors https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors?download=true &&
19
+ wget -O /app/fluxgym/models/clip/t5xxl_fp16.safetensors https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors?download=true &&
20
+ wget -O /app/fluxgym/models/vae/ae.sft https://huggingface.co/cocktailpeanut/xulf-dev/resolve/main/ae.sft?download=true &&
21
+ echo "Models downloaded successfully.";
22
+
23
+ export GRADIO_SERVER_NAME="0.0.0.0"
24
+
25
+ python /app/fluxgym/app.py