Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

First,

$ git clone https://github.com/elsampsa/darknet-python.git

then follow the steps, then stuck on

$ ./easy_build.bash

The error messages are as follows,

*** WILL COMPILE WITH CUDA ***

----------------------
GENERATING module.i
-----------------------

DARKNET ROOT : /home/edward/darknet-python/ext/darknet
-- Configuring done
-- Generating done
-- Build files have been written to: /home/edward/darknet-python
make -C /home/edward/darknet-python/build_dir
make[1]: Entering directory '/home/edward/darknet-python/build_dir'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory '/home/edward/darknet-python/build_dir'
make: *** [debian/rules:19: build] Error 2
make -C /home/edward/darknet-python/build_dir package
make[1]: Entering directory '/home/edward/darknet-python/build_dir'
make[1]: *** No rule to make target 'package'.  Stop.
make[1]: Leaving directory '/home/edward/darknet-python/build_dir'
make: *** [debian/rules:45: package] Error 2

I then tried to

$ mkdir build_dir

in darknet-python/ first then run ./easy_build.bash again, but it did not work at all... and build_dir/ will disappear.

In /ext/darknet/, my setting of Makefile is as follow,

GPU=1
CUDNN=0
OPENCV=0
...
NVCC=/usr/local/cuda-11.1/bin/nvcc

And the following is the spec of my machine, enter image description here

All I want to do is achieve what the following article did: https://medium.com/@penolove15/yolov4-with-triton-inference-server-and-client-6b02f085c622

But when I followed the steps and tried on building yolov4.wts,

git clone https://github.com/wang-xinyu/tensorrtx.git
git clone https://github.com/ultralytics/yolov3.git
// download yolov4.weights from https://github.com/AlexeyAB/darknet#pre-trained-models
cp {tensorrtx}/yolov4/gen_wts.py {ultralytics/yolov3/}
cd {ultralytics/yolov3/}
python3 gen_wts.py yolov4.weights

I got the error message, enter image description here

Then I guess that might be caused by darknet, so that's why I was going to build darnet as mentioned above.

If there are some comments, I would be appreciated!

question from:https://stackoverflow.com/questions/65925852/getting-some-error-message-while-building-darknet-with-gpu

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
567 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...