A problem with my YOLO image detector project!












-1














It is me again, the ubuntu newbie user!
I'm trying to do some work with YOLO and found a project here pjreddie with a few steps to implement this YOLO image detector thing. So, the instructions says:



First, install darknet.



Then run:



git clone https://github.com/pjreddie/darknet
cd darknet
make


Then run:



wget https://pjreddie.com/media/files/yolov3.weights


and finally run the detector:



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


The problem is, when I run the detector it gives me an error:



bash: ./darknet: Is a directory


Kindly, any idea why I get this message, and What is the fix?



I run the last line from the darknet directory.



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


When I run make , I get:



gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
make: gcc: Command not found
Makefile:89: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 127


Now, following the recommendation of steeldriver, I installed gcc then run make again from darknet directory I got:



g++ -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/image_opencv.cpp -o obj/image_opencv.o
make: g++: Command not found
Makefile:86: recipe for target 'obj/image_opencv.o' failed
make: *** [obj/image_opencv.o] Error 127


So, installing the g++ and re-run the whole thing again gave me this result:



gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast obj/captcha.o obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o obj/detector.o obj/nightmare.o obj/instance-segmenter.o obj/darknet.o libdarknet.a -o darknet -lm -pthread  libdarknet.a
/usr/bin/ld: cannot open output file darknet: Is a directory
collect2: error: ld returned 1 exit status
Makefile:77: recipe for target 'darknet' failed
make: *** [darknet] Error 1









share|improve this question









New contributor




electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Did you run this last command in the darknet directory?
    – dessert
    Dec 23 at 16:56










  • Who said you should run it as root? pjreddie.com/darknet/install doesn’t! Did it compile successfully? Please add new information directly to your question (edit), do not use comments.
    – dessert
    Dec 23 at 17:19












  • Then it obviously didn’t compile successfully. Please edit and add the output of make (just run it again if necessary).
    – dessert
    Dec 23 at 17:23










  • I suggest you start over with a clean directory now that you have installed the gcc/g++ build tools - my guess is that during one of your failed attempts you created a darknet/darknet subdirectory that is now preventing creation of the file
    – steeldriver
    Dec 23 at 21:24










  • I DID IT! I just figured out how to clean the directory and re-did everything and it WORKS! Thanks Steeldriver & Dessert!
    – electech
    Dec 24 at 1:16
















-1














It is me again, the ubuntu newbie user!
I'm trying to do some work with YOLO and found a project here pjreddie with a few steps to implement this YOLO image detector thing. So, the instructions says:



First, install darknet.



Then run:



git clone https://github.com/pjreddie/darknet
cd darknet
make


Then run:



wget https://pjreddie.com/media/files/yolov3.weights


and finally run the detector:



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


The problem is, when I run the detector it gives me an error:



bash: ./darknet: Is a directory


Kindly, any idea why I get this message, and What is the fix?



I run the last line from the darknet directory.



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


When I run make , I get:



gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
make: gcc: Command not found
Makefile:89: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 127


Now, following the recommendation of steeldriver, I installed gcc then run make again from darknet directory I got:



g++ -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/image_opencv.cpp -o obj/image_opencv.o
make: g++: Command not found
Makefile:86: recipe for target 'obj/image_opencv.o' failed
make: *** [obj/image_opencv.o] Error 127


So, installing the g++ and re-run the whole thing again gave me this result:



gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast obj/captcha.o obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o obj/detector.o obj/nightmare.o obj/instance-segmenter.o obj/darknet.o libdarknet.a -o darknet -lm -pthread  libdarknet.a
/usr/bin/ld: cannot open output file darknet: Is a directory
collect2: error: ld returned 1 exit status
Makefile:77: recipe for target 'darknet' failed
make: *** [darknet] Error 1









share|improve this question









New contributor




electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Did you run this last command in the darknet directory?
    – dessert
    Dec 23 at 16:56










  • Who said you should run it as root? pjreddie.com/darknet/install doesn’t! Did it compile successfully? Please add new information directly to your question (edit), do not use comments.
    – dessert
    Dec 23 at 17:19












  • Then it obviously didn’t compile successfully. Please edit and add the output of make (just run it again if necessary).
    – dessert
    Dec 23 at 17:23










  • I suggest you start over with a clean directory now that you have installed the gcc/g++ build tools - my guess is that during one of your failed attempts you created a darknet/darknet subdirectory that is now preventing creation of the file
    – steeldriver
    Dec 23 at 21:24










  • I DID IT! I just figured out how to clean the directory and re-did everything and it WORKS! Thanks Steeldriver & Dessert!
    – electech
    Dec 24 at 1:16














-1












-1








-1


1





It is me again, the ubuntu newbie user!
I'm trying to do some work with YOLO and found a project here pjreddie with a few steps to implement this YOLO image detector thing. So, the instructions says:



First, install darknet.



Then run:



git clone https://github.com/pjreddie/darknet
cd darknet
make


Then run:



wget https://pjreddie.com/media/files/yolov3.weights


and finally run the detector:



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


The problem is, when I run the detector it gives me an error:



bash: ./darknet: Is a directory


Kindly, any idea why I get this message, and What is the fix?



I run the last line from the darknet directory.



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


When I run make , I get:



gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
make: gcc: Command not found
Makefile:89: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 127


Now, following the recommendation of steeldriver, I installed gcc then run make again from darknet directory I got:



g++ -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/image_opencv.cpp -o obj/image_opencv.o
make: g++: Command not found
Makefile:86: recipe for target 'obj/image_opencv.o' failed
make: *** [obj/image_opencv.o] Error 127


So, installing the g++ and re-run the whole thing again gave me this result:



gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast obj/captcha.o obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o obj/detector.o obj/nightmare.o obj/instance-segmenter.o obj/darknet.o libdarknet.a -o darknet -lm -pthread  libdarknet.a
/usr/bin/ld: cannot open output file darknet: Is a directory
collect2: error: ld returned 1 exit status
Makefile:77: recipe for target 'darknet' failed
make: *** [darknet] Error 1









share|improve this question









New contributor




electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











It is me again, the ubuntu newbie user!
I'm trying to do some work with YOLO and found a project here pjreddie with a few steps to implement this YOLO image detector thing. So, the instructions says:



First, install darknet.



Then run:



git clone https://github.com/pjreddie/darknet
cd darknet
make


Then run:



wget https://pjreddie.com/media/files/yolov3.weights


and finally run the detector:



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


The problem is, when I run the detector it gives me an error:



bash: ./darknet: Is a directory


Kindly, any idea why I get this message, and What is the fix?



I run the last line from the darknet directory.



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


When I run make , I get:



gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/gemm.c -o obj/gemm.o
make: gcc: Command not found
Makefile:89: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 127


Now, following the recommendation of steeldriver, I installed gcc then run make again from darknet directory I got:



g++ -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -c ./src/image_opencv.cpp -o obj/image_opencv.o
make: g++: Command not found
Makefile:86: recipe for target 'obj/image_opencv.o' failed
make: *** [obj/image_opencv.o] Error 127


So, installing the g++ and re-run the whole thing again gave me this result:



gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast obj/captcha.o obj/lsd.o obj/super.o obj/art.o obj/tag.o obj/cifar.o obj/go.o obj/rnn.o obj/segmenter.o obj/regressor.o obj/classifier.o obj/coco.o obj/yolo.o obj/detector.o obj/nightmare.o obj/instance-segmenter.o obj/darknet.o libdarknet.a -o darknet -lm -pthread  libdarknet.a
/usr/bin/ld: cannot open output file darknet: Is a directory
collect2: error: ld returned 1 exit status
Makefile:77: recipe for target 'darknet' failed
make: *** [darknet] Error 1






command-line lubuntu python






share|improve this question









New contributor




electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Dec 23 at 17:54





















New contributor




electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Dec 23 at 15:55









electech

43




43




New contributor




electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






electech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Did you run this last command in the darknet directory?
    – dessert
    Dec 23 at 16:56










  • Who said you should run it as root? pjreddie.com/darknet/install doesn’t! Did it compile successfully? Please add new information directly to your question (edit), do not use comments.
    – dessert
    Dec 23 at 17:19












  • Then it obviously didn’t compile successfully. Please edit and add the output of make (just run it again if necessary).
    – dessert
    Dec 23 at 17:23










  • I suggest you start over with a clean directory now that you have installed the gcc/g++ build tools - my guess is that during one of your failed attempts you created a darknet/darknet subdirectory that is now preventing creation of the file
    – steeldriver
    Dec 23 at 21:24










  • I DID IT! I just figured out how to clean the directory and re-did everything and it WORKS! Thanks Steeldriver & Dessert!
    – electech
    Dec 24 at 1:16


















  • Did you run this last command in the darknet directory?
    – dessert
    Dec 23 at 16:56










  • Who said you should run it as root? pjreddie.com/darknet/install doesn’t! Did it compile successfully? Please add new information directly to your question (edit), do not use comments.
    – dessert
    Dec 23 at 17:19












  • Then it obviously didn’t compile successfully. Please edit and add the output of make (just run it again if necessary).
    – dessert
    Dec 23 at 17:23










  • I suggest you start over with a clean directory now that you have installed the gcc/g++ build tools - my guess is that during one of your failed attempts you created a darknet/darknet subdirectory that is now preventing creation of the file
    – steeldriver
    Dec 23 at 21:24










  • I DID IT! I just figured out how to clean the directory and re-did everything and it WORKS! Thanks Steeldriver & Dessert!
    – electech
    Dec 24 at 1:16
















Did you run this last command in the darknet directory?
– dessert
Dec 23 at 16:56




Did you run this last command in the darknet directory?
– dessert
Dec 23 at 16:56












Who said you should run it as root? pjreddie.com/darknet/install doesn’t! Did it compile successfully? Please add new information directly to your question (edit), do not use comments.
– dessert
Dec 23 at 17:19






Who said you should run it as root? pjreddie.com/darknet/install doesn’t! Did it compile successfully? Please add new information directly to your question (edit), do not use comments.
– dessert
Dec 23 at 17:19














Then it obviously didn’t compile successfully. Please edit and add the output of make (just run it again if necessary).
– dessert
Dec 23 at 17:23




Then it obviously didn’t compile successfully. Please edit and add the output of make (just run it again if necessary).
– dessert
Dec 23 at 17:23












I suggest you start over with a clean directory now that you have installed the gcc/g++ build tools - my guess is that during one of your failed attempts you created a darknet/darknet subdirectory that is now preventing creation of the file
– steeldriver
Dec 23 at 21:24




I suggest you start over with a clean directory now that you have installed the gcc/g++ build tools - my guess is that during one of your failed attempts you created a darknet/darknet subdirectory that is now preventing creation of the file
– steeldriver
Dec 23 at 21:24












I DID IT! I just figured out how to clean the directory and re-did everything and it WORKS! Thanks Steeldriver & Dessert!
– electech
Dec 24 at 1:16




I DID IT! I just figured out how to clean the directory and re-did everything and it WORKS! Thanks Steeldriver & Dessert!
– electech
Dec 24 at 1:16















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






electech is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104037%2fa-problem-with-my-yolo-image-detector-project%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








electech is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















electech is a new contributor. Be nice, and check out our Code of Conduct.













electech is a new contributor. Be nice, and check out our Code of Conduct.












electech is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104037%2fa-problem-with-my-yolo-image-detector-project%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]