UmeAiRT commited on
Commit
9c4a03f
·
verified ·
1 Parent(s): d353c1a

Upload Download-FLUX-Models.ps1

Browse files
scripts/Model_downloader/Download-FLUX-Models.ps1 CHANGED
@@ -100,11 +100,11 @@ if (Get-Command 'nvidia-smi' -ErrorAction SilentlyContinue) {
100
  Write-Log "Recommandation: fp16" -Color Cyan
101
  } elseif ($gpuMemoryGiB -ge 18) {
102
  Write-Log "Recommandation: fp8 or GGUF Q8" -Color Cyan
103
- } elseif ($gpuMemoryGiB -ge 14) {
104
  Write-Log "Recommandation: GGUF Q6" -Color Cyan
105
- }elseif ($gpuMemoryGiB -ge 12) {
106
  Write-Log "Recommandation: GGUF Q5" -Color Cyan
107
- }elseif ($gpuMemoryGiB -ge 10) {
108
  Write-Log "Recommandation: GGUF Q4" -Color Cyan
109
  }elseif ($gpuMemoryGiB -ge 8) {
110
  Write-Log "Recommandation: GGUF Q3" -Color Cyan
@@ -125,6 +125,7 @@ $fluxChoice = Ask-Question -Prompt "Do you want to download FLUX base models?" -
125
  $ggufChoice = Ask-Question -Prompt "Do you want to download FLUX GGUF models?" -Choices @("A) Q8 (18GB VRAM)","B) Q6 (14GB VRAM)", "C) Q5 (12GB VRAM)", "D) Q4 (10GB VRAM)", "E) Q3 (8GB VRAM)", "F) Q2 (6GB VRAM)", "G) All", "H) No") -ValidAnswers @("A", "B", "C", "D", "E", "F", "G", "H")
126
  $schnellChoice = Ask-Question -Prompt "Do you want to download the FLUX SCHNELL Model?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")
127
  $controlnetChoice = Ask-Question -Prompt "Do you want to download FLUX ControlNet Models?" -Choices @("A) fp16", "B) fp8", "C) Q8", "D) Q5", "E) Q4", "F) All", "G) No") -ValidAnswers @("A", "B", "C", "D", "E", "F", "G")
 
128
  $pulidChoice = Ask-Question -Prompt "Do you want to download FLUX PuLID and REDUX Models?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")
129
  $loraChoice = Ask-Question -Prompt "Do you want to download UmeAiRT LoRAs?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")
130
 
@@ -195,6 +196,15 @@ if ($controlnetChoice -ne 'G') {
195
  if ($controlnetChoice -in 'E','F') { Download-File -Uri "$baseUrl/unet/FLUX/flux1-canny-dev-fp16-Q4_0-GGUF.gguf" -OutFile (Join-Path $unetFluxDir "flux1-canny-dev-fp16-Q4_0-GGUF.gguf"); Download-File -Uri "$baseUrl/unet/FLUX/flux1-depth-dev-fp16-Q4_0-GGUF.gguf" -OutFile (Join-Path $unetFluxDir "flux1-depth-dev-fp16-Q4_0-GGUF.gguf") }
196
  }
197
 
 
 
 
 
 
 
 
 
 
198
  # PuLID Models
199
  if ($pulidChoice -eq 'A') {
200
  Download-File -Uri "$baseUrl/pulid/pulid_flux_v0.9.0.safetensors" -OutFile (Join-Path $pulidDir "pulid_flux_v0.9.0.safetensors")
 
100
  Write-Log "Recommandation: fp16" -Color Cyan
101
  } elseif ($gpuMemoryGiB -ge 18) {
102
  Write-Log "Recommandation: fp8 or GGUF Q8" -Color Cyan
103
+ } elseif ($gpuMemoryGiB -ge 16) {
104
  Write-Log "Recommandation: GGUF Q6" -Color Cyan
105
+ }elseif ($gpuMemoryGiB -ge 14) {
106
  Write-Log "Recommandation: GGUF Q5" -Color Cyan
107
+ }elseif ($gpuMemoryGiB -ge 12) {
108
  Write-Log "Recommandation: GGUF Q4" -Color Cyan
109
  }elseif ($gpuMemoryGiB -ge 8) {
110
  Write-Log "Recommandation: GGUF Q3" -Color Cyan
 
125
  $ggufChoice = Ask-Question -Prompt "Do you want to download FLUX GGUF models?" -Choices @("A) Q8 (18GB VRAM)","B) Q6 (14GB VRAM)", "C) Q5 (12GB VRAM)", "D) Q4 (10GB VRAM)", "E) Q3 (8GB VRAM)", "F) Q2 (6GB VRAM)", "G) All", "H) No") -ValidAnswers @("A", "B", "C", "D", "E", "F", "G", "H")
126
  $schnellChoice = Ask-Question -Prompt "Do you want to download the FLUX SCHNELL Model?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")
