Code Monkey home page Code Monkey logo

Comments (31)

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
What is camerafeed/Run.py?
I can not answer that there is little information because I am not an Esper.
If you want something, please provide at least the following information.

1.Environment variable

$ echo $PYTHONPATH

2.Program Source
Run.py

3.What will be displayed on the console when rewriting the program as follows.

try:
    (Write your main program)
except:
    import traceback
    traceback.print_exc()

4.What if you run it as follows?

Ctrl + Alt + T → Start terminal

$ python3 /home/pi/Documents/camerafeed/Run.py

5.MobileNet-SSD's model file

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
Did you check if the ".mkv" file is open?

    def go(self):
        try:
            self.last_time = time.time()
            self.trackering = PeopleTracker(self.people_options)
            self.det = Detector()
            self.camera = cv2.VideoCapture(self.source)
            while self.camera.isOpened():
                retval, frame = self.camera.read()
                self.process(frame)
                if cv2.waitKey(1) & 0xFF == ord('q'):
                    break
            print("Finish!!!!!!!!!!!!")
        except:
            import traceback
            traceback.print_exc()

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

Thank you !!!! for all the great help .... it works now!!! but it is very very slow.......
should I use NCS ( neural compute stick) to make it fast for better prototyping .......?

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

i will send you a video of it

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
congratulations.

should I use NCS ( neural compute stick) to make it fast for better prototyping .......?

Since RaspberryPi has its limit, I think that NCS help is needed.
Good luck!

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

thank you !!!
Is there a way to use it for tensorflow version of SSD mobile net ?

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
It can not be done with the combination of NCS + RaspberryPi3.
There is a sample that runs MobileNet-SSD(Tensorflow) with OpenCV alone without NCS.
https://github.com/opencv/opencv/tree/3.4.1/samples/dnn/mobilenet_ssd_python.py
https://github.com/opencv/opencv/blob/3.4.1/samples/dnn/tf_inception.cpp

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

I get it !!! by the way your repo is mobile net SSD with tensorflow....... so you changed it to caffe right? how ? is that using a tool?

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
A kind and wise person is releasing it to here.
https://github.com/chuanqi305/MobileNet-SSD#mobilenet-ssd
For convert sequence.
https://github.com/chuanqi305/MobileNet-SSD#train-your-own-dataset

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

Good Morning, @3073
Because it is hard to explain, I will share my repository below.
It's a sample of Tensorflow, not Caffe.
MobileNet-SSDLite.
I'm still testing it.
https://github.com/PINTO0309/MobileNet-SSDLite-RealSense-TF

If you do not own RealSense, please correct it to your USB camera logic yourself.

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
As of NCSDK Ver 1.12.04, Caffe was installed automatically when NCSDK was installed.
I have not tried the latest NCSDK Ver 2.05 yet.
◆Movidius Neural Compute SDK
https://github.com/movidius/ncsdk/releases/tag/v2.05.00.02

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

