When i run "./darknet detector recall cfg/voc.data cfg/yolo-voc.cfg backup/yolo-voc_final.weights" , i find in detector.c existing a hard code variable: list *plist = get_paths("data/coco_val_5k.list");
But the file does not exist in data dir.
Hi! I have the exact same issue. The solution of changing detector.c (the line with the path to the validation images, line 371/372) does not work, since there is no detector.c in "src" folder; it exists only in "examples" folder.
When I run darknet.exe detector recall data/obj.data yolo-obj.cfg backup\yolo-obj_7000.weights, I get error:
Couldn't open file: data/coco_val_5k.list
I edited darknet/examples/detector.c file and replaced list *plist = get_paths("data/coco_val_5k.list"); at line 497 to list *plist = get_paths("data/test.txt");
But, I am still getting the exact same error: Couldn't open file: data/coco_val_5k.list
Someone said I should edit darknet/src/detector.c: https://groups.google.com/forum/#!topic/darknet/BeU_jyJukAo
But, there is no detector.c file in darknet/src/
Help!
Here you can find the Coco Dataset script: darknet/scripts/get_coco_dataset.sh
When you download it, you will have all these files but you need to change cfg/coco.data paths and when you need coco_val_5k.list you put 5k.txt that you got from get_coco_dataset.sh script.
@gtatiya @akkarpova the file in example folder is the one. Just re-build darknet after you change the source file.
Try changing the permissions for the file as that was my issue. (The following commands are in Linux).
To check the permissions of files in the current directory use the command ls -l. Any files that have ---------- next to them are not currently accessible.
To allow access to these files use the command chmod 777 <file_name>. For example, if you cannot access obj.data then use chmod 777 obj.data. If you want to change permissions for every file in your directory use chmod 777 -R . Then use ls -l again to ensure that you now have access.
here's my solution: just rename the 'val.txt' into 'coco_val_5k.list' and put it under 'data/' directory.
here's my solution: just rename the 'val.txt' into 'coco_val_5k.list' and put it under 'data/' directory.
I don't have any val.txt file, how does it looks like ?
You just need to make sure the path in the "valid = your_val_path" is accessible and the file is not empty.
Most helpful comment
here's my solution: just rename the 'val.txt' into 'coco_val_5k.list' and put it under 'data/' directory.