Spaces:
Configuration error
Configuration error
gpu / cpu
Browse filesFiles changed (2)
6 unmodified lines789101110111213141516176 unmodified lines
model_id = "stabilityai/stable-diffusion-2-1"
device = torch.device('cuda')dtype = torch.float16device = torch.device('cpu')dtype = torch.float32if torch.cuda.is_available(): device = torch.device('cuda') dtype = torch.float16
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=dtype)pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)6 unmodified lines789101110111213141516176 unmodified lines
from tqdm import tqdm
device = torch.device('cuda')dtype = torch.float16device = torch.device('cpu')dtype = torch.float32if torch.cuda.is_available(): device = torch.device('cuda') dtype = torch.float16
NeuralTextureControlNetModel = get_class_from_dynamic_module( "dilightnet/model_helpers",demo/img_gen.py+5-2
demo/relighting_gen.py+5-2