LuyangZ commited on
Commit
b25e4d1
·
verified ·
1 Parent(s): 8b56978

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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/controlnet_Neufert4_64_100"
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 + " bedrooms"
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,