Giter VIP home page Giter VIP logo

Comments (5)

sawakk avatar sawakk commented on August 28, 2024

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

from enet.

rsingla92 avatar rsingla92 commented on August 28, 2024

@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.

from enet.

mathTaoTao avatar mathTaoTao commented on August 28, 2024

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.

from enet.

mingx9527 avatar mingx9527 commented on August 28, 2024

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

from enet.

zengjie617789 avatar zengjie617789 commented on August 28, 2024

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

from enet.

Related Issues (20)

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.