Skip to content

Commit

Permalink
adding the warning on unsucessful import
Browse files Browse the repository at this point in the history
  • Loading branch information
bjuncek committed Oct 8, 2020
1 parent 0fc157d commit afef7df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion torchvision/io/_video_opt.py
Expand Up @@ -26,7 +26,9 @@
torch.ops.load_library(ext_specs.origin)
_HAS_VIDEO_OPT = True
except (ImportError, OSError):
pass
warnings.warn("Could not import video_reader bakcend."
+ " Make sure ffmpeg is installed properly"
+ " and rebuild torchvision.")


default_timebase = Fraction(0, 1)
Expand Down

0 comments on commit afef7df

Please sign in to comment.