Yaron Koresh commited on
Commit
15b5840
·
verified ·
1 Parent(s): fb33eaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -48,7 +48,6 @@ else:
48
  dtype = torch.float16
49
 
50
  base = "emilianJR/epiCRealism"
51
- adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-3", torch_dtype=dtype, device=device, safety_checker=None)
52
 
53
  # variable data
54
 
@@ -108,6 +107,7 @@ function custom(){
108
 
109
  # torch pipes
110
 
 
111
  image_pipe = StableDiffusionPipeline.from_pretrained(base, torch_dtype=dtype, safety_checker=None).to(device)
112
  pipe = AnimateDiffPipeline.from_pretrained(base, torch_dtype=dtype, motion_adapter=adapter).to(device)
113
  pipe.scheduler = DDIMScheduler.from_pretrained(
@@ -121,7 +121,6 @@ pipe.scheduler = DDIMScheduler.from_pretrained(
121
  pipe.enable_vae_slicing()
122
  pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter_sd15.bin")
123
  pipe.enable_model_cpu_offload()
124
- pipe.set_ip_adapter_scale(0.6)
125
  pipe.enable_free_init(method="butterworth", use_fast_sampling=fast)
126
 
127
  # functionality
 
48
  dtype = torch.float16
49
 
50
  base = "emilianJR/epiCRealism"
 
51
 
52
  # variable data
53
 
 
107
 
108
  # torch pipes
109
 
110
+ adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2", torch_dtype=dtype, device=device, safety_checker=None)
111
  image_pipe = StableDiffusionPipeline.from_pretrained(base, torch_dtype=dtype, safety_checker=None).to(device)
112
  pipe = AnimateDiffPipeline.from_pretrained(base, torch_dtype=dtype, motion_adapter=adapter).to(device)
113
  pipe.scheduler = DDIMScheduler.from_pretrained(
 
121
  pipe.enable_vae_slicing()
122
  pipe.load_ip_adapter("h94/IP-Adapter", subfolder="models", weight_name="ip-adapter_sd15.bin")
123
  pipe.enable_model_cpu_offload()
 
124
  pipe.enable_free_init(method="butterworth", use_fast_sampling=fast)
125
 
126
  # functionality