You can run demo on videos by setting demo.use_camera to False and specifying demo.video_path in a configuration file like this one.
Currently, this repo doesn't support running demo on images, but you can use this repo to run demo on both images and videos.
How can I demo on my photos or a video without using a webcam?