install the dependencies by running: pip install -r requirements.txt The you can run the detection_caption.py file to get the results. Simpler command is python detection_caption.py --image <image_path>