ENet icon indicating copy to clipboard operation
ENet copied to clipboard

Train leftImg8bit_Fine and gtFine

Open sawakk opened this issue 7 years ago • 5 comments

The path the project ENet /home/user/lib/caffe/ENet/

dataset is train_fine_cityscapes.txt

enet_solver_encoder.prototxt: net: "/home/user/lib/caffe/ENet/prototxts/enet_train_encoder.prototxt" # Change this to the absolute path to your model file test_initialization: true test_iter: 1 test_interval: 10000000 base_lr: 0.005 lr_policy: "multistep" gamma: 0.1 stepvalue: 18750 stepvalue: 37500 stepvalue: 56250 display: 20 momentum: 0.9 max_iter: 75000 weight_decay: 0.0002 snapshot: 10000 snapshot_prefix: "/home/user/lib/caffe/ENet/weights/snapshots_encoder/enet" # Change this to the absolute path to where you wish to output solver snapshots solver_mode: GPU solver_type: ADAM momentum2: 0.999

When I call the command /home/user/lib/caffe/ENet/caffe-enet/build/tools/caffe train -solver /home/user/lib/caffe/ENet/prototxts/enet_solver_encoder.prototxt

I get this result: ...

I0728 12:07:31.305349 32224 layer_factory.hpp:77] Creating layer bn1_0_2 I0728 12:07:31.305358 32224 net.cpp:100] Creating Layer bn1_0_2 I0728 12:07:31.305361 32224 net.cpp:434] bn1_0_2 <- conv1_0_2 I0728 12:07:31.305366 32224 net.cpp:408] bn1_0_2 -> bn1_0_2 I0728 12:07:31.305560 32224 net.cpp:150] Setting up bn1_0_2 I0728 12:07:31.305565 32224 net.cpp:157] Top shape: 4 64 128 256 (8388608) I0728 12:07:31.305567 32224 net.cpp:165] Memory required for data: 394657792 I0728 12:07:31.305574 32224 layer_factory.hpp:77] Creating layer drop1_0_3 *** Aborted at 1501232851 (unix time) try "date -d @1501232851" if you are using GNU date *** PC: @ 0x7f9a8456db73 std::_Hashtable<>::clear() *** SIGSEGV (@0x9) received by PID 32224 (TID 0x7f9aead65ac0) from PID 9; stack trace: *** @ 0x7f9ae83b84b0 (unknown) @ 0x7f9a8456db73 std::_Hashtable<>::clear() @ 0x7f9a8455eca6 google::protobuf::DescriptorPool::FindFileByName() @ 0x7f9a8453bdc8 google::protobuf::python::cdescriptor_pool::AddSerializedFile() @ 0x7f9ae8ff07d0 PyEval_EvalFrameEx @ 0x7f9ae911901c PyEval_EvalCodeEx @ 0x7f9ae906f3dd (unknown) @ 0x7f9ae90421e3 PyObject_Call @ 0x7f9ae9062ae5 (unknown) @ 0x7f9ae8ff9123 (unknown) @ 0x7f9ae90421e3 PyObject_Call @ 0x7f9ae8fed13c PyEval_EvalFrameEx @ 0x7f9ae911901c PyEval_EvalCodeEx @ 0x7f9ae8fe7b89 PyEval_EvalCode @ 0x7f9ae907c1b4 PyImport_ExecCodeModuleEx @ 0x7f9ae907cb8f (unknown) @ 0x7f9ae907e300 (unknown) @ 0x7f9ae907e5c8 (unknown) @ 0x7f9ae907f6db PyImport_ImportModuleLevel @ 0x7f9ae8ff6698 (unknown) @ 0x7f9ae90421e3 PyObject_Call @ 0x7f9ae9118447 PyEval_CallObjectWithKeywords @ 0x7f9ae8feb5c6 PyEval_EvalFrameEx @ 0x7f9ae911901c PyEval_EvalCodeEx @ 0x7f9ae8fe7b89 PyEval_EvalCode @ 0x7f9ae907c1b4 PyImport_ExecCodeModuleEx @ 0x7f9ae907cb8f (unknown) @ 0x7f9ae907e300 (unknown) @ 0x7f9ae907e5c8 (unknown) @ 0x7f9ae907f6db PyImport_ImportModuleLevel @ 0x7f9ae8ff6698 (unknown) @ 0x7f9ae90421e3 PyObject_Call

