Spaces:
Runtime error
Runtime error
Commit
·
7a7d572
1
Parent(s):
2d29779
Changes
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ login(token = "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")
|
|
15 |
# headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
|
16 |
# pipe = StableDiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-sd-vae", safety_checker=None, torch_dtype=torch.float32).to("cuda")
|
17 |
|
18 |
-
pipe = StableDiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-
|
19 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
20 |
pipe.enable_xformers_memory_efficient_attention()
|
21 |
g_cuda = None
|
|
|
15 |
# headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
|
16 |
# pipe = StableDiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-sd-vae", safety_checker=None, torch_dtype=torch.float32).to("cuda")
|
17 |
|
18 |
+
pipe = StableDiffusionPipeline.from_pretrained("Divyanshu04/Finetuned-model", torch_dtype=torch.float16, use_safetensors=True, use_auth_token = "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")
|
19 |
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
20 |
pipe.enable_xformers_memory_efficient_attention()
|
21 |
g_cuda = None
|