127
  $controlnetChoice = Ask-Question -Prompt "Do you want to download FLUX ControlNet Models?" -Choices @("A) fp16", "B) fp8", "C) Q8", "D) Q5", "E) Q4", "F) All", "G) No") -ValidAnswers @("A", "B", "C", "D", "E", "F", "G")
128
+ $fillChoice = Ask-Question -Prompt "Do you want to download FLUX Fill Models?" -Choices @("A) fp16", "B) fp8", "C) Q8", "D) Q6", "E) Q5", "F) Q4", "G) Q3", "H) All", "I) No") -ValidAnswers @("A", "B", "C", "D", "E", "F", "G", "H", "I")
129
  $pulidChoice = Ask-Question -Prompt "Do you want to download FLUX PuLID and REDUX Models?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")
130
  $loraChoice = Ask-Question -Prompt "Do you want to download UmeAiRT LoRAs?" -Choices @("A) Yes", "B) No") -ValidAnswers @("A", "B")
131
 
 
196
  if ($controlnetChoice -in 'E','F') { Download-File -Uri "$baseUrl/unet/FLUX/flux1-canny-dev-fp16-Q4_0-GGUF.gguf" -OutFile (Join-Path $unetFluxDir "flux1-canny-dev-fp16-Q4_0-GGUF.gguf"); Download-File -Uri "$baseUrl/unet/FLUX/flux1-depth-dev-fp16-Q4_0-GGUF.gguf" -OutFile (Join-Path $unetFluxDir "flux1-depth-dev-fp16-Q4_0-GGUF.gguf") }
197
  }
198
 
199
+ # Fill Models
200
+ if ($fillChoice -in 'A','H') { Download-File -Uri "$baseUrl/diffusion_models/FLUX/flux1-fill-dev-fp16.safetensors" -OutFile (Join-Path $fluxDir "flux1-fill-dev-fp16.safetensors") }
201
+ if ($fillChoice -in 'B','H') { Download-File -Uri "$baseUrl/diffusion_models/FLUX/flux1-fill-dev-fp8.safetensors" -OutFile (Join-Path $fluxDir "flux1-fill-dev-fp8.safetensors") }
202
+ if ($fillChoice -in 'C','H') { Download-File -Uri "$baseUrl/unet/FLUX/flux1-fill-dev-Q8_0.gguf" -OutFile (Join-Path $unetFluxDir "flux1-fill-dev-Q8_0.gguf") }
203
+ if ($fillChoice -in 'D','H') { Download-File -Uri "$baseUrl/unet/FLUX/flux1-fill-dev-Q6_K.gguf" -OutFile (Join-Path $unetFluxDir "flux1-fill-dev-Q6_K.gguf") }
204
+ if ($fillChoice -in 'E','H') { Download-File -Uri "$baseUrl/unet/FLUX/flux1-fill-dev-Q5_K_S.gguf" -OutFile (Join-Path $unetFluxDir "flux1-fill-dev-Q5_K_S.gguf") }
205
+ if ($fillChoice -in 'F','H') { Download-File -Uri "$baseUrl/unet/FLUX/flux1-fill-dev-Q4_K_S.gguf" -OutFile (Join-Path $unetFluxDir "flux1-fill-dev-Q4_K_S.gguf") }
206
+ if ($fillChoice -in 'G','H') { Download-File -Uri "$baseUrl/unet/FLUX/flux1-fill-dev-Q3_K_S.gguf" -OutFile (Join-Path $unetFluxDir "flux1-fill-dev-Q3_K_S.gguf") }
207
+
208
  # PuLID Models
209
  if ($pulidChoice -eq 'A') {
210
  Download-File -Uri "$baseUrl/pulid/pulid_flux_v0.9.0.safetensors" -OutFile (Join-Path $pulidDir "pulid_flux_v0.9.0.safetensors")