Diffusers
bluestarburst commited on
Commit
771ee15
·
1 Parent(s): f8bc965

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -10,7 +10,7 @@ from animatediff.utils.util import load_weights
10
  from diffusers.utils.import_utils import is_xformers_available
11
  from typing import Any
12
  import torch
13
- from einops import rearrange
14
  import torchvision
15
 
16
  import numpy as np
@@ -71,7 +71,7 @@ class EndpointHandler():
71
  video_length= 5,
72
  ).videos
73
 
74
- videos = rearrange(vids, "b c t h w -> t b c h w")
75
  n_rows=6
76
  fps=1
77
  loop = True
 
10
  from diffusers.utils.import_utils import is_xformers_available
11
  from typing import Any
12
  import torch
13
+ import einops
14
  import torchvision
15
 
16
  import numpy as np
 
71
  video_length= 5,
72
  ).videos
73
 
74
+ videos = einops.rearrange(vids, "b c t h w -> t b c h w")
75
  n_rows=6
76
  fps=1
77
  loop = True