-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ctpn跑了两天 终于跑通代码了,太难了,把跑代码过程遇到问题都给整合,希望能帮到大家 #94
Comments
感谢,请问你有infer吗?make顺利吗?我看到了你MAKE的指南,请问easy这个文件夹在哪里?你指的是east文件夹吗?但是我没有找到setup.py这个文件,能够再详细分享一下吗 |
|
您好,方便加个微信请教一下吗 |
@Yaoxingtian @ @CHENGHUIYI @maggie-c1523 @CHENG-EMMA1 |
训练出现这种错误怎么办?大佬求教 |
可以加微信交流一下吗? 我训练CTPN的时候正样本的loss始终下不去,或者您能否开源您的数据集&CTPN源代码 我自己训练看看 |
你好,方便给我QQ号码吗?我加你,打包给你吧。 |
|
我也好久没跑深度学习了,感觉有点记不清啦
***@***.***
发件人: leahyyy
发送时间: 2021-09-22 20:53
收件人: AstarLight/Lets_OCR
抄送: 2291754463; Comment
主题: Re: [AstarLight/Lets_OCR] ctpn跑了两天 终于跑通代码了,太难了,把跑代码过程遇到问题都给整合,希望能帮到大家 (#94)
您好,方便加个微信请教一下吗
请问这个环境配置是什么样的,我好像一直有问题。
还有这个make 的时候报错 build//.so ./ 没有这个文件
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
make.sh的复制路径少写了一层星号 所以没找到.os |
加油!
***@***.***
发件人: leahyyy
发送时间: 2021-09-22 21:26
收件人: AstarLight/Lets_OCR
抄送: 2291754463; Comment
主题: Re: [AstarLight/Lets_OCR] ctpn跑了两天 终于跑通代码了,太难了,把跑代码过程遇到问题都给整合,希望能帮到大家 (#94)
make.sh的复制路径少写了一层星号 所以没找到.os
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
你好 请问可以打包发我一份么,我在训练时时也遇到了各种不顺 |
您好,这个您复现成功了吗 |
说一下我最近又配置成功: 啊 配置环境真的好难 |
这是最近的配置成功s的 |
一、在运行CTPN之前,可以发现其实作者ctpn文件夹中缺失了一些文件
但是在easy中其实有类似的文件,所以把easy中的make.sh、setup.py、nms.pyx 复制到ctpn/lib文件下
二、运行test之前,应该把cd到ctpn/lib中。运行以下代码生成.so文件
sudo chmod +x make.sh
./make.sh
三、可以使用两种模式进行test:
①直接运行test.sh。使用命令sh test.sh来启动文本检测。
②“ python infer.py random cpu”意味着我们将在file中提供的特定目录路径中推断出一批图片。
“ python infer.py your_pic_path cpu”表示我们将仅使用cpu根据您的图片路径推断一张图片。
test.py运行时,报错
①如果出现头文件错误,可能是你当前运行代码的路径没办法搜索到对于的头文件
例如:dataset_handler.py中No module named 'draw_image'
将import draw_image 改为import lib.draw_image
②运行test.py时候,会出现没有lib.nms.cpu_nms
只需要把脚本文件中的lib.nms.cpu_nms改成lib.nms.nms就可以运行了
train.py运行时,报错
① No module named 'ConfigParser'
可能是因为python更新迭代,目前python下的包是小写的,所以改成import configparser即可,同理74行也要改configparser.ConfigParser()
② File "train.py", line 118, in
os.mkdir(MODEL_SAVE_PATH)
这个问题是路径问题,路径下没有model文件夹,所以需要自己创建
同理,train.py 22 23 25行,路径问题都需要修改成你的本地文件夹
③ File "/home/others/storage/xiaoyi/Lets_OCR-master/detector/ctpn/lib/generate_gt_anchor.py", line 45
SyntaxError: Non-ASCII character '\xe5' in file /home/others/storage/xiaoyi/Lets_OCR-master/detector/ctpn/lib/generate_gt_anchor.py on line 45, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
这个问题是因为没有中文utf-8头文件。在generate_gt_anchor.py的最前面加入
#!/usr/bin/python # -- coding: UTF-8 --
④ No module named lmdb
解决:conda install -c conda-forge python-lmdb
⑤try 部分出现error
原因:generate_gt_anchor.py中的draw_image 全部改成 lib.draw_image
tag_anchor.py中 68行'cal_IoU' 改成 'cal_IoU2'
create_config_file.py中 import ConFigparser 改成 import configparser
The text was updated successfully, but these errors were encountered: