fyp1 commited on
Commit
bb70c02
·
verified ·
1 Parent(s): 7e2a6db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,9 +11,9 @@ app = FastAPI()
11
 
12
  # Load Hugging Face pipeline components
13
  model_id = "fyp1/sketchToImage"
14
- controlnet = ControlNetModel.from_pretrained(f"{model_id}/controlnet", torch_dtype=torch.float16)
15
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
16
- scheduler = EulerAncestralDiscreteScheduler.from_pretrained(f"{model_id}/scheduler")
17
 
18
  pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
19
  "stabilityai/stable-diffusion-xl-base-1.0",
 
11
 
12
  # Load Hugging Face pipeline components
13
  model_id = "fyp1/sketchToImage"
14
+ controlnet = ControlNetModel.from_pretrained(f"{model_id}",subfolder="controlnet", torch_dtype=torch.float16)
15
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
16
+ scheduler = EulerAncestralDiscreteScheduler.from_pretrained(f"{model_id}",,subfolder="scheduler", torch_dtype=torch.float16)
17
 
18
  pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
19
  "stabilityai/stable-diffusion-xl-base-1.0",