Closed Prakash19921206 closed 7 years ago
Thanks for the feedback on Windows! I haven't tried it on this OS.
9k.names
is located in yolo-9000/darknet/data/9k.names
Can you find it on your computer?
It's possible that darknet
does not support Windows.
Let me know
i think darknet build fine, but i had problem running below command in windows command prompt
cat yolo9000-weights/x* > yolo9000-weights/yolo9000.weights # it was generated from split -b 95m yolo9000.weights
so i used CygWin64 for entire build process.
darknet gave a small warning, below is the output from CygWin
terminal
make
mkdir -p obj
mkdir -p backup
mkdir -p results
gcc -Wall -Wfatal-errors -Ofast -c ./src/gemm.c -o obj/gemm.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/utils.c -o obj/utils.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/cuda.c -o obj/cuda.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/deconvolutional_layer.c -o obj/deconvolutional_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/convolutional_layer.c -o obj/convolutional_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/list.c -o obj/list.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/image.c -o obj/image.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/activations.c -o obj/activations.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/im2col.c -o obj/im2col.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/col2im.c -o obj/col2im.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/blas.c -o obj/blas.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/crop_layer.c -o obj/crop_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/dropout_layer.c -o obj/dropout_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/maxpool_layer.c -o obj/maxpool_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/softmax_layer.c -o obj/softmax_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/data.c -o obj/data.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/matrix.c -o obj/matrix.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/network.c -o obj/network.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/connected_layer.c -o obj/connected_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/cost_layer.c -o obj/cost_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/parser.c -o obj/parser.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/option_list.c -o obj/option_list.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/darknet.c -o obj/darknet.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/detection_layer.c -o obj/detection_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/captcha.c -o obj/captcha.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/route_layer.c -o obj/route_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/writing.c -o obj/writing.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/box.c -o obj/box.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/nightmare.c -o obj/nightmare.o
./src/nightmare.c: In function ‘reconstruct_picture’:
./src/nightmare.c:135:11: warning: unused variable ‘l’ [-Wunused-variable]
layer l = get_network_output_layer(net);
^
gcc -Wall -Wfatal-errors -Ofast -c ./src/normalization_layer.c -o obj/normalization_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/avgpool_layer.c -o obj/avgpool_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/coco.c -o obj/coco.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/dice.c -o obj/dice.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/yolo.c -o obj/yolo.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/detector.c -o obj/detector.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/layer.c -o obj/layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/compare.c -o obj/compare.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/regressor.c -o obj/regressor.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/classifier.c -o obj/classifier.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/local_layer.c -o obj/local_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/swag.c -o obj/swag.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/shortcut_layer.c -o obj/shortcut_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/activation_layer.c -o obj/activation_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/rnn_layer.c -o obj/rnn_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/gru_layer.c -o obj/gru_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/rnn.c -o obj/rnn.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/rnn_vid.c -o obj/rnn_vid.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/crnn_layer.c -o obj/crnn_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/demo.c -o obj/demo.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/tag.c -o obj/tag.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/cifar.c -o obj/cifar.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/go.c -o obj/go.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/batchnorm_layer.c -o obj/batchnorm_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/art.c -o obj/art.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/region_layer.c -o obj/region_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/reorg_layer.c -o obj/reorg_layer.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/lsd.c -o obj/lsd.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/super.c -o obj/super.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/voxel.c -o obj/voxel.o
gcc -Wall -Wfatal-errors -Ofast -c ./src/tree.c -o obj/tree.o
gcc -Wall -Wfatal-errors -Ofast obj/gemm.o obj/utils.o obj/cuda.o obj/deconvolutional_layer.o obj/convolutional_layer.o obj/list.o obj/image.o obj/activations.o obj/im2col.o obj/col2im.o obj/blas.o obj/crop_layer.o obj/dropout_layer.o obj/maxpool_layer.o obj/softmax_layer.o obj/data.o obj/matrix.o obj/network.o obj/connected_layer.o obj/cost_layer.o obj/parser.o obj/option_list.o obj/darknet.o obj/detection_layer.o obj/captcha.o obj/route_layer.o obj/writing.o obj/box.o obj/nightmare.o obj/normalization_layer.o obj/avgpool_layer.o obj/coco.o obj/dice.o obj/yolo.o obj/detector.o obj/layer.o obj/compare.o obj/regressor.o obj/classifier.o obj/local_layer.o obj/swag.o obj/shortcut_layer.o obj/activation_layer.o obj/rnn_layer.o obj/gru_layer.o obj/rnn.o obj/rnn_vid.o obj/crnn_layer.o obj/demo.o obj/tag.o obj/cifar.o obj/go.o obj/batchnorm_layer.o obj/art.o obj/region_layer.o obj/reorg_layer.o obj/lsd.o obj/super.o obj/voxel.o obj/tree.o -o darknet -lm -pthread
i guess that warning is negligible
after build, when i run darknet.exe
it was expecting a library (cygwin1.dll
because i build with CygWin)
after providing this .dll file when i run again, i get Couldn't open file: data/9k.names (and yeah, i checked its available)
@Prakash19921206 can you open an Issue here: https://github.com/pjreddie/darknet ? It's an issue related to the darknet project itself. I'm not sure they support Windows
Here : https://groups.google.com/forum/#!forum/darknet Because they don't accept Issues on Github directly. Thanks
Reopen when you have further news.
i'm on windows 7 (64 bit) after followed build steps, when i run following command
darknet.exe detector test cfg/combine9k.data cfg/yolo9000.cfg yolo9000-weights/yolo9000.weights data/horses.jpg
i get error messagei modified
combine9k.data
file,names = "D:/yolo-9000/data/9k.names"
when i try again, i get same error