Coder Social home page Coder Social logo

Comments (16)

shayuan avatar shayuan commented on September 24, 2024 1

@khalilo Sorry, I'm a fresh hand in Caffe yet. My problem was caused by the version of the program. Maybe your problem is in environment dependencies? Have you met some warinings or erros when building caffe or pycaffe?

from textboxes.

MhLiao avatar MhLiao commented on September 24, 2024

@shayuan You may use the wrong caffe root

from textboxes.

guddulrk avatar guddulrk commented on September 24, 2024

Hi MhLiao,

I am trying to replicate your results and want to run this application on Windows 7 64 bit, with Python 3.5. When I am running test_icdar13.py, I am getting caffe errors. Could you please help me how can I run this application on windows?
Thanks.

from textboxes.

MhLiao avatar MhLiao commented on September 24, 2024

@guddulrk What's your problem? I am wondering that my help may be limited because I never run such codes on Windows.

from textboxes.

guddulrk avatar guddulrk commented on September 24, 2024

Thanks MhLiao for your reply. I am getting following error.

from ._caffe import Net, SGDSolver

ImportError: DLL load failed: The specified module could not be found.

from textboxes.

shayuan avatar shayuan commented on September 24, 2024

@MhLiao thank you. I have solved my issue. Finally I found my mistake is that the downloaded zip files I used are not as the same as those from git cloned. Thank you anyway.

from textboxes.

yingning avatar yingning commented on September 24, 2024

@shayuan , I have the same error ,but I can't get your meanings from your answer above.Can you give me a hand? The following is my error:
ARNING: Logging before InitGoogleLogging() is written to STDERR
W0601 23:25:07.610895 6788 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface
W0601 23:25:07.610927 6788 _caffe.cpp:123] Use this instead (with the named "weights" parameter):
W0601 23:25:07.610942 6788 _caffe.cpp:125] Net('/home/jsj/TextBoxes/examples/TextBoxes/deploy.prototxt', 1, weights='/home/jsj/TextBoxes/examples/TextBoxes/TextBoxes_icdar13.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 758:14: Message type "caffe.LayerParameter" has no field named "norm_param".
F0601 23:25:07.612809 6788 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/jsj/TextBoxes/examples/TextBoxes/deploy.prototxt
*** Check failure stack trace: ***
已放弃 (核心已转储)

from textboxes.

shayuan avatar shayuan commented on September 24, 2024

@yingning Be sure that your program is downloaded by using 'git clone ......' rather than uncompressing the zip file from the wibsite. My first try was stuck here, hope that will help you.

from textboxes.

khalilo avatar khalilo commented on September 24, 2024

I'm sure that my program is downloaded by using 'git clone ...' but the same error is displayed again :

WARNING: Logging before InitGoogleLogging() is written to STDERR
W0607 14:24:41.039604 12278 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0607 14:24:41.039634 12278 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0607 14:24:41.039640 12278 _caffe.cpp:142] Net('/home/khalil/.local/install/caffe/TextBoxes/examples/TextBoxes/deploy.prototxt', 1, weights='/home/khalil/.local/install/caffe/TextBoxes/examples/TextBoxes/TextBoxes_icdar13.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 758:14: Message type "caffe.LayerParameter" has no field named "norm_param".
F0607 14:24:41.040966 12278 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/khalil/.local/install/caffe/TextBoxes/examples/TextBoxes/deploy.prototxt
*** Check failure stack trace: ***
Abandon (core dumped)

How can I resolve this issue?
Thanks.

from textboxes.

yingning avatar yingning commented on September 24, 2024

@shayuan ,I followed your advice that gitting clone the code ,and then adjust the path in test_icdar13.py .But I was not lucky for I was stucked in the same error.Thank you all the same!

from textboxes.

shayuan avatar shayuan commented on September 24, 2024

@yingning Adjusting the path in test_icdar13.py may be not enough, be sure that you have changed the caffe root into the python root, if not the caffe module you imported in python is the old version.

from textboxes.

khalilo avatar khalilo commented on September 24, 2024

@shayuan No, I have to install the dependencies and run make pycaffe and I have not received any errors.
Which version of program you use it ?

from textboxes.

khalilo avatar khalilo commented on September 24, 2024

@shayuan And for make -j8, make py commands, it shows me Make: nothing to do "all" Make: nothing to do for "py", that's normal ?

from textboxes.

khalilo avatar khalilo commented on September 24, 2024

@shayuan It's good I solve the problem.
The problem is that I write the caffe path install in the system not the caffe project path TextBoxes.
But, I have another problem in path save_dir

File "test_icdar13.py", line 48, in
detection_result=open(save_detection_path,'wt')
IOError: [Errno 2] No such file or directory: '/media/khalil/3da753f7-bd2c-43d5-a1e2-485bd5667bcf/khalil/Documents/Project/VGG-caffe/TextBoxes/python/data/TextBoxes/test_bb/res_img_4.txt'

from textboxes.

khalilo avatar khalilo commented on September 24, 2024

It's good I solve the problem 👍

from textboxes.

yingning avatar yingning commented on September 24, 2024

@khalilo ,Could you mind telling me how to solve your problems mentioned above? Can you share your test_icdar13.py ?I stucked here for a long time.Thank you in advance!

from textboxes.

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.