Erwann Millon commited on
Commit
da5d141
1 Parent(s): 21d692f

update state animation

Browse files
Files changed (1) hide show
  1. ImageState.py +2 -4
ImageState.py CHANGED
@@ -50,11 +50,9 @@ class ImageState:
50
  "./latent_vectors/asian10.pt", map_location=self.device
51
  )
52
 
53
- def create_gif(
54
- total_duration, extend_frames, folder="./img_history", gif_name="face_edit.gif"
55
- ):
56
  images = []
57
- paths = list(sorted(glob.glob(folder + "/*")))
58
  print(paths)
59
  frame_duration = total_duration / len(paths)
60
  print(len(paths), "frame dur", frame_duration)
 
50
  "./latent_vectors/asian10.pt", map_location=self.device
51
  )
52
 
53
+ def create_gif(self, total_duration, extend_frames, gif_name="face_edit.gif"):
 
 
54
  images = []
55
+ paths = list(sorted(glob.glob(self.img_dir + "/*")))
56
  print(paths)
57
  frame_duration = total_duration / len(paths)
58
  print(len(paths), "frame dur", frame_duration)