File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 24
24
NVCC_FLAGS = os .getenv ("NVCC_FLAGS" , None )
25
25
# Note: the GPU video decoding stuff used to be called "video codec", which
26
26
# isn't an accurate or descriptive name considering there are at least 2 other
27
- # video deocding backends in torchvision. I'm renaming this to "gpu video
27
+ # video decoding backends in torchvision. I'm renaming this to "gpu video
28
28
# decoder" where possible, keeping user facing names (like the env var below) to
29
29
# the old scheme for BC.
30
30
USE_GPU_VIDEO_DECODER = os .getenv ("TORCHVISION_USE_VIDEO_CODEC" , "1" ) == "1"
@@ -211,7 +211,7 @@ def find_libpng():
211
211
subprocess .run ([libpng_config , "--version" ], stdout = subprocess .PIPE ).stdout .strip ().decode ("utf-8" )
212
212
)
213
213
if png_version < min_version :
214
- warnings .warn ("libpng version {png_version} is less than minimum required version {min_version}" )
214
+ warnings .warn (f "libpng version { png_version } is less than minimum required version { min_version } " )
215
215
return False , None , None , None
216
216
217
217
include_dir = (
@@ -448,7 +448,7 @@ def find_ffmpeg_libraries():
448
448
449
449
extensions .append (
450
450
CppExtension (
451
- # This is an aweful name. It should be "cpu_video_decoder". Keeping for BC.
451
+ # This is an awful name. It should be "cpu_video_decoder". Keeping for BC.
452
452
"torchvision.video_reader" ,
453
453
combined_src ,
454
454
include_dirs = [
You can’t perform that action at this time.
0 commit comments