nathanglm commited on
Commit
9f24aad
·
verified ·
1 Parent(s): 5479bca

Update krea.sh

Browse files
Files changed (1) hide show
  1. krea.sh +29 -16
krea.sh CHANGED
@@ -76,23 +76,26 @@ LORA_MODELS=(
76
  "https://huggingface.co/AliveAi/Krea-2-Edit-Outfit-Transfer/resolve/main/krea_outfittransfer.safetensors|krea_outfittransfer.safetensors"
77
 
78
  # --- Krea 2 : LoRA Civitai (CIVITAI_TOKEN requis) ---
79
- "https://civitai.com/api/download/models/2790570?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Casual-Snapshot-Realism-v2.safetensors"
80
- "https://civitai.com/api/download/models/2088956?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Famegrid-Spicy.safetensors"
81
- "https://civitai.com/api/download/models/2725430?type=Model&format=SafeTensor&size=full&fp=fp16|K2-NSFW-v4.safetensors"
82
- "https://civitai.com/api/download/models/1138698?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Raw-to-Turbo-r256.safetensors"
83
- "https://civitai.com/api/download/models/2775340?type=Model&format=SafeTensor&size=full&fp=fp16|K2-TextFusion-Refusal-Reduction-v2.safetensors"
84
- "https://civitai.com/api/download/models/2766540?type=Model&format=SafeTensor&size=full&fp=fp16|K2-RawGirlSpicy-v3.safetensors"
85
- "https://civitai.com/api/download/models/2688234?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Realism-Engine-v3.safetensors"
86
- "https://civitai.com/api/download/models/1972981?type=Model&format=SafeTensor&size=full&fp=fp16|K2-SNOFS-v1.5.safetensors"x
87
- "https://civitai.com/api/download/models/2728644?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Mystic-XXX-v3.safetensors"
88
- "https://civitai.com/api/download/models/2512358?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Excessive-Cum.safetensors"x
89
- "https://civitai.com/api/download/models/2268008?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Realistic-Snapshot-v1.safetensors"x
90
- "https://civitai.com/api/download/models/1862761?type=Model&format=SafeTensor&size=full&fp=fp16|K2-NiceGirls-UltraReal-v1.safetensors"x
91
-
92
  # --- Ta LoRA perso (model01) : uploade-la dans ton repo HF puis décommente ---
93
  "https://huggingface.co/nathanglm/sofia/resolve/main/model01.safetensors|model01.safetensors"
94
 
95
- # --- SDXL (Pre-Definer + détailleurs SDXL du workflow) ---
 
 
 
 
96
  )
97
 
98
  # SDXL (Pre-Definer). Nom forcé = celui attendu par le workflow.
@@ -207,6 +210,16 @@ function provisioning_get_pip_packages() {
207
  fi
208
  }
209
 
 
 
 
 
 
 
 
 
 
 
