cosmicman commited on
Commit
959ab93
Β·
verified Β·
1 Parent(s): e895e5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -107,11 +107,11 @@ refiner_model_path: str = "stabilityai/stable-diffusion-xl-refiner-1.0"
107
  unet_path: str = "cosmicman/CosmicMan-SDXL"
108
  SCHEDULER = schedule_map[schedule]
109
  scheduler = SCHEDULER.from_pretrained(base_model_path, subfolder="scheduler", torch_dtype=torch.float16)
110
- # unet = UNet2DConditionModel.from_pretrained(unet_path, torch_dtype=torch.float16)
111
 
112
  pipe = StableDiffusionXLPipeline.from_pretrained(
113
  base_model_path,
114
- # unet=unet,
115
  scheduler=scheduler,
116
  torch_dtype=torch.float16,
117
  use_safetensors=True
 
107
  unet_path: str = "cosmicman/CosmicMan-SDXL"
108
  SCHEDULER = schedule_map[schedule]
109
  scheduler = SCHEDULER.from_pretrained(base_model_path, subfolder="scheduler", torch_dtype=torch.float16)
110
+ unet = UNet2DConditionModel.from_pretrained(unet_path, torch_dtype=torch.float16)
111
 
112
  pipe = StableDiffusionXLPipeline.from_pretrained(
113
  base_model_path,
114
+ unet=unet,
115
  scheduler=scheduler,
116
  torch_dtype=torch.float16,
117
  use_safetensors=True