Search code examples
yolodarknetnano

YOLO (Darknet): How to change the output file directory of a detection (predictions.jpg)?


The Darknet guide to detect objects in images using pre-trained weights is here

The command to run is:

./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg

The result of the detection is currently saved in the current directory. How can i change this directory where the output file predictions.jpg is saved?


Solution

  • it is under detector.c there is a function like this save_image(im, "predictions");