Open
Description
I had install opencv (works fine) but wen i make the project i got this error:
make
mkdir -p obj
mkdir -p results
gcc -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv` -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -c ./src/gemm.c -o obj/gemm.o
In file included from /usr/local/include/opencv2/core/types_c.h:59:0,
from /usr/local/include/opencv2/core/core_c.h:48,
from /usr/local/include/opencv2/highgui/highgui_c.h:45,
from include/darknet.h:25,
from ./src/utils.h:5,
from ./src/gemm.c:2:
/usr/local/include/opencv2/core/cvdef.h:485:1: error: unknown type name ‘namespace’
namespace cv {
^
compilation terminated due to -Wfatal-errors.
Makefile:85: set di istruzioni per l'obiettivo "obj/gemm.o" non riuscito
make: *** [obj/gemm.o] Errore 1
in english:
Makefile:85: set of instructions for the "obj / gemm.o" target failed
or
Makefile:85: recipe for target 'obj/gemm.o' failed
I've just OpenCV, no CUDA.
Part of Makefile I edited
GPU=0
CUDNN=0
OPENCV=1
OPENMP=0
DEBUG=0
Any solution?
Activity
spinoza1791 commentedon Feb 28, 2018
Makefile OPENCV=1, Platforms tested: Ubuntu 16.04 (updated), Raspberry Pi Stretch 2017-11-29 (updated), darknet version as of 2p CT, 2/28/2018.
NOTE: Cannot reproduce this with OCV 3.4.0 (works fine). This affects OCV 3.4.1 only. Compiling with OPENCV=0 succeeds (no issue).
gcc -DOPENCV pkg-config --cflags opencv -Wall -Wfatal-errors -Ofast -DOPENCV -c ./src/im2col.c -o obj/im2col.o
In file included from /usr/local/include/opencv2/core/types_c.h:59:0,
from /usr/local/include/opencv2/core/core_c.h:48,
from /usr/local/include/opencv2/highgui/highgui_c.h:45,
from ./src/image.c:14:
/usr/local/include/opencv2/core/cvdef.h:485:1: error: unknown type name ‘namespace’
namespace cv {
^
compilation terminated due to -Wfatal-errors.
Makefile:102: recipe for target 'obj/image.o' failed
make: *** [obj/image.o] Error 1
make: *** Waiting for unfinished jobs....
./src/http_stream.cpp: In member function ‘bool MJPGWriter::write(const cv::Mat&)’:
./src/http_stream.cpp:176:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (n < outlen)
^
ValerioNeriGit commentedon Feb 28, 2018
I'm working on Ubuntu server 16.04 and this version of OpenCV: 3.4.0-dev
Should I try to use opencv 3.4.0?
ValerioNeriGit commentedon Feb 28, 2018
I solved with 3.4.0
AlexeyAB commentedon Feb 28, 2018
This is a bug in OpenCV 3.4.1 C API: opencv/opencv#10963
Yumin-Sun-00 commentedon Mar 8, 2018
I have the same issue... Jesus, I am tired with those different dependencies and compatibility.
jesmitty commentedon Mar 13, 2018
I too have same issue with darknet compiling with openCV 3.4.1. It was not clear if this has been resolved and if so, what the set of set were to fix this.
AlexeyAB commentedon Mar 13, 2018
@jesmitty Use OpenCV 3.4.0. Or manually do Proposed fix: opencv/opencv#10963
jesmitty commentedon Mar 14, 2018
jesmitty commentedon Mar 14, 2018
jesmitty commentedon Mar 14, 2018
jesmitty commentedon Mar 14, 2018
Vincentvn119 commentedon Mar 30, 2018
jesmitty, I encountered the same problem when try to compile Yolo with OpenCV 3.4.1.
I used this bash script to install : https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh
What I ended up doing is to install Opencv 3.2.0 and Everything good now. Just change OPENCV_VERSION='3.4.1' to OPENCV_VERSION='3.2.0'
jesmitty commentedon Mar 30, 2018
ant1pink commentedon Apr 11, 2018
/darknet$ make
g++ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda-8.0/include/ -DCUDNN -Wall -Wfatal-errors -ffp-contract=fast -mavx -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn-8.0/include obj/http_stream.o obj/gemm.o obj/utils.o obj/cuda.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/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/reorg_old_layer.o obj/super.o obj/voxel.o obj/tree.o obj/yolo_layer.o obj/upsample_layer.o obj/convolutional_kernels.o obj/activation_kernels.o obj/im2col_kernels.o obj/col2im_kernels.o obj/blas_kernels.o obj/crop_layer_kernels.o obj/dropout_layer_kernels.o obj/maxpool_layer_kernels.o obj/network_kernels.o obj/avgpool_layer_kernels.o -o darknet -lm -pthreadpkg-config --libs opencv
-L/usr/local/cuda-8.0/lib64 -lcuda -lcudart -lcublas -lcurand -L/usr/local/cudnn-8.0/lib64 -lcudnn -lstdc++/usr/bin/ld: cannot find -lippicv
collect2: error: ld returned 1 exit status
Makefile:110: recipe for target 'darknet' failed
make: *** [darknet] Error 1
I got this error when I tied make with "OpenCV=1"
e8035669 commentedon Jun 1, 2018
opencv/opencv#11605
The lastest 3.4 tree of opencv has already fix C api bug.
ManasaNadimpalli commentedon Jan 26, 2019
@AlexeyAB Sir, I am getting error when I try to make darknet-master
I have changed opencv=1; Gpu=1; cuda=1 in the make file.Can you please help me to solve this error
The error is :
manasa@isemes:~/Desktop/darknet-master$ make
chmod +x *.sh
nvcc -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -gencode arch=compute_61,code=[sm_61,compute_61] -Iinclude/ -DGPU -I/usr/local/cuda/include/ -DCUDNN --compiler-options "-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DGPU -DCUDNN -I/usr/local/cudnn/include" -c ./src/convolutional_kernels.cu -o obj/convolutional_kernels.o
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda-8.0/bin/..//include/crt/device_runtime.h:38:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:217:
/usr/local/cuda/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a
^
In file included from ./src/convolutional_kernels.cu:142:0:
/usr/local/cuda/include/common_functions.h:54:2: warning: #warning "common_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "common_functions.h is an internal header file and must not be used directly. This file will be removed
^
In file included from /usr/local/cuda-8.0/bin/..//include/crt/device_runtime.h:38:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:217:
/usr/local/cuda/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a
^
In file included from ./src/convolutional_kernels.cu:142:0:
/usr/local/cuda/include/common_functions.h:54:2: warning: #warning "common_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "common_functions.h is an internal header file and must not be used directly. This file will be removed
^
ptxas /tmp/tmpxft_0000189d_00000000-14_convolutional_kernels.compute_30.ptx, line 113; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_0000189d_00000000-14_convolutional_kernels.compute_30.ptx, line 142; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_0000189d_00000000-14_convolutional_kernels.compute_30.ptx, line 224; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_0000189d_00000000-14_convolutional_kernels.compute_30.ptx, line 254; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_0000189d_00000000-14_convolutional_kernels.compute_30.ptx, line 355; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_0000189d_00000000-14_convolutional_kernels.compute_30.ptx, line 409; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_0000189d_00000000-14_convolutional_kernels.compute_30.ptx, line 430; error : Call has wrong number of parameters
ptxas fatal : Ptx assembly aborted due to errors
Makefile:142: recipe for target 'obj/convolutional_kernels.o' failed
make: *** [obj/convolutional_kernels.o] Error 255
manasa@isemes:~/Desktop/darknet-master$ make
chmod +x .sh
g++ -std=c++11 -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/http_stream.cpp -o obj/http_stream.oIn file included from ./src/http_stream.h:4:0,
from ./src/http_stream.cpp:1:
include/darknet.h:48:16: warning: ‘typedef’ was ignored in this declaration
typedef struct network_state;
^
./src/http_stream.cpp: In member function ‘bool MJPG_sender::write(const cv::Mat&)’:
./src/http_stream.cpp:255:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (n < outlen)
^
./src/http_stream.cpp: In member function ‘void JSON_sender::close_all()’:
./src/http_stream.cpp:324:20: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings]
write("\n]"); // close JSON array
^
./src/http_stream.cpp: In member function ‘bool JSON_sender::write(char*)’:
./src/http_stream.cpp:416:21: warning: unused variable ‘n’ [-Wunused-variable]
int n = write(client, outputbuf, outlen);
^
./src/http_stream.cpp:430:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (n < outlen)
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/gemm.c -o obj/gemm.oIn file included from ./src/activations.h:3:0,
from ./src/gemm.h:3,
from ./src/gemm.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/gemm.c: In function ‘transpose_32x32_bits_my’:
./src/gemm.c:313:20: warning: unused variable ‘t’ [-Wunused-variable]
unsigned x, y, t;
^
./src/gemm.c: In function ‘transpose_8x8_bits_my’:
./src/gemm.c:391:20: warning: unused variable ‘t’ [-Wunused-variable]
unsigned x, y, t;
^
./src/gemm.c: In function ‘transpose_bin’:
./src/gemm.c:486:25: warning: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
if (get_bit(A, ilda + j)) set_bit(B, jldb + i);
^
In file included from ./src/gemm.c:1:0:
./src/gemm.h:17:29: note: expected ‘const unsigned char * const’ but argument is of type ‘uint32_t * {aka unsigned int }’
static inline unsigned char get_bit(unsigned char constconst src, size_t index) {
^
./src/gemm.c:486:48: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
if (get_bit(A, ilda + j)) set_bit(B, jldb + i);
^
In file included from ./src/gemm.c:1:0:
./src/gemm.h:10:20: note: expected ‘unsigned char * const’ but argument is of type ‘uint32_t * {aka unsigned int *}’
static inline void set_bit(unsigned char *const dst, size_t index) {
^
./src/gemm.c: In function ‘convolution_2d’:
./src/gemm.c:1787:15: warning: unused variable ‘out_w’ [-Wunused-variable]
const int out_w = (w + 2 * pad - ksize) / stride + 1; // output_width=input_width for stride=1 and pad=1
^
./src/gemm.c:1786:15: warning: unused variable ‘out_h’ [-Wunused-variable]
const int out_h = (h + 2 * pad - ksize) / stride + 1; // output_height=input_height for stride=1 and pad=1
^
./src/gemm.c: In function ‘im2col_cpu_custom’:
./src/gemm.c:1937:43: warning: implicit declaration of function ‘im2col_get_pixel’ [-Wimplicit-function-declaration]
data_col[col_index] = im2col_get_pixel(data_im, height, width, channels,
^
./src/gemm.c: In function ‘im2col_cpu_custom_bin’:
./src/gemm.c:2014:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
if (val > 0) set_bit(data_col, col_index);
^
In file included from ./src/gemm.c:1:0:
./src/gemm.h:10:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
static inline void set_bit(unsigned char *const dst, size_t index) {
^
./src/gemm.c:2025:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
if (val > 0) set_bit(data_col, col_index);
^
In file included from ./src/gemm.c:1:0:
./src/gemm.h:10:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
static inline void set_bit(unsigned char *const dst, size_t index) {
^
./src/gemm.c:2039:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
if (val > 0) set_bit(data_col, col_index);
^
In file included from ./src/gemm.c:1:0:
./src/gemm.h:10:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
static inline void set_bit(unsigned char *const dst, size_t index) {
^
./src/gemm.c:2053:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
if (val > 0) set_bit(data_col, col_index);
^
In file included from ./src/gemm.c:1:0:
./src/gemm.h:10:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
static inline void set_bit(unsigned char *const dst, size_t index) {
^
./src/gemm.c:2067:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
if (val > 0) set_bit(data_col, col_index);
^
In file included from ./src/gemm.c:1:0:
./src/gemm.h:10:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
static inline void set_bit(unsigned char *const dst, size_t index) {
^
./src/gemm.c:2081:42: warning: passing argument 1 of ‘set_bit’ from incompatible pointer type [-Wincompatible-pointer-types]
if (val > 0) set_bit(data_col, col_index);
^
In file included from ./src/gemm.c:1:0:
./src/gemm.h:10:20: note: expected ‘unsigned char * const’ but argument is of type ‘float *’
static inline void set_bit(unsigned char *const dst, size_t index) {
^
./src/gemm.c: In function ‘convolution_repacked’:
./src/gemm.c:2287:19: warning: unused variable ‘c_pack’ [-Wunused-variable]
int chan, c_pack, y, x, f_y, f_x;
^
./src/gemm.c: In function ‘gemm_ongpu’:
./src/gemm.c:2439:17: warning: unused variable ‘stream_status’ [-Wunused-variable]
cudaError_t stream_status = cublasSetStream(handle, get_cuda_stream());
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/utils.c -o obj/utils.ogcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/cuda.c -o obj/cuda.oIn file included from ./src/cuda.h:3:0,
from ./src/cuda.c:5:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/cuda.c: In function ‘get_cuda_stream’:
./src/cuda.c:75:18: warning: unused variable ‘buffer’ [-Wunused-variable]
char buffer[256];
^
./src/cuda.c: In function ‘get_cuda_memcpy_stream’:
./src/cuda.c:96:18: warning: unused variable ‘buffer’ [-Wunused-variable]
char buffer[256];
^
./src/cuda.c: In function ‘cudnn_handle’:
./src/cuda.c:116:23: warning: unused variable ‘status’ [-Wunused-variable]
cudnnStatus_t status = cudnnSetStream(handle[i], get_cuda_stream());
^
./src/cuda.c: In function ‘blas_handle’:
./src/cuda.c:129:24: warning: unused variable ‘status’ [-Wunused-variable]
cublasStatus_t status = cublasSetStream(handle[i], get_cuda_stream());
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/convolutional_layer.c -o obj/convolutional_layer.oIn file included from ./src/cuda.h:3:0,
from ./src/convolutional_layer.h:4,
from ./src/convolutional_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/convolutional_layer.c: In function ‘bit_to_float’:
./src/convolutional_layer.c:655:23: warning: unused variable ‘src_shift’ [-Wunused-variable]
size_t i, src_i, src_shift;
^
./src/convolutional_layer.c:655:16: warning: unused variable ‘src_i’ [-Wunused-variable]
size_t i, src_i, src_shift;
^
./src/convolutional_layer.c: In function ‘binary_align_weights’:
./src/convolutional_layer.c:702:30: warning: unused variable ‘val’ [-Wunused-variable]
uint32_t val = 0;
^
./src/convolutional_layer.c:720:37: warning: pointer targets in passing argument 2 of ‘float_to_bit’ differ in signedness [-Wpointer-sign]
float_to_bit(align_weights, l->align_bit_weights, align_weights_size);
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:28:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void float_to_bit(float *src, unsigned char *dst, size_t size);
^
./src/convolutional_layer.c:736:37: warning: pointer targets in passing argument 2 of ‘float_to_bit’ differ in signedness [-Wpointer-sign]
float_to_bit(align_weights, l->align_bit_weights, align_weights_size);
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:28:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void float_to_bit(float *src, unsigned char *dst, size_t size);
^
./src/convolutional_layer.c: In function ‘binary_transpose_align_input’:
./src/convolutional_layer.c:787:19: warning: passing argument 1 of ‘transpose_bin’ from incompatible pointer type [-Wincompatible-pointer-types]
transpose_bin(b, *t_bit_input, k, n, bit_align, new_ldb, 8);
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:33:6: note: expected ‘uint32_t * {aka unsigned int *}’ but argument is of type ‘float *’
void transpose_bin(uint32_t *A, uint32_t *B, const int n, const int m,
^
./src/convolutional_layer.c:787:22: warning: passing argument 2 of ‘transpose_bin’ from incompatible pointer type [-Wincompatible-pointer-types]
transpose_bin(b, *t_bit_input, k, n, bit_align, new_ldb, 8);
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:33:6: note: expected ‘uint32_t * {aka unsigned int *}’ but argument is of type ‘char *’
void transpose_bin(uint32_t *A, uint32_t *B, const int n, const int m,
^
./src/convolutional_layer.c:780:9: warning: unused variable ‘src_size’ [-Wunused-variable]
int src_size = k * bit_align;
^
./src/convolutional_layer.c: In function ‘forward_convolutional_layer’:
./src/convolutional_layer.c:848:47: warning: pointer targets in passing argument 2 of ‘float_to_bit’ differ in signedness [-Wpointer-sign]
float_to_bit(re_packed_input, (char *)bin_re_packed_input, l.c * l.w * l.h);
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:28:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void float_to_bit(float *src, unsigned char *dst, size_t size);
^
./src/convolutional_layer.c:881:49: warning: passing argument 2 of ‘transpose_uint32’ from incompatible pointer type [-Wincompatible-pointer-types]
transpose_uint32((uint32_t *)b, t_bit_input, new_k, n, n, new_ldb);
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:75:6: note: expected ‘uint32_t * {aka unsigned int *}’ but argument is of type ‘char *’
void transpose_uint32(uint32_t *src, uint32_t *dst, int src_h, int src_w, int src_align, int dst_align);
^
./src/convolutional_layer.c:884:64: warning: pointer targets in passing argument 5 of ‘gemm_nn_custom_bin_mean_transposed’ differ in signedness [-Wpointer-sign]
gemm_nn_custom_bin_mean_transposed(m, n, k, 1, l.align_bit_weights, new_ldb, t_bit_input, new_ldb,
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:36:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void gemm_nn_custom_bin_mean_transposed(int M, int N, int K, float ALPHA_UNUSED,
^
./src/convolutional_layer.c:884:94: warning: pointer targets in passing argument 7 of ‘gemm_nn_custom_bin_mean_transposed’ differ in signedness [-Wpointer-sign]
gemm_nn_custom_bin_mean_transposed(m, n, k, 1, l.align_bit_weights, new_ldb, t_bit_input, new_ldb,
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:36:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void gemm_nn_custom_bin_mean_transposed(int M, int N, int K, float ALPHA_UNUSED,
^
./src/convolutional_layer.c:928:68: warning: pointer targets in passing argument 5 of ‘gemm_nn_custom_bin_mean_transposed’ differ in signedness [-Wpointer-sign]
gemm_nn_custom_bin_mean_transposed(m, n, k, 1, l.align_bit_weights, new_ldb, t_bit_input, new
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:36:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void gemm_nn_custom_bin_mean_transposed(int M, int N, int K, float ALPHA_UNUSED,
^
./src/convolutional_layer.c:928:98: warning: pointer targets in passing argument 7 of ‘gemm_nn_custom_bin_mean_transposed’ differ in signedness [-Wpointer-sign]
gemm_nn_custom_bin_mean_transposed(m, n, k, 1, l.align_bit_weights, new_ldb, t_bit_input, new_
^
In file included from ./src/convolutional_layer.c:7:0:
./src/gemm.h:36:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’
void gemm_nn_custom_bin_mean_transposed(int M, int N, int K, float ALPHA_UNUSED,
^
./src/convolutional_layer.c:923:28: warning: unused variable ‘t_intput_size’ [-Wunused-variable]
size_t t_intput_size = binary_transpose_align_input(k, n, b, &t_bit_input, ldb_align, l.bit_al
^
./src/convolutional_layer.c:913:24: warning: unused variable ‘bit_weights_size’ [-Wunused-variable]
size_t bit_weights_size = weights_size / 8 + 1;
^
./src/convolutional_layer.c:909:24: warning: unused variable ‘bit_input_size’ [-Wunused-variable]
size_t bit_input_size = intput_size / 8 + 1;
^
./src/convolutional_layer.c:903:24: warning: unused variable ‘output_size’ [-Wunused-variable]
size_t output_size = l.outputs;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/list.c -o obj/list.oIn file included from ./src/option_list.h:4:0,
from ./src/list.c:4:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/image.c -o obj/image.oIn file included from ./src/image.c:1:0:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/image.c: In function ‘save_cv_png’:
./src/image.c:508:15: warning: passing argument 1 of ‘cvRelease’ from incompatible pointer type [-Wincompatible-pointer-types]
cvRelease(&img_rgb);
^
In file included from /usr/local/include/opencv2/highgui/highgui_c.h:45:0,
from ./src/image.c:15:
/usr/local/include/opencv2/core/core_c.h:2573:13: note: expected ‘void **’ but argument is of type ‘IplImage ** {aka struct _IplImage }’
CVAPI(void) cvRelease( void struct_ptr );
^
./src/image.c: In function ‘save_cv_jpg’:
./src/image.c:516:15: warning: passing argument 1 of ‘cvRelease’ from incompatible pointer type [-Wincompatible-pointer-types]
cvRelease(&img_rgb);
^
In file included from /usr/local/include/opencv2/highgui/highgui_c.h:45:0,
from ./src/image.c:15:
/usr/local/include/opencv2/core/core_c.h:2573:13: note: expected ‘void **’ but argument is of type ‘IplImage ** {aka struct _IplImage }’
CVAPI(void) cvRelease( void struct_ptr );
^
./src/image.c: In function ‘draw_detections_cv_v3’:
./src/image.c:556:19: warning: variable ‘rgb’ set but not used [-Wunused-but-set-variable]
float rgb[3];
^
./src/image.c: In function ‘draw_detections_cv’:
./src/image.c:662:19: warning: variable ‘rgb’ set but not used [-Wunused-but-set-variable]
float rgb[3];
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/activations.c -o obj/activations.oIn file included from ./src/activations.h:3:0,
from ./src/activations.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/im2col.c -o obj/im2col.oIn file included from ./src/im2col.h:6:0,
from ./src/im2col.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/col2im.c -o obj/col2im.ogcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/blas.c -o obj/blas.oIn file included from ./src/cuda.h:3:0,
from ./src/blas.h:44,
from ./src/blas.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/crop_layer.c -o obj/crop_layer.oIn file included from ./src/image.h:3:0,
from ./src/crop_layer.h:4,
from ./src/crop_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/dropout_layer.c -o obj/dropout_layer.oIn file included from ./src/layer.h:4:0,
from ./src/dropout_layer.h:4,
from ./src/dropout_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/maxpool_layer.c -o obj/maxpool_layer.oIn file included from ./src/image.h:3:0,
from ./src/maxpool_layer.h:4,
from ./src/maxpool_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/maxpool_layer.c: In function ‘cudnn_maxpool_setup’:
./src/maxpool_layer.c:26:19: warning: variable ‘maxpool_status’ set but not used [-Wunused-but-set-variable]
cudnnStatus_t maxpool_status;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/softmax_layer.c -o obj/softmax_layer.oIn file included from ./src/layer.h:4:0,
from ./src/softmax_layer.h:3,
from ./src/softmax_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/data.c -o obj/data.oIn file included from ./src/data.h:9:0,
from ./src/data.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/data.c: In function ‘load_data_detection’:
./src/data.c:803:30: warning: passing argument 1 of ‘fill_truth_detection’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
fill_truth_detection(filename, boxes, d.y.vals[i], classes, flip, dx, dy, 1./sx, 1./sy, small_object, w, h
^
./src/data.c:303:6: note: expected ‘char *’ but argument is of type ‘const char *’
void fill_truth_detection(char *path, int num_boxes, float truth, int classes, int flip, float dx, float dy, floa
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/matrix.c -o obj/matrix.oIn file included from ./src/matrix.h:3:0,
from ./src/matrix.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/matrix.c: In function ‘random_centers’:
./src/matrix.c:260:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j;
^
./src/matrix.c: In function ‘dist’:
./src/matrix.c:284:9: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/network.c -o obj/network.oIn file included from ./src/network.c:4:0:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/network.c: In function ‘resize_network’:
./src/network.c:463:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
if (cudaSuccess == cudaHostAlloc(&net->input_pinned_cpu, size * sizeof(float), cudaHostRegisterMapped))
^
In file included from /usr/local/cuda/include/cuda_runtime.h:96:0,
from include/darknet.h:31,
from ./src/network.c:4:
/usr/local/cuda/include/cuda_runtime_api.h:4412:39: note: expected ‘void **’ but argument is of type ‘float **’
extern host cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
^
./src/network.c: In function ‘detection_to_json’:
./src/network.c:690:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
sprintf(send_buf, "{\n "frame_id":%d, \n "filename":"%s", \n "objects": [ \n", frame_id, filename)
^
./src/network.c:693:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
sprintf(send_buf, "{\n "frame_id":%d, \n "objects": [ \n", frame_id);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/connected_layer.c -o obj/connected_layer.oIn file included from ./src/activations.h:3:0,
from ./src/connected_layer.h:4,
from ./src/connected_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/connected_layer.c: In function ‘forward_connected_layer_gpu’:
./src/connected_layer.c:279:9: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/cost_layer.c -o obj/cost_layer.oIn file included from ./src/layer.h:4:0,
from ./src/cost_layer.h:3,
from ./src/cost_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/cost_layer.c: In function ‘get_cost_string’:
./src/cost_layer.c:21:5: warning: enumeration value ‘L1’ not handled in switch [-Wswitch]
switch(a){
^
./src/cost_layer.c:21:5: warning: enumeration value ‘SEG’ not handled in switch [-Wswitch]
./src/cost_layer.c:21:5: warning: enumeration value ‘WGAN’ not handled in switch [-Wswitch]
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/parser.c -o obj/parser.oIn file included from ./src/activations.h:3:0,
from ./src/activation_layer.h:4,
from ./src/parser.c:5:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/parser.c: In function ‘parse_network_cfg_custom’:
./src/parser.c:842:46: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
if (cudaSuccess == cudaHostAlloc(&net.input_pinned_cpu, sizesizeof(float), cudaHostRegisterMapped)) n
^
In file included from /usr/local/cuda/include/cuda_runtime.h:96:0,
from include/darknet.h:31,
from ./src/activations.h:3,
from ./src/activation_layer.h:4,
from ./src/parser.c:5:
/usr/local/cuda/include/cuda_runtime_api.h:4412:39: note: expected ‘void **’ but argument is of type ‘float **’
extern host cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/option_list.c -o obj/option_list.oIn file included from ./src/option_list.h:4:0,
from ./src/option_list.c:4:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/option_list.c: In function ‘get_metadata’:
./src/option_list.c:46:19: warning: implicit declaration of function ‘get_labels’ [-Wimplicit-function-declaration]
m.names = get_labels(name_list);
^
./src/option_list.c:46:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
m.names = get_labels(name_list);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/darknet.c -o obj/darknet.oIn file included from ./src/darknet.c:5:0:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/darknet.c: In function ‘main’:
./src/darknet.c:398:7: warning: unused variable ‘ext_output’ [-Wunused-variable]
int ext_output = find_arg(argc, argv, "-ext_output");
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/detection_layer.c -o obj/detection_layer.oIn file included from ./src/layer.h:4:0,
from ./src/detection_layer.h:4,
from ./src/detection_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/captcha.c -o obj/captcha.oIn file included from ./src/network.h:4:0,
from ./src/captcha.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/captcha.c: In function ‘train_captcha’:
./src/captcha.c:88:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%d: %f, %f avg, %lf seconds, %d images\n", i, loss, avg_loss, sec(clock()-time), *net.seen);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/route_layer.c -o obj/route_layer.oIn file included from ./src/network.h:4:0,
from ./src/route_layer.h:3,
from ./src/route_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/writing.c -o obj/writing.oIn file included from ./src/network.h:4:0,
from ./src/writing.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/writing.c: In function ‘train_writing’:
./src/writing.c:72:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%d, %.3f: %f, %f avg, %f rate, %lf seconds, %d images\n", get_current_batch(net), (float)(*net.see
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/box.c -o obj/box.oIn file included from ./src/box.h:4:0,
from ./src/box.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/nightmare.c -o obj/nightmare.oIn file included from ./src/network.h:4:0,
from ./src/nightmare.c:2:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/normalization_layer.c -o obj/normalization_layer.oIn file included from ./src/image.h:3:0,
from ./src/normalization_layer.h:4,
from ./src/normalization_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/avgpool_layer.c -o obj/avgpool_layer.oIn file included from ./src/image.h:3:0,
from ./src/avgpool_layer.h:4,
from ./src/avgpool_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/coco.c -o obj/coco.oIn file included from ./src/network.h:4:0,
from ./src/coco.c:3:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/dice.c -o obj/dice.oIn file included from ./src/network.h:4:0,
from ./src/dice.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/dice.c: In function ‘train_dice’:
./src/dice.c:36:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%d: %f, %f avg, %lf seconds, %d images\n", i, loss, avg_loss, sec(clock()-time), *net.seen);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/yolo.c -o obj/yolo.oIn file included from ./src/network.h:4:0,
from ./src/yolo.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/detector.c -o obj/detector.oIn file included from ./src/detector.c:1:0:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/detector.c: In function ‘train_detector’:
./src/detector.c:303:27: warning: too many arguments for format [-Wformat-extra-args]
sprintf(buff, "%s/%s_last.weights", backup_directory, base, i);
^
./src/detector.c: In function ‘validate_detector_recall’:
./src/detector.c:565:11: warning: unused variable ‘l’ [-Wunused-variable]
layer l = net.layers[net.n - 1];
^
./src/detector.c: In function ‘validate_detector_map’:
./src/detector.c:661:15: warning: unused variable ‘valid_images’ [-Wunused-variable]
char *valid_images = option_find_str(options, "valid", train_images);
^
./src/detector.c:994:15: warning: passing argument 1 of ‘free_ptrs’ from incompatible pointer type [-Wincompatible-pointer-types]
free_ptrs(names, net.layers[net.n - 1].classes);
^
In file included from ./src/detector.c:5:0:
./src/utils.h:28:14: note: expected ‘void **’ but argument is of type ‘char **’
LIB_API void free_ptrs(void **ptrs, int n);
^
./src/detector.c:658:9: warning: unused variable ‘initial_batch’ [-Wunused-variable]
int initial_batch;
^
./src/detector.c:653:10: warning: variable ‘map’ set but not used [-Wunused-but-set-variable]
int map = 0;
^
./src/detector.c:646:9: warning: unused variable ‘j’ [-Wunused-variable]
int j;
^
./src/detector.c: In function ‘calc_anchors’:
./src/detector.c:1096:15: warning: unused variable ‘h’ [-Wunused-variable]
float h = boxes_data.vals[i][1] = rel_width_height_array[i * 2 + 1];
^
./src/detector.c:1095:15: warning: unused variable ‘w’ [-Wunused-variable]
float w = boxes_data.vals[i][0] = rel_width_height_array[i * 2];
^
./src/detector.c:1105:74: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
qsort(anchors_data.centers.vals, num_of_clusters, 2 * sizeof(float), anchors_data_comparator);
^
In file included from include/darknet.h:8:0,
from ./src/detector.c:1:
/usr/include/stdlib.h:764:13: note: expected ‘__compar_fn_t {aka int ()(const void *, const void )}’ but argument is of type ‘int ()(const float **, const float **)’
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^
./src/detector.c:1134:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘double’ [-Wformat=]
printf(" Wrong label: i = %d, box_w = %d, box_h = %d, anchor_w = %d, anchor_h = %d, iou = %f \n",
^
./src/detector.c:1134:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘double’ [-Wformat=]
./src/detector.c:1134:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘double’ [-Wformat=]
./src/detector.c:1134:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘double’ [-Wformat=]
./src/detector.c: In function ‘test_detector’:
./src/detector.c:1366:15: warning: passing argument 1 of ‘free_ptrs’ from incompatible pointer type [-Wincompatible-pointer-types]
free_ptrs(names, net.layers[net.n - 1].classes);
^
In file included from ./src/detector.c:5:0:
./src/utils.h:28:14: note: expected ‘void **’ but argument is of type ‘char **’
LIB_API void free_ptrs(void **ptrs, int n);
^
./src/detector.c:1251:12: warning: unused variable ‘time’ [-Wunused-variable]
double time;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/layer.c -o obj/layer.oIn file included from ./src/layer.h:4:0,
from ./src/layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/layer.c: In function ‘free_layer’:
./src/layer.c:99:46: warning: passing argument 1 of ‘cuda_free’ from incompatible pointer type [-Wincompatible-pointer-types]
if (l.align_bit_weights_gpu) cuda_free(l.align_bit_weights_gpu);
^
In file included from ./src/activations.h:4:0,
from ./src/layer.h:5,
from ./src/layer.c:1:
./src/cuda.h:35:10: note: expected ‘float *’ but argument is of type ‘char *’
void cuda_free(float *x_gpu);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/compare.c -o obj/compare.oIn file included from ./src/network.h:4:0,
from ./src/compare.c:3:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/compare.c: In function ‘train_compare’:
./src/compare.c:57:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%.3f: %f, %f avg, %lf seconds, %d images\n", (float)*net.seen/N, loss, avg_loss, sec(clock()-time)
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/classifier.c -o obj/classifier.oIn file included from ./src/network.h:4:0,
from ./src/classifier.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/classifier.c: In function ‘train_classifier’:
./src/classifier.c:153:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%d, %.3f: %f, %f avg, %f rate, %lf seconds, %d images\n", get_current_batch(net), (float)(*net.see
^
./src/classifier.c: In function ‘predict_classifier’:
./src/classifier.c:737:9: warning: unused variable ‘size’ [-Wunused-variable]
int size = net.w;
^
./src/classifier.c: In function ‘threat_classifier’:
./src/classifier.c:903:40: warning: passing argument 1 of ‘get_capture_video_stream’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
cap = get_capture_video_stream(filename);
^
In file included from ./src/classifier.c:25:0:
./src/http_stream.h:21:12: note: expected ‘char *’ but argument is of type ‘const char ’
CvCapture get_capture_video_stream(char *path);
^
./src/classifier.c: In function ‘gun_classifier’:
./src/classifier.c:1041:40: warning: passing argument 1 of ‘get_capture_video_stream’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
cap = get_capture_video_stream(filename);
^
In file included from ./src/classifier.c:25:0:
./src/http_stream.h:21:12: note: expected ‘char *’ but argument is of type ‘const char ’
CvCapture get_capture_video_stream(char *path);
^
./src/classifier.c: In function ‘demo_classifier’:
./src/classifier.c:1124:40: warning: passing argument 1 of ‘get_capture_video_stream’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
cap = get_capture_video_stream(filename);
^
In file included from ./src/classifier.c:25:0:
./src/http_stream.h:21:12: note: expected ‘char *’ but argument is of type ‘const char ’
CvCapture get_capture_video_stream(char *path);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/local_layer.c -o obj/local_layer.oIn file included from ./src/cuda.h:3:0,
from ./src/local_layer.h:4,
from ./src/local_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/swag.c -o obj/swag.oIn file included from ./src/network.h:4:0,
from ./src/swag.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/shortcut_layer.c -o obj/shortcut_layer.oIn file included from ./src/layer.h:4:0,
from ./src/shortcut_layer.h:4,
from ./src/shortcut_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/activation_layer.c -o obj/activation_layer.oIn file included from ./src/activations.h:3:0,
from ./src/activation_layer.h:4,
from ./src/activation_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/rnn_layer.c -o obj/rnn_layer.oIn file included from ./src/activations.h:3:0,
from ./src/rnn_layer.h:5,
from ./src/rnn_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/gru_layer.c -o obj/gru_layer.oIn file included from ./src/activations.h:3:0,
from ./src/gru_layer.h:5,
from ./src/gru_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/rnn.c -o obj/rnn.oIn file included from ./src/network.h:4:0,
from ./src/rnn.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/rnn_vid.c -o obj/rnn_vid.oIn file included from ./src/network.h:4:0,
from ./src/rnn_vid.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/crnn_layer.c -o obj/crnn_layer.oIn file included from ./src/activations.h:3:0,
from ./src/crnn_layer.h:5,
from ./src/crnn_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/demo.c -o obj/demo.oIn file included from ./src/network.h:4:0,
from ./src/demo.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/demo.c: In function ‘fetch_in_thread’:
./src/demo.c:80:16: warning: return makes pointer from integer without a cast [-Wint-conversion]
return EXIT_FAILURE;
^
./src/demo.c: In function ‘demo’:
./src/demo.c:170:40: warning: passing argument 1 of ‘get_capture_video_stream’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
cap = get_capture_video_stream(filename);
^
In file included from ./src/demo.c:27:0:
./src/http_stream.h:21:12: note: expected ‘char ’ but argument is of type ‘const char ’
CvCapture get_capture_video_stream(char path);
^
./src/demo.c:351:15: warning: passing argument 1 of ‘free_ptrs’ from incompatible pointer type [-Wincompatible-pointer-types]
free_ptrs(names, net.layers[net.n - 1].classes);
^
In file included from ./src/demo.c:5:0:
./src/utils.h:28:14: note: expected ‘void **’ but argument is of type ‘char **’
LIB_API void free_ptrs(void **ptrs, int n);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/tag.c -o obj/tag.oIn file included from ./src/network.h:4:0,
from ./src/tag.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/tag.c: In function ‘train_tag’:
./src/tag.c:67:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%d, %.3f: %f, %f avg, %f rate, %lf seconds, %d images\n", get_current_batch(net), (float)(net.see
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/cifar.c -o obj/cifar.oIn file included from ./src/network.h:4:0,
from ./src/cifar.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/cifar.c: In function ‘train_cifar’:
./src/cifar.c:36:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%d, %.3f: %f, %f avg, %f rate, %lf seconds, %d images\n", get_current_batch(net), (float)(net.see
^
./src/cifar.c: In function ‘train_cifar_distill’:
./src/cifar.c:92:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%d, %.3f: %f, %f avg, %f rate, %lf seconds, %d images\n", get_current_batch(net), (float)(net.see
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/go.c -o obj/go.oIn file included from ./src/network.h:4:0,
from ./src/go.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/go.c: In function ‘train_go’:
./src/go.c:147:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("%d, %.3f: %f, %f avg, %f rate, %lf seconds, %d images\n", get_current_batch(net), (float)(net.see
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/batchnorm_layer.c -o obj/batchnorm_layer.oIn file included from ./src/image.h:3:0,
from ./src/batchnorm_layer.h:4,
from ./src/batchnorm_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/art.c -o obj/art.oIn file included from ./src/network.h:4:0,
from ./src/art.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/region_layer.c -o obj/region_layer.oIn file included from ./src/layer.h:4:0,
from ./src/region_layer.h:4,
from ./src/region_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/reorg_layer.c -o obj/reorg_layer.oIn file included from ./src/image.h:3:0,
from ./src/reorg_layer.h:4,
from ./src/reorg_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/reorg_old_layer.c -o obj/reorg_old_layer.oIn file included from ./src/image.h:3:0,
from ./src/reorg_old_layer.h:4,
from ./src/reorg_old_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/super.c -o obj/super.oIn file included from ./src/network.h:4:0,
from ./src/super.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/voxel.c -o obj/voxel.oIn file included from ./src/network.h:4:0,
from ./src/voxel.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/tree.c -o obj/tree.oIn file included from ./src/tree.h:3:0,
from ./src/tree.c:3:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/yolo_layer.c -o obj/yolo_layer.oIn file included from ./src/layer.h:4:0,
from ./src/yolo_layer.h:5,
from ./src/yolo_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
./src/yolo_layer.c: In function ‘make_yolo_layer’:
./src/yolo_layer.c:58:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
if (cudaSuccess == cudaHostAlloc(&l.output, batchl.outputssizeof(float), cudaHostRegisterMapped)) l.output_p
^
In file included from /usr/local/cuda/include/cuda_runtime.h:96:0,
from include/darknet.h:31,
from ./src/layer.h:4,
from ./src/yolo_layer.h:5,
from ./src/yolo_layer.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4412:39: note: expected ‘void **’ but argument is of type ‘float **’
extern host cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
^
./src/yolo_layer.c:62:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
if (cudaSuccess == cudaHostAlloc(&l.delta, batchl.outputssizeof(float), cudaHostRegisterMapped)) l.delta_pin
^
In file included from /usr/local/cuda/include/cuda_runtime.h:96:0,
from include/darknet.h:31,
from ./src/layer.h:4,
from ./src/yolo_layer.h:5,
from ./src/yolo_layer.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4412:39: note: expected ‘void **’ but argument is of type ‘float **’
extern host cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
^
./src/yolo_layer.c: In function ‘resize_yolo_layer’:
./src/yolo_layer.c:86:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
if (cudaSuccess != cudaHostAlloc(&l->output, l->batchl->outputs * sizeof(float), cudaHostRegisterMapped))
^
In file included from /usr/local/cuda/include/cuda_runtime.h:96:0,
from include/darknet.h:31,
from ./src/layer.h:4,
from ./src/yolo_layer.h:5,
from ./src/yolo_layer.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4412:39: note: expected ‘void **’ but argument is of type ‘float **’
extern host cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
^
./src/yolo_layer.c:94:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
if (cudaSuccess != cudaHostAlloc(&l->delta, l->batchl->outputs * sizeof(float), cudaHostRegisterMapped))
^
In file included from /usr/local/cuda/include/cuda_runtime.h:96:0,
from include/darknet.h:31,
from ./src/layer.h:4,
from ./src/yolo_layer.h:5,
from ./src/yolo_layer.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4412:39: note: expected ‘void **’ but argument is of type ‘float **’
extern host cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
^
gcc -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include -c ./src/upsample_layer.c -o obj/upsample_layer.oIn file included from ./src/cuda.h:3:0,
from ./src/upsample_layer.h:3,
from ./src/upsample_layer.c:1:
include/darknet.h:48:16: warning: empty declaration with storage class specifier does not redeclare tag
typedef struct network_state;
^
nvcc -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52] -gencode arch=compute_61,code=[sm_61,compute_61] -Iinclude/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda/include/ -DCUDNN --compiler-options "-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -I/usr/local/cudnn/include" -c ./src/convolutional_kernels.cu -o obj/convolutional_kernels.oIn file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda/include/cuda_runtime.h:120:0,
from :0:
/usr/local/cuda/include/crt/common_functions.h:74:0: warning: "CUDACC_VER" redefined
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, an
^
:0:0: note: this is the location of the previous definition
include/darknet.h(48): warning: declaration requires a typedef name
./src/convolutional_kernels.cu(214): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(186): warning: variable "status" was declared but never referenced
./src/convolutional_kernels.cu(187): warning: variable "input_size" was declared but never referenced
./src/convolutional_kernels.cu(192): warning: variable "a" was declared but never referenced
./src/convolutional_kernels.cu(197): warning: variable "t_bit_input_size" was declared but never referenced
./src/convolutional_kernels.cu(410): warning: variable "one" was declared but never referenced
In file included from /usr/local/cuda-8.0/bin/..//include/crt/device_runtime.h:38:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:217:
/usr/local/cuda/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a
^
In file included from ./src/convolutional_kernels.cu:142:0:
/usr/local/cuda/include/common_functions.h:54:2: warning: #warning "common_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "common_functions.h is an internal header file and must not be used directly. This file will be removed
^
In file included from /usr/local/cuda-8.0/bin/..//include/crt/device_runtime.h:38:0,
from /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:217:
/usr/local/cuda/include/host_defines.h:54:2: warning: #warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "host_defines.h is an internal header file and must not be used directly. This file will be removed in a
^
In file included from ./src/convolutional_kernels.cu:142:0:
/usr/local/cuda/include/common_functions.h:54:2: warning: #warning "common_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
#warning "common_functions.h is an internal header file and must not be used directly. This file will be removed
^
ptxas /tmp/tmpxft_000038ca_00000000-14_convolutional_kernels.compute_30.ptx, line 113; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_000038ca_00000000-14_convolutional_kernels.compute_30.ptx, line 142; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_000038ca_00000000-14_convolutional_kernels.compute_30.ptx, line 224; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_000038ca_00000000-14_convolutional_kernels.compute_30.ptx, line 254; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_000038ca_00000000-14_convolutional_kernels.compute_30.ptx, line 355; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_000038ca_00000000-14_convolutional_kernels.compute_30.ptx, line 409; error : Call has wrong number of parameters
ptxas /tmp/tmpxft_000038ca_00000000-14_convolutional_kernels.compute_30.ptx, line 430; error : Call has wrong number of parameters
ptxas fatal : Ptx assembly aborted due to errors
Makefile:142: recipe for target 'obj/convolutional_kernels.o' failed
make: *** [obj/convolutional_kernels.o] Error 255
manasa@isemes:~/Desktop/darknet-master$
e8035669 commentedon Jan 26, 2019
Hey @ManasaNadimpalli
I read your error message, and I think the error is related to your CUDA compiler.
You should check your CUDA version and create a new issue to report this problem.
ManasaNadimpalli commentedon Jan 26, 2019
@e8035669 Ok. I will check that and try again.
Thank you sir.
ManasaNadimpalli commentedon Jan 26, 2019
Sir, I am training 1 class and changed the cfg file accordingly with filters=18 .As there is some problem with cuda, I changed GPU=0; OPENCV=1;CUDA=0 and train
the output is like
manasa@isemes:~/Desktop/darknet-master$ ./darknet detector train cfg/obj.data yolov3-binary.cfg darknet53.conv.74
yolov3-binary
layer filters size input output
0 conv 32 3 x 3 / 1 416 x 416 x 3 -> 416 x 416 x 32 0.299 BF
1 conv 64 3 x 3 / 2 416 x 416 x 32 -> 208 x 208 x 64 1.595 BF
2 conv 32 1 x 1 / 1 208 x 208 x 64 -> 208 x 208 x 32 0.177 BF
3 conv 64 3 x 3 / 1 208 x 208 x 32 -> 208 x 208 x 64 1.595 BF
4 Shortcut Layer: 1
5 conv 128 3 x 3 / 2 208 x 208 x 64 -> 104 x 104 x 128 1.595 BF
6 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 0.177 BF
7 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF
8 Shortcut Layer: 5
9 conv 64 1 x 1 / 1 104 x 104 x 128 -> 104 x 104 x 64 0.177 BF
10 conv 128 3 x 3 / 1 104 x 104 x 64 -> 104 x 104 x 128 1.595 BF
11 Shortcut Layer: 8
12 conv 256 3 x 3 / 2 104 x 104 x 128 -> 52 x 52 x 256 1.595 BF
13 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
14 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
15 Shortcut Layer: 12
16 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
17 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
18 Shortcut Layer: 15
19 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
20 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
21 Shortcut Layer: 18
22 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
23 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
24 Shortcut Layer: 21
25 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
26 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
27 Shortcut Layer: 24
28 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
29 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
30 Shortcut Layer: 27
31 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
32 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
33 Shortcut Layer: 30
34 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
35 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
36 Shortcut Layer: 33
37 conv 512 3 x 3 / 2 52 x 52 x 256 -> 26 x 26 x 512 1.595 BF
38 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
39 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
40 Shortcut Layer: 37
41 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
42 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
43 Shortcut Layer: 40
44 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
45 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
46 Shortcut Layer: 43
47 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
48 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
49 Shortcut Layer: 46
50 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
51 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
52 Shortcut Layer: 49
53 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
54 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
55 Shortcut Layer: 52
56 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
57 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
58 Shortcut Layer: 55
59 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
60 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
61 Shortcut Layer: 58
62 conv 1024 3 x 3 / 2 26 x 26 x 512 -> 13 x 13 x1024 1.595 BF
63 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
64 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
65 Shortcut Layer: 62
66 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
67 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
68 Shortcut Layer: 65
69 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
70 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
71 Shortcut Layer: 68
72 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
73 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
74 Shortcut Layer: 71
75 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
76 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
77 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
78 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
79 conv 512 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 512 0.177 BF
80 conv 1024 3 x 3 / 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
81 conv 18 1 x 1 / 1 13 x 13 x1024 -> 13 x 13 x 18 0.006 BF
82 yolo
83 route 79
84 conv 256 1 x 1 / 1 13 x 13 x 512 -> 13 x 13 x 256 0.044 BF
85 upsample 2x 13 x 13 x 256 -> 26 x 26 x 256
86 route 85 61
87 conv 256 1 x 1 / 1 26 x 26 x 768 -> 26 x 26 x 256 0.266 BF
88 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
89 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
90 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
91 conv 256 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 256 0.177 BF
92 conv 512 3 x 3 / 1 26 x 26 x 256 -> 26 x 26 x 512 1.595 BF
93 conv 18 1 x 1 / 1 26 x 26 x 512 -> 26 x 26 x 18 0.012 BF
94 yolo
95 route 91
96 conv 128 1 x 1 / 1 26 x 26 x 256 -> 26 x 26 x 128 0.044 BF
97 upsample 2x 26 x 26 x 128 -> 52 x 52 x 128
98 route 97 36
99 conv 128 1 x 1 / 1 52 x 52 x 384 -> 52 x 52 x 128 0.266 BF
100 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
101 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
102 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
103 conv 128 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 128 0.177 BF
104 conv 256 3 x 3 / 1 52 x 52 x 128 -> 52 x 52 x 256 1.595 BF
105 conv 18 1 x 1 / 1 52 x 52 x 256 -> 52 x 52 x 18 0.025 BF
106 yolo
Total BFLOPS 65.290
Loading weights from darknet53.conv.74...
seen 64
Done!
Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005
If error occurs - run training with flag: -dont_show
Resizing
608 x 608
Wrong annotation: class_id = 1. But class_id should be [from 0 to 0]
Wrong annotation: class_id = 1. But class_id should be [from 0 to 0]
Wrong annotation: class_id = 1. But class_id should be [from 0 to 0]
Here what does the class_id should be from 0 to 0 mean?
e8035669 commentedon Jan 26, 2019
Hey @ManasaNadimpalli
This problem is at your txt file of dataset.
We know the annotation format is
<object-class> <x> <y> <width> <height>
The
<object-class>
number is start from zero, not 1.Nazeef-Ul-Haq commentedon Oct 30, 2019
I am facing this error when running make file. can anyone guide?
gcc -Iinclude/ -Isrc/ -DOPENCV
pkg-config --cflags opencv
-DGPU -I/usr/local/cuda-9.1/include/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -DGPU 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/darknet.o libdarknet.a -o darknet -lm -pthreadpkg-config --libs opencv
-L/usr/local/cuda-9.1/lib64 -lcuda -lcudart -lcublas -lcurand -lstdc++ libdarknet.aobj/darknet.o: In function
main': darknet.c:(.text.startup+0x3ca): undefined reference to
run_isegmenter'collect2: error: ld returned 1 exit status
Makefile:76: recipe for target 'darknet' failed
make: *** [darknet] Error 1
quocnhat commentedon Feb 20, 2020
to solve this, please check your cuda_path again.
ex: default:: /usr/local/cuda/ --> /usr/local/cuda-10.0/
quocnhat commentedon May 13, 2020
KishoreKonakanti commentedon Jul 9, 2020
I resolved it using following steps:
sudo apt install libopencv-dev
python -c "import cv2; print(cv2.__version__);
(In my case, bashrc was setting up env vars and another installation of opencv was active and I had to comment out relevant lines in bashrc)
Well not much of use, just got 2 FPS :(
Versions (other versions might also work):
Opencv: 4.2.0
No CUDA/CUDNN in use
Thank you.
imohammadhossein commentedon Jul 21, 2020
Opencv 3.4.4 works correctly.