cosmicman commited on
Commit
0a11636
Β·
verified Β·
1 Parent(s): e3a491b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,10 +104,10 @@ print("Loading Model!")
104
  schedule: str = "euler_a"
105
  base_model_path: str = "stabilityai/stable-diffusion-xl-base-1.0"
106
  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,
 
104
  schedule: str = "euler_a"
105
  base_model_path: str = "stabilityai/stable-diffusion-xl-base-1.0"
106
  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,