210
  function provisioning_get_nodes() {
211
  for repo in "${NODES[@]}"; do
212
  dir="${repo##*/}"
@@ -217,14 +230,14 @@ function provisioning_get_nodes() {
217
  printf "Updating node: %s...\n" "${repo}"
218
  ( cd "$path" && git pull )
219
  if [[ -e $requirements ]]; then
220
- pip install --no-cache-dir -r "$requirements"
221
  fi
222
  fi
223
  else
224
  printf "Downloading node: %s...\n" "${repo}"
225
  git clone "${repo}" "${path}" --recursive
226
  if [[ -e $requirements ]]; then
227
- pip install --no-cache-dir -r "${requirements}"
228
  fi
229
  fi
230
  done
 
76
  "https://huggingface.co/AliveAi/Krea-2-Edit-Outfit-Transfer/resolve/main/krea_outfittransfer.safetensors|krea_outfittransfer.safetensors"
77
 
78
  # --- Krea 2 : LoRA Civitai (CIVITAI_TOKEN requis) ---
79
+ "https://civitai.com/api/download/models/3371956?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Casual-Snapshot-Realism-v2.safetensors"
80
+ "https://civitai.com/api/download/models/3278885?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Famegrid-Spicy.safetensors"
81
+ "https://civitai.com/api/download/models/3147117?type=Model&format=SafeTensor&size=full&fp=fp16|K2-NSFW-v4.safetensors"
82
+ "https://civitai.com/api/download/models/3066079?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Raw-to-Turbo-r256.safetensors"
83
+ "https://civitai.com/api/download/models/3359022?type=Model&format=SafeTensor&size=full&fp=fp16|K2-TextFusion-Refusal-Reduction-v2.safetensors"
84
+ "https://civitai.com/api/download/models/3141485?type=Model&format=SafeTensor&size=full&fp=fp16|K2-RawGirlSpicy-v3.safetensors"
85
+ "https://civitai.com/api/download/models/3109006?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Realism-Engine-v3.safetensors"
86
+ "https://civitai.com/api/download/models/3390681?type=Model&format=SafeTensor&size=full&fp=fp16|K2-SNOFS-v1.5.safetensors"
87
+ "https://civitai.com/api/download/models/3116175?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Mystic-XXX-v3.safetensors"
88
+ "https://civitai.com/api/download/models/3221218?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Excessive-Cum.safetensors"
89
+ "https://civitai.com/api/download/models/2268008?type=Model&format=SafeTensor&size=full&fp=fp16|K2-Realistic-Snapshot-v1.safetensors" # ⚠️ vérifie que 2268008 est bien un ID de VERSION
90
+ "https://civitai.com/api/download/models/1862761?type=Model&format=SafeTensor&size=full&fp=fp16|K2-NiceGirls-UltraReal-v1.safetensors" # ⚠️ vérifie que 1862761 est bien un ID de VERSION
 
91
  # --- Ta LoRA perso (model01) : uploade-la dans ton repo HF puis décommente ---
92
  "https://huggingface.co/nathanglm/sofia/resolve/main/model01.safetensors|model01.safetensors"
93
 
94
+ # --- SDXL (détailleurs SDXL du workflow Krea2 v1.5) ---
95
+ # Décommente si tu utilises les détailleurs SDXL, sinon bypass-les dans le workflow.
96
+ #"https://civitai.com/api/download/models/368603?type=Model&format=SafeTensor&size=full&fp=fp16|SDXL-Detailed-Nipples-v1.safetensors"
97
+ #"https://civitai.com/api/download/models/712004?type=Model&format=SafeTensor&size=full&fp=fp16|SDXL-Real-Pussy-Lotte.safetensors"
98
+ #"https://civitai.com/api/download/models/216946?type=Model&format=SafeTensor&size=full&fp=fp16|SDXL-Penis-XL-v1.safetensors"
99
  )
100
 
101
  # SDXL (Pre-Definer). Nom forcé = celui attendu par le workflow.
 
210
  fi
211
  }
212
 
213
+ function pip_install_requirements() {
214
+ # Saute sam2 (git+facebookresearch/sam2) : sa compilation retélécharge PyTorch
215
+ # dans un environnement isolé et bloque le provisioning. Impact-Pack marche sans.
216
+ local filtered
217
+ filtered=$(mktemp)
218
+ grep -v -i "facebookresearch/sam2" "$1" > "$filtered"
219
+ pip install --no-cache-dir -r "$filtered"
220
+ rm -f "$filtered"
221
+ }
222
+
223
  function provisioning_get_nodes() {
224
  for repo in "${NODES[@]}"; do
225
  dir="${repo##*/}"
 
230
  printf "Updating node: %s...\n" "${repo}"
231
  ( cd "$path" && git pull )
232
  if [[ -e $requirements ]]; then
233
+ pip_install_requirements "$requirements"
234
  fi
235
  fi
236
  else
237
  printf "Downloading node: %s...\n" "${repo}"
238
  git clone "${repo}" "${path}" --recursive
239
  if [[ -e $requirements ]]; then
240
+ pip_install_requirements "${requirements}"
241
  fi
242
  fi
243
  done