songdejia / east Goto Github PK
View Code? Open in Web Editor NEWThis is a pytorch re-implementation of EAST: An Efficient and Accurate Scene Text Detector.
License: MIT License
This is a pytorch re-implementation of EAST: An Efficient and Accurate Scene Text Detector.
License: MIT License
classification loss is 0.01,and another is 0.Why?
希望好心人,给与解答
when i run run.sh, i met a problem.
hmean.py, line 29, in compute_hmean
recall = resDict['method']['recall']
TypeError: string indices must be integers
can somenone help me?
I know we have to take the blank between one word and another into consideration while labelling a image. If there are two separated words, how do I decide when to put the two words into one label or to label the words separately. And when it comes to a whole sentence, how should I label a image with distortions, should I split the sentence into several parts and label all the parts separately into a quadrangle? Thanks a million :)
I am running main.py. This problem 'Exception in getitem, and choose another index' is encountered during training. How can I solve it
您好!利用自己的数据集,数据格式为 x1, y1, x2, y2, x3, y3, x4, y4, "###"
训练的时候loss始终是0.01,具体如下:
EAST <==> TRAIN <==> Epoch: [0][372/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][373/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][374/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][375/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][376/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][377/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][378/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][379/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][380/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][381/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][382/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][383/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][384/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][385/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][386/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][387/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][388/430] Loss 0.0100 Avg Loss 0.0100)
EAST <==> TRAIN <==> Epoch: [0][389/430] Loss 0.0100 Avg Loss 0
HI,
I am trying to make the EAST algorithm work and I am training on ICDAR 2015 dataset. However, I am not able to find the gt.zip file and also not able to understand if it only contains the ground_truths for train/test images. Can someone throw some light on this and help me understand this?
My code breaks at the point where it says There is no gt.zip(obviously) as I dont have the zip and dont know how to make one.
Hello, I tried to train on ICDAR with your East's pytorch version, iterating nearly 8,000 epoch, but found that the effect is particularly bad. Is there any skill in training? I have tried other pytorch versions of East and found that the effect is not good. I can't find the reason until now. Can you give me some advice?
can I train only with cpu?
在utils/init.py 的第10行的classname.find('conv') 应该替换成classname.find('Conv2d')
I notice that your repository (especially data_util.py
and the lanms
library) is based on argman/EAST, which is using GPLv3 license.
GPLv3 license is NOT compatible with the MIT license you are currently using. Please change a license which is compatible with GPLv3 or replace relevant libraries in your repository to avoid any copyright issues.
Dear all,
is it possible to have the trained model?
Thank you,
Cheers
I found the code need use the gt.zip to measure the accuracy ,but i don't find the gt.zip in the link given by you ,could you please tell me how to do this?Thanks.
runfile('C:/Users/陈/Desktop/EAST-master/run_demo_server.py', wdir='C:/Users/陈/Desktop/EAST-master')
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/陈/Desktop/EAST-master/run_demo_server.py', wdir='C:/Users/陈/Desktop/EAST-master')
File "D:\huanjingdajian\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "D:\huanjingdajian\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/陈/Desktop/EAST-master/run_demo_server.py", line 226, in
main()
File "C:/Users/陈/Desktop/EAST-master/run_demo_server.py", line 223, in main
app.run('0.0.0.0', args.port)
File "D:\huanjingdajian\lib\site-packages\flask\app.py", line 938, in run
cli.show_server_banner(self.env, self.debug, self.name, False)
File "D:\huanjingdajian\lib\site-packages\flask\cli.py", line 629, in show_server_banner
click.echo(message)
File "D:\huanjingdajian\lib\site-packages\click\utils.py", line 259, in echo
file.write(message)
UnsupportedOperation: not writable
How do you modify the geometry map generation for QUAD part of the paper? what does it mean by the statement "For the QUAD ground truth, the value of each pixel with positive score in the 8-channel geometry map is its coordinate shift from the 4 vertices of the quadrangle" I would like to know all the modification needed to be made in the code for implementing for QUAD part. How to modify the geometry map generation for QUAD method ? @songdejia
After the pre-trained, I want to train the model on my own datasets, and I prepared my training set according to the requirements in the README. But when I run the run.py , problems occured:
EAST <==> Prepare <==> Network <==> Done
Exception continue
Exception in getitem, and choose another index:133
Exception continue
So how could I solve this problem? Thank you.
How can i predict one image, and can you provide the trained model like the version of tensorflow ?
Could you please tell me what python version you use in this repo?
删除.pyc文件之后在python3.7上运行还是一样的错误,是只能是python3.0吗
我想多GPU同时训练,该怎么修改代码?
from keras.utils import multi_gpu_model
parallel_model = multi_gpu_model(east_network, gpus=4
加入这兩行代码,發現報錯,謝謝
Have you met the problem when type sh run.sh as following:
dynamic module does not define module export function (PyInit_gen_geo_map)?
您好,请问有与训练模型可以pretrainde吗?谢谢
the detail about the error is :Traceback (most recent call last):
File "/home/user/east/EAST-pytorch/main.py", line 11, in
from data_utils import custom_dset, collate_fn
File "/home/user/east/EAST-pytorch/data_utils.py", line 18, in
from geo_map_cython_lib import gen_geo_map
i search a lot , but not solved this error,so how to solve the error to run the code correctly?thanks..
g++: error: unrecognized command line option ‘-fno-plt’
Makefile:10: recipe for target 'adaptor.so' failed
make: *** [adaptor.so] Error 1
Hi, great repo !
It would be very helpful if a pretrained model will be provided along with the code, when such model will be available ?
Thanks in advance,
Arseny
请问data_util.py文件中的label生成函数中,background_ratio = 3./8这个概率是怎么来的?paper中没有关于这个的描述~
Hi,
The F-Score output by the EAST model is of the shape (W/4, H/4) where W and H are width and height of the input image respectively. Shouldn't the F-Score be a per pixel score, and so shouldn't its dimension be (W, H) instead?
(I know this repo works so perhaps there is a big gap in my understanding of the code. Kindly help.)
Thanks
l have download your code,then change the dataset path,but i couldn't find where is run.py In your readme.md, you have noticed as fllows:
If you want to train the model, you should provide the dataset path in config.py and run
sh run.py
Hi @songdejia, thanks for trying to port EAST from tensorflow. But while trying to train this model on COCO 2014 or Oxford syn text, I get nan during training. Any ideas?
Please see below training Log:
Cross point does not exist
point dist to line raise Exception
point dist to line raise Exception
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
point dist to line raise Exception
point dist to line raise Exception
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
point dist to line raise Exception
point dist to line raise Exception
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
point dist to line raise Exception
point dist to line raise Exception
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
Cross point does not exist
Exception continue
Exception in getitem, and choose another index:4393
EAST <==> TRAIN <==> Epoch: [0][1/227] Loss 0.0231 Avg Loss 0.0250)
EAST <==> TRAIN <==> Epoch: [0][2/227] Loss 0.0282 Avg Loss 0.0260)
EAST <==> TRAIN <==> Epoch: [0][3/227] Loss 0.0313 Avg Loss 0.0273)
EAST <==> TRAIN <==> Epoch: [0][4/227] Loss 0.0271 Avg Loss 0.0273)
EAST <==> TRAIN <==> Epoch: [0][5/227] Loss 0.0206 Avg Loss 0.0262)
EAST <==> TRAIN <==> Epoch: [0][6/227] Loss 0.0300 Avg Loss 0.0267)
EAST <==> TRAIN <==> Epoch: [0][7/227] Loss 0.0239 Avg Loss 0.0264)
EAST <==> TRAIN <==> Epoch: [0][8/227] Loss 0.0271 Avg Loss 0.0265)
EAST <==> TRAIN <==> Epoch: [0][9/227] Loss 0.0284 Avg Loss 0.0266)
EAST <==> TRAIN <==> Epoch: [0][10/227] Loss 0.0197 Avg Loss 0.0260)
EAST <==> TRAIN <==> Epoch: [0][11/227] Loss nan Avg Loss nan)
EAST <==> TRAIN <==> Epoch: [0][12/227] Loss nan Avg Loss nan)
when i deleted the .pyc file
and try to run the code
it came up
ImportError: dlopen(//EAST-master/geo_map_cython_lib/gen_geo_map.so, 2): no suitable image found. Did find:
//EAST-master/geo_map_cython_lib/gen_geo_map.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
how can i solve this
Hi bro,I read the code of yours and the src tf version,and I use your code to train but found can get 0.4 hmean on ic2015 test dataset,and I found that in your implemention,the network lacks L2 regularzation while the tf version has a 1e-5 L2 loss in the total loss.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.