Spaces:
Runtime error
Runtime error
init
Browse files12 unmodified lines13141516171819190 unmodified lines21021121221221321421521621712 unmodified linesfrom diffusers import StableDiffusionXLPipelineimport gradio as grimport gcimport spaces
device = "cuda"dtype = torch.float16190 unmodified lines self.seg_image_processor, self.image_segmentor = get_segmentation_pipeline() self.depth_feature_extractor, self.depth_estimator = get_depth_pipeline() self.depth_estimator = self.depth_estimator.to(device)
@spaces.GPU def generate_design(self, empty_room_image: Image, prompt: str, guidance_scale: int = 10, num_steps: int = 50, strength: float =0.9, img_size: int = 640) -> Image: """ Given an image of an empty room and a promptapp.py+3-1