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 2424NVCC_FLAGS = os .getenv ("NVCC_FLAGS" , None )
2525# Note: the GPU video decoding stuff used to be called "video codec", which
2626# 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
2828# decoder" where possible, keeping user facing names (like the env var below) to
2929# the old scheme for BC.
3030USE_GPU_VIDEO_DECODER = os .getenv ("TORCHVISION_USE_VIDEO_CODEC" , "1" ) == "1"
@@ -211,7 +211,7 @@ def find_libpng():
211211 subprocess .run ([libpng_config , "--version" ], stdout = subprocess .PIPE ).stdout .strip ().decode ("utf-8" )
212212 )
213213 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 } " )
215215 return False , None , None , None
216216
217217 include_dir = (
@@ -448,7 +448,7 @@ def find_ffmpeg_libraries():
448448
449449 extensions .append (
450450 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.
452452 "torchvision.video_reader" ,
453453 combined_src ,
454454 include_dirs = [
You can’t perform that action at this time.
0 commit comments