Yaron Koresh commited on
Commit
84810a2
·
verified ·
1 Parent(s): 9a43a98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -25,10 +25,13 @@ import jax.numpy as jnp
25
  last_motion=None
26
  fps=15
27
  time=2
 
 
28
  device = "cuda"
29
  dtype = torch.float16
30
  result=[]
31
  step = 30
 
32
  #repo = "ByteDance/AnimateDiff-Lightning"
33
  #ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
34
  #base = "emilianJR/epiCRealism"
@@ -146,11 +149,11 @@ def Piper(image,positive,negative,motion):
146
  return pipe(
147
  prompt=positive,
148
  negative_prompt=negative,
149
- height=1024,
150
- width=576,
151
- ip_adapter_image=image.convert("RGB").resize((576,1024)),
152
  num_inference_steps=step,
153
- guidance_scale=7.5,
154
  num_frames=(fps*time)
155
  )
156
 
 
25
  last_motion=None
26
  fps=15
27
  time=2
28
+ width=896
29
+ height=896
30
  device = "cuda"
31
  dtype = torch.float16
32
  result=[]
33
  step = 30
34
+ accu=7.5
35
  #repo = "ByteDance/AnimateDiff-Lightning"
36
  #ckpt = f"animatediff_lightning_{step}step_diffusers.safetensors"
37
  #base = "emilianJR/epiCRealism"
 
149
  return pipe(
150
  prompt=positive,
151
  negative_prompt=negative,
152
+ height=height,
153
+ width=width,
154
+ ip_adapter_image=image.convert("RGB").resize((width,height)),
155
  num_inference_steps=step,
156
+ guidance_scale=accu,
157
  num_frames=(fps*time)
158
  )
159