Spaces:
Runtime error
Runtime error
Commit
·
378618f
1
Parent(s):
4f675c0
test
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ import streamlit as st
|
|
| 9 |
|
| 10 |
# model_path = WEIGHTS_DIR # If you want to use previously trained model saved in gdrive, replace this with the full path of model in gdrive
|
| 11 |
|
| 12 |
-
pipe = StableDiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-sd-vae", safety_checker=None, torch_dtype=torch.float32).to("cuda")
|
| 13 |
-
|
| 14 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 15 |
pipe.enable_xformers_memory_efficient_attention()
|
| 16 |
g_cuda = None
|
|
|
|
| 9 |
|
| 10 |
# model_path = WEIGHTS_DIR # If you want to use previously trained model saved in gdrive, replace this with the full path of model in gdrive
|
| 11 |
|
| 12 |
+
# pipe = StableDiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-sd-vae", safety_checker=None, torch_dtype=torch.float32).to("cuda")
|
| 13 |
+
pipe = DiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-sd-vae", torch_dtype=torch.float32)
|
| 14 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
| 15 |
pipe.enable_xformers_memory_efficient_attention()
|
| 16 |
g_cuda = None
|