hansyan commited on
Commit
5c0c439
1 Parent(s): 70fdf0d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -11,7 +11,7 @@ import torch, torchvision
11
  from diffusers import StableDiffusionPipeline, UNet2DConditionModel
12
  from src.utils_perflow import merge_delta_weights_into_unet
13
  from src.scheduler_perflow import PeRFlowScheduler
14
- delta_weights = UNet2DConditionModel.from_pretrained("hansyan/piecewise-rectified-flow-delta-weights", torch_dtype=torch.float16, variant="v0-1",).state_dict()
15
  pipe = StableDiffusionPipeline.from_pretrained("Lykon/dreamshaper-8", torch_dtype=torch.float16,)
16
  pipe = merge_delta_weights_into_unet(pipe, delta_weights)
17
  pipe.scheduler = PeRFlowScheduler.from_config(pipe.scheduler.config, prediction_type="epsilon", num_time_windows=4)
 
11
  from diffusers import StableDiffusionPipeline, UNet2DConditionModel
12
  from src.utils_perflow import merge_delta_weights_into_unet
13
  from src.scheduler_perflow import PeRFlowScheduler
14
+ delta_weights = UNet2DConditionModel.from_pretrained("hansyan/perflow-sd15-delta-weights", torch_dtype=torch.float16, variant="v0-1",).state_dict()
15
  pipe = StableDiffusionPipeline.from_pretrained("Lykon/dreamshaper-8", torch_dtype=torch.float16,)
16
  pipe = merge_delta_weights_into_unet(pipe, delta_weights)
17
  pipe.scheduler = PeRFlowScheduler.from_config(pipe.scheduler.config, prediction_type="epsilon", num_time_windows=4)