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,
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
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