ford442 commited on
Commit
8ea148a
·
1 Parent(s): a0d4129

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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 no dtype \n")
217
- f.write(f"Model UNET: stabilityai no dtype \n")
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 no dtype \n")
283
- f.write(f"Model UNET: stabilityai no dtype \n")
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 no dtype \n")
349
- f.write(f"Model UNET: stabilityai no dtype \n")
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()