tianweiy commited on
Commit
2bd2578
1 Parent(s): 76cc5d7
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -60,10 +60,10 @@ from huggingface_hub import hf_hub_download
60
  from safetensors.torch import load_file
61
  base_model_id = "stabilityai/stable-diffusion-xl-base-1.0"
62
  repo_name = "tianweiy/DMD2"
63
- ckpt_name = "dmd2_sdxl_4step_lora_fp16.bin"
64
  # Load model.
65
  pipe = DiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16, variant="fp16").to("cuda")
66
- pipe.load_lora_weights(hf_hub_download(repo, ckpt))
67
  pipe.fuse_lora()
68
 
69
  pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
 
60
  from safetensors.torch import load_file
61
  base_model_id = "stabilityai/stable-diffusion-xl-base-1.0"
62
  repo_name = "tianweiy/DMD2"
63
+ ckpt_name = "dmd2_sdxl_4step_lora_fp16.safetensors"
64
  # Load model.
65
  pipe = DiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16, variant="fp16").to("cuda")
66
+ pipe.load_lora_weights(hf_hub_download(repo_name, ckpt_name))
67
  pipe.fuse_lora()
68
 
69
  pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)