Could you help?

sawakk avatar Jul 28 '17 09:07 sawakk

error "import caffe" in file spatial_dropout.py I tried it the absolute path, but it did not work out: import sys caffe_root = '/home/user/lib/caffe/ENet/caffe-enet/' # Change this to the absolute directory to ENet Caffe sys.path.insert(0, caffe_root + 'python') import caffe

sawakk avatar Jul 28 '17 11:07 sawakk

@sawakk I would recommend you check the Ubuntu Caffe installation steps: http://caffe.berkeleyvision.org/install_apt.html

and then the compilation steps: http://caffe.berkeleyvision.org/installation.html#compilation

I use the cmake build steps. Can you go through those again and make sure you have caffe set up and running properly?

After that, check and ensure you're able to build pycaffe. Given the stack trace you reported, I wouldn't be surprised if pycaffe is part of your problem (that said - I do not fully know what the underlying issue is).

Hope this helps.

rsingla92 avatar Aug 03 '17 07:08 rsingla92

I have the same issue while training

I0728 12:07:31.305574 32224 layer_factory.hpp:77] Creating layer drop1_0_3 *** Aborted at 1501232851 (unix time) try "date -d @1501232851" if you are using GNU date *** PC: @ 0x7f9a8456db73 std::_Hashtable<>::clear() *** SIGSEGV (@0x9) received by PID 32224 (TID 0x7f9aead65ac0) from PID 9; stack trace: *** @ 0x7f9ae83b84b0 (unknown) @ 0x7f9a8456db73 std::_Hashtable<>::clear() @ 0x7f9a8455eca6 google::protobuf::DescriptorPool::FindFileByName() @ 0x7f9a8453bdc8 google::protobuf::python::cdescriptor_pool::AddSerializedFile() @ 0x7f9ae8ff07d0 PyEval_EvalFrameEx @ 0x7f9ae911901c PyEval_EvalCodeEx @ 0x7f9ae906f3dd (unknown) @ 0x7f9ae90421e3 PyObject_Call @ 0x7f9ae9062ae5 (unknown) @ 0x7f9ae8ff9123 (unknown) @ 0x7f9ae90421e3 PyObject_Call @ 0x7f9ae8fed13c PyEval_EvalFrameEx @ 0x7f9ae911901c PyEval_EvalCodeEx @ 0x7f9ae8fe7b89 PyEval_EvalCode @ 0x7f9ae907c1b4 PyImport_ExecCodeModuleEx @ 0x7f9ae907cb8f (unknown) @ 0x7f9ae907e300 (unknown) @ 0x7f9ae907e5c8 (unknown) @ 0x7f9ae907f6db PyImport_ImportModuleLevel @ 0x7f9ae8ff6698 (unknown) @ 0x7f9ae90421e3 PyObject_Call @ 0x7f9ae9118447 PyEval_CallObjectWithKeywords @ 0x7f9ae8feb5c6 PyEval_EvalFrameEx @ 0x7f9ae911901c PyEval_EvalCodeEx @ 0x7f9ae8fe7b89 PyEval_EvalCode @ 0x7f9ae907c1b4 PyImport_ExecCodeModuleEx @ 0x7f9ae907cb8f (unknown) @ 0x7f9ae907e300 (unknown) @ 0x7f9ae907e5c8 (unknown) @ 0x7f9ae907f6db PyImport_ImportModuleLevel @ 0x7f9ae8ff6698 (unknown) @ 0x7f9ae90421e3 PyObject_Call

but I can correctly import caffe any help? Thanks.

mathTaoTao avatar Aug 24 '17 03:08 mathTaoTao

The Error is caused by data. you can check your cityscapes data, no have groundtruth: xxx_xxx_xxx_gtFine_labelTrainIds.png you must: git clone https://github.com/mcordts/cityscapesScripts.git and then run the /preparation/createTrainIdLabelImags.py to generate xxx_xxx_xxx_gtFine_labelTrainIds.png As shown in the Tutorial

mingx9527 avatar Mar 13 '18 06:03 mingx9527

i solved this problem through removing the default protoc and i use or install the version installed by anaconda~ hope it can help you

zengjie617789 avatar Jul 24 '19 09:07 zengjie617789