martinkersner / train-DeepLab

Train DeepLab for Semantic Image Segmentation
MIT License
172 stars 76 forks source link

Could not make densecrf #21

Open useebear opened 7 years ago

useebear commented 7 years ago

I tried to make the densecrf, but got the following error. Cannot figure why?

make[1]: Entering directory .../train-DeepLab/code/densecrf' rm -f *.a rm -f *.o rm -f prog_test_densecrf rm -f prog_refine_pascal rm -f prog_refine_pascal_v4 make[1]: Leaving directory.../train-DeepLab/code/densecrf' make prog_test_densecrf make[1]: Entering directory .../train-DeepLab/code/densecrf' g++ libDenseCRF/bipartitedensecrf.cpp libDenseCRF/densecrf.cpp libDenseCRF/filter.cpp libDenseCRF/permutohedral.cpp libDenseCRF/util.cpp -c -W -Wall -O2 In file included from libDenseCRF/bipartitedensecrf.cpp:27:0: libDenseCRF/densecrf.h:66:3: warning: unused parameter ‘o’ [-Wunused-parameter] DenseCRF(DenseCRF & o) {} ^ In file included from libDenseCRF/bipartitedensecrf.cpp:27:0: libDenseCRF/densecrf.h:140:3: warning: unused parameter ‘o’ [-Wunused-parameter] BipartiteDenseCRF(BipartiteDenseCRF & o){} ^ libDenseCRF/densecrf.h:185:3: warning: unused parameter ‘filter’ [-Wunused-parameter] Filter( const Filter& filter ){} ^ In file included from libDenseCRF/util.h:31:0, from libDenseCRF/bipartitedensecrf.cpp:28: libDenseCRF/permutohedral.h: In member function ‘void HashTable::grow()’: libDenseCRF/permutohedral.h:83:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i<old_capacity; i++ ) ^ libDenseCRF/bipartitedensecrf.cpp: At global scope: libDenseCRF/bipartitedensecrf.cpp:33:3: warning: unused parameter ‘o’ [-Wunused-parameter] BPPottsPotential( const BPPottsPotential&o ){} ^ In file included from libDenseCRF/densecrf.cpp:33:0: libDenseCRF/densecrf.h:66:3: warning: unused parameter ‘o’ [-Wunused-parameter] DenseCRF(DenseCRF & o) {} ^ In file included from libDenseCRF/densecrf.cpp:33:0: libDenseCRF/densecrf.h:140:3: warning: unused parameter ‘o’ [-Wunused-parameter] BipartiteDenseCRF(BipartiteDenseCRF & o){} ^ libDenseCRF/densecrf.h:185:3: warning: unused parameter ‘filter’ [-Wunused-parameter] Filter( const Filter& filter ){} ^ In file included from libDenseCRF/densecrf.cpp:35:0: libDenseCRF/permutohedral.h: In member function ‘void HashTable::grow()’: libDenseCRF/permutohedral.h:83:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i<old_capacity; i++ ) ^ libDenseCRF/densecrf.cpp: At global scope: libDenseCRF/densecrf.cpp:47:3: warning: unused parameter ‘o’ [-Wunused-parameter] PottsPotential( const PottsPotential&o ){} ^ In file included from libDenseCRF/filter.cpp:27:0: libDenseCRF/permutohedral.h: In member function ‘void HashTable::grow()’: libDenseCRF/permutohedral.h:83:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i<old_capacity; i++ ) ^ In file included from libDenseCRF/filter.cpp:28:0: libDenseCRF/densecrf.h: At global scope: libDenseCRF/densecrf.h:66:3: warning: unused parameter ‘o’ [-Wunused-parameter] DenseCRF(DenseCRF & o) {} ^ In file included from libDenseCRF/filter.cpp:28:0: libDenseCRF/densecrf.h:140:3: warning: unused parameter ‘o’ [-Wunused-parameter] BipartiteDenseCRF(BipartiteDenseCRF & o){} ^ libDenseCRF/densecrf.h:185:3: warning: unused parameter ‘filter’ [-Wunused-parameter] Filter( const Filter& filter ){} ^ In file included from libDenseCRF/permutohedral.cpp:28:0: libDenseCRF/permutohedral.h: In member function ‘void HashTable::grow()’: libDenseCRF/permutohedral.h:83:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i<old_capacity; i++ ) ^ In file included from libDenseCRF/util.h:30:0, from libDenseCRF/util.cpp:31: libDenseCRF/densecrf.h:66:3: warning: unused parameter ‘o’ [-Wunused-parameter] DenseCRF(DenseCRF & o) {} ^ In file included from libDenseCRF/util.h:30:0, from libDenseCRF/util.cpp:31: libDenseCRF/densecrf.h:140:3: warning: unused parameter ‘o’ [-Wunused-parameter] BipartiteDenseCRF(BipartiteDenseCRF & o){} ^ libDenseCRF/densecrf.h:185:3: warning: unused parameter ‘filter’ [-Wunused-parameter] Filter( const Filter& filter ){} ^ In file included from libDenseCRF/util.h:31:0, from libDenseCRF/util.cpp:31: libDenseCRF/permutohedral.h: In member function ‘void HashTable::grow()’: libDenseCRF/permutohedral.h:83:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i<old_capacity; i++ ) ^ libDenseCRF/util.cpp: In function ‘unsigned char* readPPM(const char*, int&, int&)’: libDenseCRF/util.cpp:80:31: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets ( hdr+l, 256-l, fp ); ^ libDenseCRF/util.cpp:97:30: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread ( r, 1, W*H*3, fp ); ^ libDenseCRF/util.cpp:101:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( fp, "%d", &c ); ^ ar rcs libDenseCRF.a bipartitedensecrf.o densecrf.o filter.o permutohedral.o util.o g++ test_densecrf/simple_dense_inference.cpp -o prog_test_densecrf -W -Wall -O2 -L. -lDenseCRF In file included from test_densecrf/simple_dense_inference.cpp:31:0: test_densecrf/../libDenseCRF/densecrf.h:66:3: warning: unused parameter ‘o’ [-Wunused-parameter] DenseCRF(DenseCRF & o) {} ^ In file included from test_densecrf/simple_dense_inference.cpp:31:0: test_densecrf/../libDenseCRF/densecrf.h:140:3: warning: unused parameter ‘o’ [-Wunused-parameter] BipartiteDenseCRF(BipartiteDenseCRF & o){} ^ test_densecrf/../libDenseCRF/densecrf.h:185:3: warning: unused parameter ‘filter’ [-Wunused-parameter] Filter( const Filter& filter ){} ^ In file included from test_densecrf/../libDenseCRF/util.h:31:0, from test_densecrf/simple_dense_inference.cpp:32: test_densecrf/../libDenseCRF/permutohedral.h: In member function ‘void HashTable::grow()’: test_densecrf/../libDenseCRF/permutohedral.h:83:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i<old_capacity; i++ ) ^ make[1]: Leaving directory.../train-DeepLab/code/densecrf' make prog_refine_pascal make[1]: Entering directory .../train-DeepLab/code/densecrf' g++ refine_pascal/dense_inference.cpp -o prog_refine_pascal -W -Wall -O2 -L. -lDenseCRF -I./refine_pascal/ -I./util/ In file included from refine_pascal/dense_inference.cpp:46:0: refine_pascal/../libDenseCRF/densecrf.h:66:3: warning: unused parameter ‘o’ [-Wunused-parameter] DenseCRF(DenseCRF & o) {} ^ In file included from refine_pascal/dense_inference.cpp:46:0: refine_pascal/../libDenseCRF/densecrf.h:140:3: warning: unused parameter ‘o’ [-Wunused-parameter] BipartiteDenseCRF(BipartiteDenseCRF & o){} ^ refine_pascal/../libDenseCRF/densecrf.h:185:3: warning: unused parameter ‘filter’ [-Wunused-parameter] Filter( const Filter& filter ){} ^ In file included from refine_pascal/../libDenseCRF/util.h:31:0, from refine_pascal/dense_inference.cpp:47: refine_pascal/../libDenseCRF/permutohedral.h: In member function ‘void HashTable::grow()’: refine_pascal/../libDenseCRF/permutohedral.h:83:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i<old_capacity; i++ ) ^ make[1]: Leaving directory.../train-DeepLab/code/densecrf' make prog_refine_pascal_v4 make[1]: Entering directory .../train-DeepLab/code/densecrf' g++ refine_pascal_v4/dense_inference.cpp -o prog_refine_pascal_v4 -W -Wall -O2 -L. -lDenseCRF -lmatio -lhdf5 -I./util/ In file included from refine_pascal_v4/dense_inference.cpp:48:0: refine_pascal_v4/../libDenseCRF/densecrf.h:66:3: warning: unused parameter ‘o’ [-Wunused-parameter] DenseCRF(DenseCRF & o) {} ^ In file included from refine_pascal_v4/dense_inference.cpp:48:0: refine_pascal_v4/../libDenseCRF/densecrf.h:140:3: warning: unused parameter ‘o’ [-Wunused-parameter] BipartiteDenseCRF(BipartiteDenseCRF & o){} ^ refine_pascal_v4/../libDenseCRF/densecrf.h:185:3: warning: unused parameter ‘filter’ [-Wunused-parameter] Filter( const Filter& filter ){} ^ In file included from refine_pascal_v4/../libDenseCRF/util.h:31:0, from refine_pascal_v4/dense_inference.cpp:49: refine_pascal_v4/../libDenseCRF/permutohedral.h: In member function ‘void HashTable::grow()’: refine_pascal_v4/../libDenseCRF/permutohedral.h:83:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for( int i=0; i<old_capacity; i++ ) ^ make[1]: Leaving directory.../train-DeepLab/code/densecrf

amlarraz commented 7 years ago

+1

staywithme23 commented 7 years ago

@useebear @amlarraz mine solved bt this