add onnx export
This commit is contained in:
1 parent
e2e8d8baf8
commit
28810e9ed3
22 files changed
+835
-342
No files matched your search
+2
-3
@@ -187,8 +187,8 @@ def save_animation_with_gt2(images_pt, images_gt, path_save, fps=None, path_audi
|
||||
"""
|
||||
# print(f"images_pt shape = {len(images_pt)}, shape[0]={images_pt[0].shape}")
|
||||
|
||||
fps = fps if fps else 30
|
||||
|
||||
fps = fps if fps else 50
|
||||
|
||||
N = len(images_pt)
|
||||
duration = N / fps
|
||||
# print(f"fps = {fps}, N ={N}, duration={duration}")
|
||||
@@ -216,7 +216,6 @@ def save_animation_with_gt2(images_pt, images_gt, path_save, fps=None, path_audi
|
||||
animation = animation.set_audio(audioclip)
|
||||
animation = animation.set_duration(duration)
|
||||
|
||||
|
||||
animation.write_videofile(str(path_save), fps=fps)
|
||||
|
||||
# close
|
||||
|
||||
Reference in new issue
Block a user