argman / EAST

A tensorflow implementation of EAST text detector
GNU General Public License v3.0
3.02k stars 1.05k forks source link

Problem with run in Windows: No such file or directory: '/proc/cpuinfo' #184

Closed zqm840527 closed 6 years ago

zqm840527 commented 6 years ago

I am using windows 7, so I followed https://github.com/argman/EAST/issues/120 to make it run in windows.

But when I run the demo server, a problem occurred "FileNotFoundError: [Errno 2] No such file or directory: '/proc/cpuinfo'"

And I googled it and found "/proc/cpuinfo" is only for Linux or Linux-like systems, so when using windows, the mentioned problem will show up.

Could anyone help me to solve that? Thank you.

@argman @zxytim @ZhuMingmin9123

In browser: Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.


(base) C:\Users\zqm>cd/

(base) C:>e:

(base) E:>cd E:\EAST_ICPR-master

(base) E:\EAST_ICPR-master>python run_demo_server.py --checkpoint_path=E:\EAST_I CPR-master/tmp/east_icdar2015_resnet_v1_50_rbox/

harshthaker commented 6 years ago

I am not sure if it is because of it being a linux call. I am using Mac and I received the same error. But to make it work, I just commented out the following line which is get_host_info() function call in run_demo_server.py file. It works for me. line 136

ret.update(get_host_info())

zqm840527 commented 6 years ago

@harshthaker

Wonderful! It works for me as well, many thanks!