Skip to content

Commit d195405

Browse files
Merge pull request #2137 from natravedrova:load-video-code-fixes
PiperOrigin-RevId: 478889065
2 parents a6ee002 + 349b119 commit d195405

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

site/en/tutorials/load_data/video.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@
577577
" An NumPy array of frames in the shape of (n_frames, height, width, channels).\n",
578578
" \"\"\"\n",
579579
" # Read each frame by frame\n",
580-
" count = 0\n",
581580
" result = []\n",
582581
" src = cv2.VideoCapture(str(video_path)) \n",
583582
"\n",
@@ -742,8 +741,6 @@
742741
"\n",
743742
" random.shuffle(pairs)\n",
744743
"\n",
745-
" shuffled_video_paths, shuffled_classes = zip(*pairs)\n",
746-
"\n",
747744
" for path, name in pairs:\n",
748745
" video_frames = frames_from_video_file(path, self.n_frames) \n",
749746
" label = self.class_ids_for_name[name] # Encode labels\n",

0 commit comments

Comments
 (0)