Coder Social home page Coder Social logo

jay-mahadeokar / deeplab-public-ver2 Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 12.0 7.11 MB

This repo was mirrored from here: https://bitbucket.org/aquariusjay/deeplab-public-ver2

License: Other

CMake 2.54% Makefile 0.65% C++ 78.55% C 0.05% MATLAB 3.25% Cuda 6.11% M 0.01% Limbo 0.01% Python 7.04% Shell 0.28% Protocol Buffer 1.53%

deeplab-public-ver2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

deeplab-public-ver2's Issues

Unexpected label <num>

Hi,

I am facing an issue which makes no sense to me. When I try to finetune deeplab on my dataset which has only 2 classes including background. I keep on getting this error. I tried changing ignore_label value but it doesn't help, so I kept that to 255.

Any hints what causes this error to pop up?

Also, in deeplab's older version, we could add weight_source file to loss layer if our classes are unbalanced. But I checked into updated softmax_loss_layer.cpp, this parameter is not being handled anymore. Any specific reasons for omitting it? Also, what is the work around to penalize for class which has few pixels?

Any help will be highly appreciated!
Thanks.

How to extract feature from the trained model

In the guidelines:
It says "the computed features are saved at folders features or features2,"
But I tried run_pascal.sh. They both runs well.
But I fail to find the features 2 , it is empty.

ResNet-50

Hi, I reduced the number of layers in ResNet-101 to 50, tell me how to create init.caffemodel for my model?

How to run under C++

Hello!
How could I run segmentation inside C++ code? Is it simular to Caffe running?

small objects segmentation

I have some difficulties to detect small object with DeepLabV2 without CRF.

I reached to 93% IOU on my own dataset, but the model in unable to detect some small objects inside the validation set and some big objects do not have very fine edges, so the results are under question for me and too good to be true.

test resnet-101

I tested resnet-101 successfully, but it's not the same as the author's miou. The result before densecrf on the validation set was 0.7646 and the paper was 0.7635.
Strangely, the miou I ran out of VGG-16 was consistent with the paper.
Does anyone have the same problem?

Question about Running Deeplab

Hi, I cloned the project and was trying to directly evaluate the DeepLabv2 (ResNet-101) model on several images. I followed the steps provided on the front page and downloaded the train.prototxt, etc., and set only RUN_TEST to 1, but when I evaluate run_pascal.sh there is no output and I get the following message:
2016-12-08 9 14 34

May I get some help on this? Thank you so much!!

Cannot run_densecrf.sh

I came across such a problem when run_densecrf.sh, it says:

./run_densecrf.sh: line 70: 9582 Segmentation fault (core dumped) ${CRF_BIN} -id ${IMG_DIR} -fd ${FEATURE_DIR} -sd ${SAVE_DIR} -i ${MAX_ITER} -px ${POS_X_STD} -py ${POS_Y_STD} -pw ${POS_W} -bx ${Bi_X_STD} -by ${Bi_Y_STD} -br ${Bi_R_STD} -bg ${Bi_G_STD} -bb ${Bi_B_STD} -bw ${Bi_W}

Cannot figure out why?

In the densecrf directory, when make, it says in the command window

...

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, WH3, 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 .../deeplab-public-ver2/densecrf' make prog_refine_pascal make[1]: Entering directory .../deeplab-public-ver2/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 .../deeplab-public-ver2/densecrf' make prog_refine_pascal_v4 make[1]: Entering directory .../deeplab-public-ver2/densecrf'
g++ refine_pascal_v4/dense_inference.cpp -o prog_refine_pascal_v4 -W -Wall -O2 -L. -lDenseCRF -lmatio -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++ )
...

ubuntu16.04 runtest failed

I have finished make all & make test, but have error when make runtest, the error trace:

[----------] 3 tests from BatchNormLayerTest/1, where TypeParam = caffe::CPUDevice<double>
[ RUN      ] BatchNormLayerTest/1.TestForwardInplace
F0309 14:27:15.528103 13693 blob.cpp:163] Check failed: data_ 
*** Check failure stack trace: ***
    @     0x7f697e0535cd  google::LogMessage::Fail()
    @     0x7f697e055433  google::LogMessage::SendToLog()
    @     0x7f697e05315b  google::LogMessage::Flush()
    @     0x7f697e055e1e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f697ee43a2b  caffe::Blob<>::mutable_cpu_data()
    @     0x7f697ed25057  caffe::BatchNormLayer<>::Forward_cpu()
    @           0x87620a  caffe::Layer<>::Forward()
    @           0xb5ed87  caffe::BatchNormLayerTest_TestForwardInplace_Test<>::TestBody()
    @           0xd913c3  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0xd8a2fa  testing::Test::Run()
    @           0xd8a448  testing::TestInfo::Run()
    @           0xd8a555  testing::TestCase::Run()
    @           0xd8c0ef  testing::internal::UnitTestImpl::RunAllTests()
    @           0xd8c413  testing::UnitTest::Run()
    @           0x869eed  main
    @     0x7f69759c3830  __libc_start_main
    @           0x86da19  _start
    @              (nil)  (unknown)
Aborted (core dumped)
src/caffe/test/CMakeFiles/runtest.dir/build.make:57: recipe for target 'src/caffe/test/CMakeFiles/runtest' failed
make[3]: *** [src/caffe/test/CMakeFiles/runtest] Error 134
CMakeFiles/Makefile2:328: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/all' failed
make[2]: *** [src/caffe/test/CMakeFiles/runtest.dir/all] Error 2
CMakeFiles/Makefile2:335: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/rule' failed
make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
Makefile:240: recipe for target 'runtest' failed
make: *** [runtest] Error 2

I have only one gpu GTX1080 and one cpu,I have installed cudnn-8.0-linux-x64-v5.1 and cuda_8.0.61_375.26_linux.run. My gcc version is 5.4.0. My gpu driver is 384.130
how could I solve this problem. Thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.