DrHakase commited on
Commit
210c95a
1 Parent(s): 122bee5

movie output format improvement to compare two (forward - back )

Browse files

[my fork](https://huggingface.co/spaces/DrHakase/full-body-anime-gan)

Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -239,9 +239,11 @@ class Model:
239
  for i in range(0, frame_num):
240
  img = self.get_img(((1 - lin[i]) * w1) + (lin[i] * w2), noise)
241
  video.append_data(img)
 
 
 
242
  video.close()
243
 
244
-
245
  def get_thumbnail(img):
246
  img_new = np.full((256, 384, 3), 200, dtype=np.uint8)
247
  img_new[:, 128:256] = transform.resize(img, (256, 128), preserve_range=True)
 
239
  for i in range(0, frame_num):
240
  img = self.get_img(((1 - lin[i]) * w1) + (lin[i] * w2), noise)
241
  video.append_data(img)
242
+ for i in reversed(range(0, frame_num)):
243
+ img = self.get_img(((1 - lin[i]) * w1) + (lin[i] * w2), noise)
244
+ video.append_data(img)
245
  video.close()
246
 
 
247
  def get_thumbnail(img):
248
  img_new = np.full((256, 384, 3), 200, dtype=np.uint8)
249
  img_new[:, 128:256] = transform.resize(img, (256, 128), preserve_range=True)