Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from random import randrange
|
|
16 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
17 |
|
18 |
base_model_id = "runwayml/stable-diffusion-v1-5"
|
19 |
-
model_id = "LuyangZ/
|
20 |
|
21 |
controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float32)
|
22 |
controlnet.to(device)
|
@@ -92,7 +92,7 @@ def floorplan_generation(outline, num_of_rooms):
|
|
92 |
n_outline = n_outline.resize((new_width, new_height))
|
93 |
|
94 |
num_of_rooms = str(num_of_rooms)
|
95 |
-
validation_prompt = "floor plan," + num_of_rooms + "
|
96 |
validation_image = n_outline
|
97 |
|
98 |
image = pipeline(validation_prompt,
|
|
|
16 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
17 |
|
18 |
base_model_id = "runwayml/stable-diffusion-v1-5"
|
19 |
+
model_id = "LuyangZ/FloorAI"
|
20 |
|
21 |
controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float32)
|
22 |
controlnet.to(device)
|
|
|
92 |
n_outline = n_outline.resize((new_width, new_height))
|
93 |
|
94 |
num_of_rooms = str(num_of_rooms)
|
95 |
+
validation_prompt = "floor plan, " + num_of_rooms + " rooms"
|
96 |
validation_image = n_outline
|
97 |
|
98 |
image = pipeline(validation_prompt,
|