yuki-imajuku commited on
Commit
5acaf9f
1 Parent(s): f8c0350

Update evo_ukiyoe_v1.py

Browse files
Files changed (1) hide show
  1. evo_ukiyoe_v1.py +4 -4
evo_ukiyoe_v1.py CHANGED
@@ -18,8 +18,8 @@ DPO_REPO = "mhdang/dpo-sdxl-text2image-v1"
18
  JN_REPO = "RunDiffusion/Juggernaut-XL-v9"
19
  JSDXL_REPO = "stabilityai/japanese-stable-diffusion-xl"
20
 
21
- # LoRA weights
22
- LORA_REPO = "SakanaAI/Evo-Ukiyoe-v1"
23
 
24
 
25
  def load_state_dict(checkpoint_file: Union[str, os.PathLike], device: str = "cpu"):
@@ -164,8 +164,8 @@ def load_evo_ukiyoe(device="cuda") -> StableDiffusionXLPipeline:
164
  )
165
  pipe = pipe.to(device, dtype=torch.float16)
166
 
167
- # Load LoRA module
168
- pipe.load_lora_weights(LORA_REPO)
169
  pipe.fuse_lora(lora_scale=1.0)
170
  return pipe
171
 
 
18
  JN_REPO = "RunDiffusion/Juggernaut-XL-v9"
19
  JSDXL_REPO = "stabilityai/japanese-stable-diffusion-xl"
20
 
21
+ # Evo-Ukiyoe
22
+ UKIYOE_REPO = "SakanaAI/Evo-Ukiyoe-v1"
23
 
24
 
25
  def load_state_dict(checkpoint_file: Union[str, os.PathLike], device: str = "cpu"):
 
164
  )
165
  pipe = pipe.to(device, dtype=torch.float16)
166
 
167
+ # Load Evo-Ukiyoe weights
168
+ pipe.load_lora_weights(UKIYOE_REPO)
169
  pipe.fuse_lora(lora_scale=1.0)
170
  return pipe
171