Thanks

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :InitializationErrorString() const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::p erl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocat or<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits > >::construct_init(boos t::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::WriteStringMaybeAliased(int, std::string const&, google::proto buf::io::CodedOutputStream*)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::io::Code dOutputStream::WriteStringWithSizeToArray(std::string const&, unsigned char*)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :GetTypeName() const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::match_results<__gnu _cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_mat ch<__gnu_cxx::__normal_iterator<char const*, std::string> > > >::maybe_assign(bo ost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std:: allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string > > > > const&)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::base::CheckOpMessa geBuilder::NewString()' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :DebugString() const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::empty_string_' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::MessageL ite::ParseFromString(std::string const&)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::NameOfEnum(google::protobuf::EnumDescriptor const*, int)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::ArenaStringPtr::AssignWithDefault(std::string const*, google::protobuf::intern al::ArenaStringPtr)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Descript orPool::FindFileByName(std::string const&.) const.'/ lib././libcaffe.so.1.0.0lib-/rc3:libcaffe.so.1.0.0 -rc3undefined: referenceunde fined toreference togoogle ::googleprotobuf::::protobufMessage::::internalIn itializationErrorString:(:) WireFormatLite:const:' ReadBytes.(.google/:lib:/protobuflibcaffe.so.1.0.0:-:rc3io:: :undefinedCodedInpu tStream *reference, tostd ::booststring::)'re_detail_106200
:.:./perl_matcher<lib__gnu_cxx/::libcaffe.so.1.0.0-__normal_iteratorrc3<:char u ndefinedconst ,reference stdto: :`stringboost>:,: stdre_detail_106200::::alloc ator<cpp_regex_traits_implementationboost<:char:>sub_match:<:__gnu_cxxtransform: (:char __normal_iteratorconst<char , const
char, conststd*:): stringconst>'

. .>/,lib /boost:libcaffe.so.1.0.0:-regex_traitsrc3<: char,undefined boostrefe rence: :to cpp_regex_traits<googlechar:>: > protobuf>::::MessageFactoryconstruc t_init:(:boost:InternalRegisterGeneratedFile:(basic_regexchar< charconst,* ,boos t :void: (regex_traits*<)char(,std :boost::string: cpp_regex_traitsconst<&char)> ) '> .> ./const&lib,/ libcaffe.so.1.0.0boost-::rc3:regex_constants :undefined: _matc h_flagsreference) 'to ../leveldblib:/:DBlibcaffe.so.1.0.0:-:rc3Open:( leveldbundefined: :referenceOp tions toconst &,google :std::protobuf::string: internalconst:&:, WireFormatLit eleveldb::::DBWriteStringMaybeAliased*(*int),' std.:.:/stringlib /const&libcaffe.so.1.0.0,- rc3google:: :undefinedprotobuf :ref erence: io:to: CodedOutputStreamgoogle*:):'
protobuf.:.:/internallib:/:libcaffe.so.1.0.0WireFormatLite-:rc3:: WriteBytesMayb eAliasedundefined( int,reference stdto: :stringgoogle ::const&protobuf,: :goog leio::::protobufCodedOutputStream::::io:WriteStringWithSizeToArray:(stdCodedOutp utStream:*:)'string .const.&/,lib /unsigned libcaffe.so.1.0.0char-*rc3):' .undefined. /referencelib /to libcaffe.so.1.0.0-boostrc3::: undefinedre_detail_ 106200 :reference: tocpp_regex_traits_implementation <chargoogle>::::protobuf:t ransform_primary:(Messagechar: :const*GetTypeName,( ) char const'const *.). /constlib'/ .libcaffe.so.1.0.0.-/rc3lib:/ undefinedlibcaffe.so.1.0.0 -referencerc3 :to unde fined boostreference: :tomatch_results <__gnu_cxxleveldb::::Status__normal_ite rator:<:charToString (const)* ,const 'std :.:.string/>lib,/ stdlibcaffe.so.1.0.0:-:rc3allocator:< boostundefined: :referen cesub_match <to__gnu_cxx ::google:__normal_iterator:<protobufchar: :constintern al*:,: stdWireFormatLite::::stringWriteString>( >int ,> std>::::stringmaybe_ass ign (boostconst:&:, match_resultsgoogle<:__gnu_cxx::protobuf:::__normal_iterator io<:char: constCodedOutputStream**,) 'std
::string>, std::allocator<boost::sub_match<__gnu_cxx::_normal_iterator<char con st*, std::string> > > > const&)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::base::CheckOpMessa geBuilder::NewString()' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :DebugString() const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::empty_string_' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::MessageL ite::ParseFromString(std::string const&)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::NameOfEnum(google::protobuf::EnumDescriptor const*, int)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::ArenaStringPtr::AssignWithDefault(std::string const*, google::protobuf::intern al::ArenaStringPtr)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Descript orPool::FindFileByName(std::string const&) const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLitecollect2: error: ld returned 1 exit status
::ReadBytes(google::protobuf::io::CodedInputStream*, std::string*)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::c pp_regex_traits_implementation<char>::transform(char const*, char const*) const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::MessageF actory::InternalRegisterGeneratedFile(char const*, void ()(std::string const&)) '
../lib/libcaffe.so.1.0.0-rc3: undefined reference to leveldb::DB::Open(leveldb: :Options const&, std::string const&, leveldb::DB**)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::WriteBytesMaybeAliased(int, std::string const&, google::protob uf::io::CodedOutputStream
)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::c pp_regex_traits_implementation<char>::transform_primary(char const*, char const* ) const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to leveldb::Status::ToString( ) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::WriteString(int, std::string const&, google::protobuf::io::Cod edOutputStream*)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :InitializationErrorString() const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::p erl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocat or<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boos t::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::WriteStringMaybeAliased(int, std::string const&, google::proto buf::io::CodedOutputStream*)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::io::Code dOutputStream::WriteStringWithSizeToArray(std::string const&, unsigned char*)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :GetTypeName() const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::match_results<__gnu _cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_mat ch<__gnu_cxx::__normal_iterator<char const*, std::string> > > >::maybe_assign(bo ost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std:: allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string > > > > const&)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::base::CheckOpMessa geBuilder::NewString()'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :DebugString() const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::empty_string
'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::MessageL ite::ParseFromString(std::string const&)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::NameOfEnum(google::protobuf::EnumDescriptor const*, int)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::ArenaStringPtr::AssignWithDefault(std::string const*, google::protobuf::intern al::ArenaStringPtr)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Descript orPool::FindFileByName(std::string const&) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::string *)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::c pp_regex_traits_implementation::transform(char const*, char const*) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::MessageF actory::InternalRegisterGeneratedFile(char const*, void (*)(std::string const&)) ' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to leveldb::DB::Open(leveldb: :Options const&, std::string const&, leveldb::DB**)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::WriteBytesMaybeAliased(int, std::string const&, google::protob uf::io::CodedOutputStream*)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::c pp_regex_traits_implementation::transform_primary(char const*, char const* ) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to leveldb::Status::ToString( ) const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::WriteString(int, std::string const&, google::protobuf::io::Cod edOutputStream*)'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
tools/CMakeFiles/test_net.dir/build.make:134: recipe for target 'tools/test_net' failed
make[3]: *** [tools/test_net] Error 1
make[3]: Leaving directory '/opt/movidius/ssd-caffe/build'
tools/CMakeFiles/upgrade_net_proto_text.dir/build.make:134: recipe for target 't ools/upgrade_net_proto_text' failed
make[3]: *** [tools/upgrade_net_proto_text] Error 1
make[3]: Leaving directory '/opt/movidius/ssd-caffe/build'
tools/CMakeFiles/upgrade_net_proto_binary.dir/build.make:134: recipe for target 'tools/upgrade_net_proto_binary' failed
make[3]: *** [tools/upgrade_net_proto_binary] Error 1
make[3]: Leaving directory '/opt/movidius/ssd-caffe/build'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :InitializationErrorString() const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::p erl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocat or<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits > >::construct_init(boos t::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::WriteStringMaybeAliased(int, std::string const&, google::proto buf::io::CodedOutputStream*)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::io::Code dOutputStream::WriteStringWithSizeToArray(std::string const&, unsigned char*)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :GetTypeName() const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::match_results<__gnu _cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_mat ch<__gnu_cxx::__normal_iterator<char const*, std::string> > > >::maybe_assign(bo ost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std:: allocator<boost::sub_match<__gnu_cxx::normal_iterator<char const*, std::string > > > > const&)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::base::CheckOpMessa geBuilder::NewString()' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Message: :DebugString() const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::empty_string_' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::MessageL ite::ParseFromString(std::string const&)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::NameOfEnum(google::protobuf::EnumDescriptor const*, int)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::ArenaStringPtr::AssignWithDefault(std::string const*, google::protobuf::intern al::ArenaStringPtr)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::Descript orPool::FindFileByName(std::string const&) const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::string )'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::c pp_regex_traits_implementation<char>::transform(char const*, char const*) const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::MessageF actory::InternalRegisterGeneratedFile(char const
, void ()(std::string const&)) '
../lib/libcaffe.so.1.0.0-rc3: undefined reference to leveldb::DB::Open(leveldb: :Options const&, std::string const&, leveldb::DB**)' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to google::protobuf::internal ::WireFormatLite::WriteBytesMaybeAliased(int, std::string const&, google::protob uf::io::CodedOutputStream
)'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to boost::re_detail_106200::c pp_regex_traits_implementation<char>::transform_primary(char const*, char const* ) const' ../lib/libcaffe.so.1.0.0-rc3: undefined reference to leveldb::Status::ToString( ) const'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `google::protobuf::internal ::WireFormatLite::WriteString(int, std::string const&, google::protobuf::io::Cod edOutputStream*)'
collect2: error: ld returned 1 exit status
CMakeFiles/Makefile2:479: recipe for target 'tools/CMakeFiles/upgrade_net_proto
text.dir/all' failed
make[2]: *** [tools/CMakeFiles/upgrade_net_proto_text.dir/all] Error 2
tools/CMakeFiles/upgrade_solver_proto_text.dir/build.make:134: recipe for target 'tools/upgrade_solver_proto_text' failed
make[3]: *** [tools/upgrade_solver_proto_text] Error 1
make[3]: Leaving directory '/opt/movidius/ssd-caffe/build'
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:517: recipe for target 'tools/CMakeFiles/upgrade_net_proto
binary.dir/all' failed
make[2]: *** [tools/CMakeFiles/upgrade_net_proto_binary.dir/all] Error 2
CMakeFiles/Makefile2:555: recipe for target 'tools/CMakeFiles/test_net.dir/all' failed
make[2]: *** [tools/CMakeFiles/test_net.dir/all] Error 2
CMakeFiles/Makefile2:441: recipe for target 'tools/CMakeFiles/upgrade_solver_pro to_text.dir/all' failed
make[2]: *** [tools/CMakeFiles/upgrade_solver_proto_text.dir/all] Error 2
make[2]: Leaving directory '/opt/movidius/ssd-caffe/build'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/movidius/ssd-caffe/build'
Installation failed. Error on line 679
Makefile:47: recipe for target 'install' failed
make: *** [install] Error 1

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
$ protoc --version
$ printenv

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
Posted procedures on the official forum.
https://ncsforum.movidius.com/discussion/946/procedure-for-installing-ncsdk-v2-05-00-02-to-raspberrypi3-raspbian-stretch

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
Intel's script has several problems.
Let's solve it one by one.
First of all, please tell me the result of executing the following command.

$ echo $PYTHONPATH

Next, please tell me the result of the following command execution.

$ python3
>>> import caffe

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

pi@raspberrypi:~ $ echo $PYTHONPATH
:/opt/movidius/caffe/python
pi@raspberrypi:~ $ python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.

import caffe
Traceback (most recent call last):
File "", line 1, in
File "/opt/movidius/caffe/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/opt/movidius/caffe/python/caffe/pycaffe.py", line 15, in
import caffe.io
File "/opt/movidius/caffe/python/caffe/io.py", line 2, in
import skimage.io
File "/usr/local/lib/python3.5/dist-packages/skimage/io/init.py", line 7, in
from .manage_plugins import *
File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 28, in
from .collection import imread_collection_wrapper
File "/usr/local/lib/python3.5/dist-packages/skimage/io/collection.py", line 14, in
from ..external.tifffile import TiffFile
File "/usr/local/lib/python3.5/dist-packages/skimage/external/tifffile/init.py", line 1, in
from .tifffile import imsave, imread, imshow, TiffFile, TiffWriter, TiffSequence
File "/usr/local/lib/python3.5/dist-packages/skimage/external/tifffile/tifffile.py", line 293, in
from . import _tifffile
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
version of numpy 0xc = Version 1.12.x
version of numpy 0xb = Version 1.11.x

There is an error that the version of numpy is inconsistent.
So, try running the following.

$ sudo apt update;sudo apt upgrade
$ sudo apt install python3-numpy python-numpy
$ python3
>>> import numpy
>>> numpy.__version__
>>> import caffe

[Reference]
https://packages.debian.org/search?suite=stretch&section=all&arch=any&searchon=names&keywords=numpy

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
OK. Try below.

$ sudo pip3 uninstall numpy
$ python3
>>> import caffe

Or

$ sudo pip3 uninstall numpy
$ sudo pip3 install numpy
$ python3
>>> import caffe

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
You are welcome.
Do not forget to rerun "make example".
By the way, my baby is going to be born soon, so it may not be possible to respond for a while.

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

WOOOW !!!! what a great news you are telling !! good to hear that ......wish you happy family with funny baby!!!

why I run "make example"?
i do not even run "make example" initially...
I followed this link to install it ( it is yours i think and there is no make example in it...)

https://ncsforum.movidius.com/discussion/946/procedure-for-installing-ncsdk-v2-05-00-02-to-raspberrypi3-raspbian-stretch

should i do it any ways ?

I try to execute the code attached below....it is caffe model ( taken from pyimagesearch blog) but it does not run .......
i think it is not reading the caffe model......

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073

why I run "make example"?
i do not even run "make example" initially...

I'm sorry. I had a misunderstanding.
"make examples" does not need to be executed.

I try to execute the code attached below....it is caffe model ( taken from pyimagesearch blog) but it does not run .......
i think it is not reading the caffe model......

What is "pyimagesearch blog"?
Remember what you did a while ago and display an error message.
As it is, the information is so small that I do not know what is happening to me.
Please enclose the whole program in a try-except as shown below and then execute it.

try:
    (Write your main program)
except:
    import traceback
    traceback.print_exc()

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

Thank you!!!
I works now.... it was my mistake.....

from mobilenet-ssd.

PINTO0309 avatar PINTO0309 commented on June 3, 2024

@3073
"pyimagesearch blog"
I found it.
It's a very nice blog!
Thanks for the good information.
https://www.pyimagesearch.com/

Can you close the issue if the problem is settled?

from mobilenet-ssd.

3073 avatar 3073 commented on June 3, 2024

from mobilenet-ssd.

Related Issues (7)

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.