File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -406,12 +406,14 @@ def extract_face_data(videofilename: str,
406
406
out_composite_video_path = compositevideopath ,
407
407
normalize_landmarks = normalize_landmarks )
408
408
# Save numpy arrays to a file
409
- for filepath , data in [(landmarkspath , landmarksdata ),
410
- (nosetippositionpath , nosetipdata ),
411
- (facerotationpath , facerotdata ),
412
- (facescalepath , facescaledata )]:
409
+ for filepath , data in \
410
+ [(landmarkspath , landmarksdata ),
411
+ (nosetippositionpath , nosetipdata ),
412
+ (facerotationpath , facerotdata ),
413
+ (facescalepath , facescaledata )]:
414
+
413
415
if filepath is not None :
414
416
print ("Saving numpy array to '{}'" .format (filepath ))
415
- data . dump (file = filepath )
417
+ np . save (file = filepath , arr = data , allow_pickle = False )
416
418
417
419
print ("Done." )
You can’t perform that action at this time.
0 commit comments