pjreddie / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
25.8k stars 21.33k forks source link

Unable to install darknet #585

Open RohitSiga95 opened 6 years ago

RohitSiga95 commented 6 years ago

I am trying to install darknet into my windows 10 PC but got an error which i am not able to figure out. I was able to clone the git repository and access the files, but when i am trying to use the 'make' command in cmd prompt i am getting the error as shown,

`C:\Users\Rohit>git clone https://github.com/pjreddie/darknet.git Cloning into 'darknet'... remote: Counting objects: 5734, done. remote: Total 5734 (delta 0), reused 0 (delta 0), pack-reused 5734 Receiving objects: 100% (5734/5734), 5.90 MiB | 211.00 KiB/s, done. Resolving deltas: 100% (3863/3863), done. Checking out files: 100% (962/962), done.

C:\Users\Rohit>cd darknet

C:\Users\Rohit\darknet>make mkdir -p obj mkdir -p results A subdirectory or file -p already exists. Error occurred while processing: -p. make: *** [results] Error 1

C:\Users\Rohit\darknet>.\darknet '.\darknet' is not recognized as an internal or external command, operable program or batch file.`

Any help to rectify this issue would be greatly appreciated.

Thanks

TheMikeyR commented 6 years ago

this repo only works in linux, for windows use https://github.com/AlexeyAB/darknet/

RohitSiga95 commented 6 years ago

@TheMikeyR so i have to clone this repo and follow the same instructions given in the site?

TheMikeyR commented 6 years ago

clone AlexeyAB's fork, he did some modifications so it is compilable on windows.

RohitSiga95 commented 6 years ago

Getting similar error.

`C:\Users\Rohit>git clone https://github.com/AlexeyAB/darknet.git Cloning into 'darknet'... remote: Counting objects: 6256, done. remote: Compressing objects: 100% (51/51), done. remote: Total 6256 (delta 27), reused 37 (delta 21), pack-reused 6182 Receiving objects: 100% (6256/6256), 4.77 MiB | 235.00 KiB/s, done. Resolving deltas: 100% (4096/4096), done. Checking out files: 100% (1870/1870), done.

C:\Users\Rohit>cd darknet

C:\Users\Rohit\darknet>make process_begin: CreateProcess(NULL, uname, ...) failed. mkdir -p obj mkdir -p backup A subdirectory or file -p already exists. Error occurred while processing: -p. make: *** [backup] Error 1

C:\Users\Rohit\darknet>`

TheMikeyR commented 6 years ago

you can't compile with make on windows, you should use his windows tutorial on how to compile https://github.com/AlexeyAB/darknet#how-to-compile-on-windows

RohitSiga95 commented 6 years ago

@TheMikeyR thanks for the help. :)

I tried following the instructions but i am unable to understand this instruction

"If you don't have GPU, but have MSVS 2015 and OpenCV 3.0 (with paths: C:\opencv_3.0\opencv\build\include & C:\opencv_3.0\opencv\build\x64\vc14\lib), then start MSVS, open build\darknet\darknet_no_gpu.sln, set x64 and Release, and do the: Build -> Build darknet_no_gpu"

here i am unable to understand what is "set x64 and Release". Can you pls help me what to do in this step?

TheMikeyR commented 6 years ago

That is what you should set the build environment to in visual studio after you have opened the project with the .sln file.

MaverickLoneshark commented 6 years ago

721 might help you, too

cyrineee commented 5 years ago

the"make" command does not work for windows. any solution ?

chaitanya-vardhan123 commented 4 years ago

make command for linux os @raffibaihaqy02

Khazina-python commented 3 years ago

When I build darknet_no_gpu.sln, all success but 1 failed and that 1 failed is:

darknet_no_gpu.vcxproj -- failed

what am i missing?? How can I solve this?