Spaces:
Configuration error
Configuration error
gpu / cpu
Browse filesFiles changed (2)
6 unmodified lines78910111213146 unmodified linesmodel_id = "stabilityai/stable-diffusion-2-1"device = torch.device('cuda')dtype = torch.float16pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=dtype)pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)6 unmodified lines78910111213141516176 unmodified linesmodel_id = "stabilityai/stable-diffusion-2-1"device = torch.device('cpu')dtype = torch.float32if torch.cuda.is_available():device = torch.device('cuda')dtype = torch.float16pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=dtype)pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
6 unmodified lines78910111213146 unmodified linesfrom tqdm import tqdmdevice = torch.device('cuda')dtype = torch.float16NeuralTextureControlNetModel = get_class_from_dynamic_module("dilightnet/model_helpers",6 unmodified lines78910111213141516176 unmodified linesfrom tqdm import tqdmdevice = torch.device('cpu')dtype = torch.float32if torch.cuda.is_available():device = torch.device('cuda')dtype = torch.float16NeuralTextureControlNetModel = get_class_from_dynamic_module("dilightnet/model_helpers",
demo/img_gen.py+5-2
demo/relighting_gen.py+5-2