Skip to content

Commit

Permalink
Update youtubevis.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterL1n authored Jan 14, 2022
1 parent f8a26e2 commit 81a1093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataset/youtubevis.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, videodir, annfile, size, seq_length, seq_sampler, transform=N

self.index = []
for video_id in self.videos.keys():
for frame in range(len(self.videos[video_id])):
for frame in range(len(self.videos[video_id]['file_names'])):
self.index.append((video_id, frame))

def __len__(self):
Expand Down Expand Up @@ -120,4 +120,4 @@ def __call__(self, imgs, segs):
imgs = F.hflip(imgs)
segs = F.hflip(segs)

return imgs, segs
return imgs, segs

0 comments on commit 81a1093

Please sign in to comment.