Skip to content

Commit

Permalink
revert unneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Aug 30, 2023
1 parent 0b790bb commit e6e37bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gallery/others/plot_video_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
print("PTS for first five frames ", ptss[:5])
print("Total number of frames: ", len(frames))
approx_nf = metadata['audio']['duration'][0] * metadata['audio']['framerate'][0]
print("Approx total number of tv_tensors we can expect: ", approx_nf)
print("Approx total number of datapoints we can expect: ", approx_nf)
print("Read data size: ", frames[0].size(0) * len(frames))

# %%
Expand Down Expand Up @@ -170,7 +170,7 @@ def example_read_video(video_object, start=0, end=None, read_video=True, read_au
return video_frames, audio_frames, (video_pts, audio_pts), video_object.get_metadata()


# Total number of frames should be 327 for video and 523264 tv_tensors for audio
# Total number of frames should be 327 for video and 523264 datapoints for audio
vf, af, info, meta = example_read_video(video)
print(vf.size(), af.size())

Expand Down
2 changes: 1 addition & 1 deletion torchvision/datasets/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __len__(self) -> int:

def __repr__(self) -> str:
head = "Dataset " + self.__class__.__name__
body = [f"Number of tv_tensors: {self.__len__()}"]
body = [f"Number of datapoints: {self.__len__()}"]
if self.root is not None:
body.append(f"Root location: {self.root}")
body += self.extra_repr().splitlines()
Expand Down

0 comments on commit e6e37bb

Please sign in to comment.