This commit is contained in:
hzwer
2020-11-16 17:44:25 +08:00
parent 1e52e05bf7
commit 5f54e36a85
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ while success:
p = (F.interpolate(I0, (16, 16), mode='bilinear', align_corners=False)
- F.interpolate(I1, (16, 16), mode='bilinear', align_corners=False)).abs().mean()
if p < 1e-3 and args.skip:
if cnt % 10 == 0:
if cnt % 100 == 0:
print("Warning: Your video has {} static frames, skipping them change the duration of the generated video.".format(cnt))
cnt += 1
pbar.update(1)

View File

@@ -60,7 +60,7 @@ while success:
p = (F.interpolate(I0, (16, 16), mode='bilinear', align_corners=False)
- F.interpolate(I1, (16, 16), mode='bilinear', align_corners=False)).abs().mean()
if p < 1e-3 and args.skip:
if cnt % 10 == 0:
if cnt % 100 == 0:
print("Warning: Your video has {} static frames, skipping them may change the duration of the generated video.".format(cnt))
cnt += 1
pbar.update(1)