Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling mistake: orignal -> original #3062

Merged
merged 3 commits into from
Dec 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchvision/csrc/cpu/decoder/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct VideoFormat {
}
/*
When width = 0, height = 0, minDimension = 0, and maxDimension = 0,
keep the orignal frame resolution
keep the original frame resolution
When width = 0, height = 0, minDimension != 0, and maxDimension = 0,
keep the aspect ratio and resize the frame so that shorter edge size is
minDimension
Expand Down
4 changes: 2 additions & 2 deletions torchvision/io/_video_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _read_video_from_file(
video_width/video_height/video_min_dimension/video_max_dimension: int
together decide the size of decoded frames
- When video_width = 0, video_height = 0, video_min_dimension = 0,
and video_max_dimension = 0, keep the orignal frame resolution
and video_max_dimension = 0, keep the original frame resolution
- When video_width = 0, video_height = 0, video_min_dimension != 0,
and video_max_dimension = 0, keep the aspect ratio and resize the
frame so that shorter edge size is video_min_dimension
Expand Down Expand Up @@ -357,7 +357,7 @@ def _read_video_from_memory(
video_width/video_height/video_min_dimension/video_max_dimension: int
together decide the size of decoded frames
- When video_width = 0, video_height = 0, video_min_dimension = 0,
and video_max_dimension = 0, keep the orignal frame resolution
and video_max_dimension = 0, keep the original frame resolution
- When video_width = 0, video_height = 0, video_min_dimension != 0,
and video_max_dimension = 0, keep the aspect ratio and resize the
frame so that shorter edge size is video_min_dimension
Expand Down