Skip to content

Commit

Permalink
remove multivideo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sidhulyalkar committed Oct 27, 2023
1 parent 8464346 commit e2701bb
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions element_facemap/facemap_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,23 +366,6 @@ def make(self, key):
# Load image frames from video
image_data = utils.load_images_from_video(video_file, selected_frame_ind)

# MULTIVIDEO TODO
# image_data = []
# for video_file in video_files:
# if len(pre_selected_frame_ind) == 0: # set selected frames to all frames

# cap = cv2.VideoCapture(video_file)
# selected_frame_ind = np.arange(int(cap.get(cv2.CAP_PROP_FRAME_COUNT)))
# else:
# selected_frame_ind = pre_selected_frame_ind

# image_data.append(utils.load_images_from_video(video_file, selected_frame_ind))

# -- For multivideo image data reshaping
# cumframes, Ly, Lx, containers = utils.get_frame_details(video_files)
# LY, LX, sy, sx = utils.video_placement(Ly, Lx)
# reshaped_videos = utils.multivideo_reshape(image_data, LY, LX, Ly, Lx, sy, sx)

keypoints_data = utils.load_keypoints(
list(zip(*facemap_inference.BodyPart.contents))[0], keypoints_file
)
Expand Down

0 comments on commit e2701bb

Please sign in to comment.