linoyts HF staff commited on
Commit
c8c4dea
·
verified ·
1 Parent(s): 472ed9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -39,6 +39,10 @@ MAX_SEED = np.iinfo(np.int32).max
39
  TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
40
  os.makedirs(TMP_DIR, exist_ok=True)
41
 
 
 
 
 
42
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
43
 
44
  pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
 
39
  TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
40
  os.makedirs(TMP_DIR, exist_ok=True)
41
 
42
+ controlnet = ControlNetModel.from_pretrained(
43
+ "xinsir/controlnet-scribble-sdxl-1.0",
44
+ torch_dtype=torch.float16
45
+ )
46
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
47
 
48
  pipe = StableDiffusionXLControlNetPipeline.from_pretrained(