- This topic has 1 reply, 2 voices, and was last updated 2 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Fórum Detecção de Objetos com YOLO, Darknet, OpenCV e Python › Couldn’t open file: /data/train.txt
Estou no Treinamento do YOLO 2 e quando rodo o comando !./darknet detector train data/obj.data cfg/yolov4_custom.cfg yolov4.conv.137 -dont_show ocorre o seguinte erro
Done! Loaded 137 layers from weights-file Learning Rate: 0.0013, Momentum: 0.949, Decay: 0.0005 Detection layer: 139 – type = 28 Detection layer: 150 – type = 28 Detection layer: 161 – type = 28 Couldn’t open file: /data/train.txt
Olá Felipe!
Pela mensagem de erro, o darknet não conseguiu localizar o arquivo .txt de treinamento. Verifique se o comando (!./darknet detector …) foi executado no diretório correto, conforme mostrado em aula, ou se foi executado a partir de outro diretório. Pois nesse caso ele não vai encontrar o arquivo no caminho especificado em obj.data. Então você pode conferir se está no diretório relativo correto; ou atualizar o caminho no obj.data e colocar o caminho absoluto.