Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ model_id = "LuyangZ/FloorAI"
|
|
| 22 |
# controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype="auto")
|
| 23 |
controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float32)
|
| 24 |
controlnet.to(device)
|
| 25 |
-
torch.cuda.empty_cache()
|
| 26 |
|
| 27 |
|
| 28 |
pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype=torch.float32)
|
|
@@ -31,7 +31,7 @@ pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , con
|
|
| 31 |
pipeline.scheduler = UniPCMultistepScheduler.from_config(pipeline.scheduler.config)
|
| 32 |
|
| 33 |
pipeline = pipeline.to(device)
|
| 34 |
-
torch.cuda.empty_cache()
|
| 35 |
|
| 36 |
|
| 37 |
|
|
|
|
| 22 |
# controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype="auto")
|
| 23 |
controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float32)
|
| 24 |
controlnet.to(device)
|
| 25 |
+
# torch.cuda.empty_cache()
|
| 26 |
|
| 27 |
|
| 28 |
pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype=torch.float32)
|
|
|
|
| 31 |
pipeline.scheduler = UniPCMultistepScheduler.from_config(pipeline.scheduler.config)
|
| 32 |
|
| 33 |
pipeline = pipeline.to(device)
|
| 34 |
+
# torch.cuda.empty_cache()
|
| 35 |
|
| 36 |
|
| 37 |
|