GithubHelp home page GithubHelp logo

Loading Error about chineseocr_lite HOT 7 OPEN

daybreak-u avatar daybreak-u commented on May 7, 2024
Loading Error

from chineseocr_lite.

Comments (7)

ninjarz avatar ninjarz commented on May 7, 2024 1

Still no sign of luck...

cmake output is:
find: -xtype: unknown primary or operator
c++ -o pse.so -I include -std=c++11 -O3 -I/Users/oblivion/anaconda3/include/python3.7m -I/Users/oblivion/anaconda3/include/python3.7m -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/oblivion/anaconda3/include -arch x86_64 -I/Users/oblivion/anaconda3/include -arch x86_64 -L/Users/oblivion/anaconda3/lib/python3.7/config-3.7m-darwin -lpython3.7m -ldl -framework CoreFoundation pse.cpp --shared -fPIC
pse.cpp:32:29: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for (size_t i = 0; i<h; i++)
^
pse.cpp:39:29: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for (size_t i = 0; i<h; i++)
^
pse.cpp:42:32: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for(size_t j = 0; j<w; j++)
^
3 warnings generated.
warning: (x86_64) /tmp/lto.o unable to open object file: No such file or directory

And run app.py got this error:
find: -xtype: unknown primary or operator
make: `pse.so' is up to date.
device: cpu
load models
device: cpu
load models
device: cpu
load models
device: cpu
load models
http://0.0.0.0:8080/
127.0.0.1:57911 - - [04/Mar/2020 18:55:49] "HTTP/1.1 GET /ocr" - 200 OK
zsh: segmentation fault python app.py 8080

Do not use conda, run this in you bash:
conda deactivate
and make it again

from chineseocr_lite.

DayBreak-u avatar DayBreak-u commented on May 7, 2024

try cd psenet dir to make pse moudle?

from chineseocr_lite.

fengredrum avatar fengredrum commented on May 7, 2024

I'm sorry, I'm not familiar with C++, could you explain more specifically?

from chineseocr_lite.

DayBreak-u avatar DayBreak-u commented on May 7, 2024

cd psenet/pse
rm -rf pse.so
make

from chineseocr_lite.

fengredrum avatar fengredrum commented on May 7, 2024

Still no sign of luck...

cmake output is:
find: -xtype: unknown primary or operator
c++ -o pse.so -I include -std=c++11 -O3 -I/Users/oblivion/anaconda3/include/python3.7m -I/Users/oblivion/anaconda3/include/python3.7m -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/oblivion/anaconda3/include -arch x86_64 -I/Users/oblivion/anaconda3/include -arch x86_64 -L/Users/oblivion/anaconda3/lib/python3.7/config-3.7m-darwin -lpython3.7m -ldl -framework CoreFoundation pse.cpp --shared -fPIC
pse.cpp:32:29: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for (size_t i = 0; i<h; i++)
^
pse.cpp:39:29: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for (size_t i = 0; i<h; i++)
^
pse.cpp:42:32: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for(size_t j = 0; j<w; j++)
^
3 warnings generated.
warning: (x86_64) /tmp/lto.o unable to open object file: No such file or directory

And run app.py got this error:
find: -xtype: unknown primary or operator
make: `pse.so' is up to date.
device: cpu
load models
device: cpu
load models
device: cpu
load models
device: cpu
load models
http://0.0.0.0:8080/
127.0.0.1:57911 - - [04/Mar/2020 18:55:49] "HTTP/1.1 GET /ocr" - 200 OK
zsh: segmentation fault python app.py 8080

from chineseocr_lite.

DayBreak-u avatar DayBreak-u commented on May 7, 2024

I'm sorry! I was experimenting with Linux, and I probably didn't know there were problems with Unix

from chineseocr_lite.

fengredrum avatar fengredrum commented on May 7, 2024

Still no sign of luck...
cmake output is:
find: -xtype: unknown primary or operator
c++ -o pse.so -I include -std=c++11 -O3 -I/Users/oblivion/anaconda3/include/python3.7m -I/Users/oblivion/anaconda3/include/python3.7m -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/oblivion/anaconda3/include -arch x86_64 -I/Users/oblivion/anaconda3/include -arch x86_64 -L/Users/oblivion/anaconda3/lib/python3.7/config-3.7m-darwin -lpython3.7m -ldl -framework CoreFoundation pse.cpp --shared -fPIC
pse.cpp:32:29: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for (size_t i = 0; i<h; i++)
^
pse.cpp:39:29: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for (size_t i = 0; i<h; i++)
^
pse.cpp:42:32: warning: comparison of integers of different signs: 'size_t'
(aka 'unsigned long') and 'int' [-Wsign-compare]
for(size_t j = 0; j<w; j++)
^
3 warnings generated.
warning: (x86_64) /tmp/lto.o unable to open object file: No such file or directory
And run app.py got this error:
find: -xtype: unknown primary or operator
make: `pse.so' is up to date.
device: cpu
load models
device: cpu
load models
device: cpu
load models
device: cpu
load models
http://0.0.0.0:8080/
127.0.0.1:57911 - - [04/Mar/2020 18:55:49] "HTTP/1.1 GET /ocr" - 200 OK
zsh: segmentation fault python app.py 8080

Do not use conda, run this in you bash:
conda deactivate
and make it again

Thx.
But got same error as before. But I've successful run the code in a Docker container.

from chineseocr_lite.

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.