Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -138,9 +138,9 @@ def load_and_prepare_model():
|
|
138 |
pipe.scheduler = sched
|
139 |
#pipe.vae.do_resize=False
|
140 |
#pipe.vae.vae_scale_factor=8
|
141 |
-
|
142 |
-
pipe.to(device)
|
143 |
-
pipe.to(torch.bfloat16)
|
144 |
#pipe.vae.set_default_attn_processor()
|
145 |
print(f'init noise scale: {pipe.scheduler.init_noise_sigma}')
|
146 |
pipe.watermark=None
|
@@ -170,14 +170,14 @@ def upload_to_ftp(filename):
|
|
170 |
def uploadNote(prompt,num_inference_steps,guidance_scale,timestamp):
|
171 |
filename= f'rv_C_{timestamp}.txt'
|
172 |
with open(filename, "w") as f:
|
173 |
-
f.write(f"Realvis 5.0 (Tester
|
174 |
f.write(f"Date/time: {timestamp} \n")
|
175 |
f.write(f"Prompt: {prompt} \n")
|
176 |
f.write(f"Steps: {num_inference_steps} \n")
|
177 |
f.write(f"Guidance Scale: {guidance_scale} \n")
|
178 |
f.write(f"SPACE SETUP: \n")
|
179 |
-
f.write(f"Model Scheduler: Euler_a
|
180 |
-
f.write(f"Model VAE:
|
181 |
f.write(f"To cuda and bfloat \n")
|
182 |
upload_to_ftp(filename)
|
183 |
|
|
|
138 |
pipe.scheduler = sched
|
139 |
#pipe.vae.do_resize=False
|
140 |
#pipe.vae.vae_scale_factor=8
|
141 |
+
pipe.to(device=device, dtype=torch.bfloat16)
|
142 |
+
#pipe.to(device)
|
143 |
+
#pipe.to(torch.bfloat16)
|
144 |
#pipe.vae.set_default_attn_processor()
|
145 |
print(f'init noise scale: {pipe.scheduler.init_noise_sigma}')
|
146 |
pipe.watermark=None
|
|
|
170 |
def uploadNote(prompt,num_inference_steps,guidance_scale,timestamp):
|
171 |
filename= f'rv_C_{timestamp}.txt'
|
172 |
with open(filename, "w") as f:
|
173 |
+
f.write(f"Realvis 5.0 (Tester D) \n")
|
174 |
f.write(f"Date/time: {timestamp} \n")
|
175 |
f.write(f"Prompt: {prompt} \n")
|
176 |
f.write(f"Steps: {num_inference_steps} \n")
|
177 |
f.write(f"Guidance Scale: {guidance_scale} \n")
|
178 |
f.write(f"SPACE SETUP: \n")
|
179 |
+
f.write(f"Model Scheduler: Euler_a all default before cuda \n")
|
180 |
+
f.write(f"Model VAE: default\n")
|
181 |
f.write(f"To cuda and bfloat \n")
|
182 |
upload_to_ftp(filename)
|
183 |
|