Spaces:
Runtime error
Runtime error
init
Browse files12 unmodified lines131415161718190 unmodified lines20921021121221321421512 unmodified linesfrom diffusers import StableDiffusionXLPipelineimport gradio as grimport gcdevice = "cuda"dtype = torch.float16190 unmodified linesself.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)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 prompt12 unmodified lines13141516171819190 unmodified lines21021121221321421521621712 unmodified linesfrom diffusers import StableDiffusionXLPipelineimport gradio as grimport gcimport spacesdevice = "cuda"dtype = torch.float16190 unmodified linesself.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.GPUdef 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 prompt
app.py+3-1