Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ def load_and_prepare_model(model_id):
|
|
126 |
|
127 |
#pipe.to(dtype=torch.bfloat16)
|
128 |
pipe.to(device)
|
129 |
-
pipe.unet = pipeX.unet.to(torch.bfloat16)
|
130 |
|
131 |
#pipe.to(torch.bfloat16)
|
132 |
#pipe.to(device, torch.bfloat16)
|
@@ -213,8 +213,8 @@ def generate_30(
|
|
213 |
f.write(f"Use Safetensors: True \n")
|
214 |
f.write(f"Use Model Dtype: yes with UNET to bfloat \n")
|
215 |
f.write(f"Model Scheduler: Euler_a custom \n")
|
216 |
-
f.write(f"Model VAE: stabilityai/sdxl-vae
|
217 |
-
f.write(f"Model UNET: stabilityai
|
218 |
upload_to_ftp(filename)
|
219 |
for i in range(0, num_images, BATCH_SIZE):
|
220 |
batch_options = options.copy()
|
@@ -279,8 +279,8 @@ def generate_60(
|
|
279 |
f.write(f"Use Safetensors: True \n")
|
280 |
f.write(f"Use Model Dtype: yes with UNET to bfloat \n")
|
281 |
f.write(f"Model Scheduler: Euler_a custom \n")
|
282 |
-
f.write(f"Model VAE: stabilityai/sdxl-vae
|
283 |
-
f.write(f"Model UNET: stabilityai
|
284 |
upload_to_ftp(filename)
|
285 |
for i in range(0, num_images, BATCH_SIZE):
|
286 |
batch_options = options.copy()
|
@@ -345,8 +345,8 @@ def generate_90(
|
|
345 |
f.write(f"Use Safetensors: True \n")
|
346 |
f.write(f"Use Model Dtype: yes with UNET to bfloat \n")
|
347 |
f.write(f"Model Scheduler: Euler_a custom \n")
|
348 |
-
f.write(f"Model VAE: stabilityai/sdxl-vae
|
349 |
-
f.write(f"Model UNET: stabilityai
|
350 |
upload_to_ftp(filename)
|
351 |
for i in range(0, num_images, BATCH_SIZE):
|
352 |
batch_options = options.copy()
|
|
|
126 |
|
127 |
#pipe.to(dtype=torch.bfloat16)
|
128 |
pipe.to(device)
|
129 |
+
pipe.unet = pipeX.unet.to(device).to(torch.bfloat16)
|
130 |
|
131 |
#pipe.to(torch.bfloat16)
|
132 |
#pipe.to(device, torch.bfloat16)
|
|
|
213 |
f.write(f"Use Safetensors: True \n")
|
214 |
f.write(f"Use Model Dtype: yes with UNET to bfloat \n")
|
215 |
f.write(f"Model Scheduler: Euler_a custom \n")
|
216 |
+
f.write(f"Model VAE: stabilityai/sdxl-vae \n")
|
217 |
+
f.write(f"Model UNET: stabilityai after cuda \n")
|
218 |
upload_to_ftp(filename)
|
219 |
for i in range(0, num_images, BATCH_SIZE):
|
220 |
batch_options = options.copy()
|
|
|
279 |
f.write(f"Use Safetensors: True \n")
|
280 |
f.write(f"Use Model Dtype: yes with UNET to bfloat \n")
|
281 |
f.write(f"Model Scheduler: Euler_a custom \n")
|
282 |
+
f.write(f"Model VAE: stabilityai/sdxl-vae \n")
|
283 |
+
f.write(f"Model UNET: stabilityai after cuda \n")
|
284 |
upload_to_ftp(filename)
|
285 |
for i in range(0, num_images, BATCH_SIZE):
|
286 |
batch_options = options.copy()
|
|
|
345 |
f.write(f"Use Safetensors: True \n")
|
346 |
f.write(f"Use Model Dtype: yes with UNET to bfloat \n")
|
347 |
f.write(f"Model Scheduler: Euler_a custom \n")
|
348 |
+
f.write(f"Model VAE: stabilityai/sdxl-vae \n")
|
349 |
+
f.write(f"Model UNET: stabilityai after cuda \n")
|
350 |
upload_to_ftp(filename)
|
351 |
for i in range(0, num_images, BATCH_SIZE):
|
352 |
batch_options = options.copy()
|