CHINESE-OCR icon indicating copy to clipboard operation
CHINESE-OCR copied to clipboard

bbox.py中代码错误,是什么问题~

Open 15737939656 opened this issue 5 years ago • 28 comments

import numpy as np cimport numpy as np

DTYPE = np.float ctypedef np.float_t DTYPE_t

15737939656 avatar Jul 09 '19 03:07 15737939656

您好,请问您这个问题解决了吗?我也报错cimport 代码错误

wunanjing avatar Jul 09 '19 09:07 wunanjing

你好,解决了吗,我也是这个问题

edwardelric1202 avatar Jul 26 '19 13:07 edwardelric1202

您好,主要是Python文件编译为了Cpython文件, 可以按照.cpy文件,新建补写.py就好了~

15737939656 avatar Jul 29 '19 06:07 15737939656

您好。我在win10上python跑的,也是bbox.py中代码错误。然后没办法import bbox中的函数。请问是跟win10+CPU运行环境有关吗

xiaopinge avatar Aug 20 '19 04:08 xiaopinge

您好,主要是Python文件编译为了Cpython文件, 可以按照.cpy文件,新建补写.py就好了~

请问具体是如何解决的呢?方便分享一下吗?感谢

ChiChen001 avatar Oct 13 '19 11:10 ChiChen001

你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决

VegetableOrange avatar Nov 12 '19 06:11 VegetableOrange

原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"[email protected] 发送时间: 2019年11月12日(星期二) 下午2:18 收件人: "xiaofengShi/CHINESE-OCR"[email protected]; 抄送: "724076722"[email protected];"Comment"[email protected]; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ChiChen001 avatar Nov 12 '19 06:11 ChiChen001

请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月12日(星期二) 下午2:23 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"<[email protected]> 发送时间: 2019年11月12日(星期二) 下午2:18 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "724076722"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决

&mdash; You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 12 '19 06:11 VegetableOrange

可以换个程序看,这个是我换过后用的 https://github.com/GlassyWing/text-detection-ocr

------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"<[email protected]>; 发送时间: 2019年11月12日(星期二) 下午2:27 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "李勇"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"724076722"<[email protected]&gt;; 发送时间:&nbsp;2019年11月12日(星期二) 下午2:23 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"谈春梅"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮件 ------------------
发件人: "VegetableOrange"<[email protected]&gt;
发送时间: 2019年11月12日(星期二) 下午2:18
收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&gt;;
抄送: "724076722"<[email protected]&gt;;"Comment"<[email protected]&gt;;
主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决

&amp;mdash;
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ChiChen001 avatar Nov 12 '19 06:11 ChiChen001

好的,感谢~我现在就试一试

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月12日(星期二) 下午2:33 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

可以换个程序看,这个是我换过后用的 https://github.com/GlassyWing/text-detection-ocr

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"VegetableOrange"<[email protected]&gt;; 发送时间:&nbsp;2019年11月12日(星期二) 下午2:27 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"李勇"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期二) 下午2:23
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮件 ------------------
发件人: "VegetableOrange"<[email protected]&amp;gt;
发送时间: 2019年11月12日(星期二) 下午2:18
收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送: "724076722"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决

&amp;amp;mdash;
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 12 '19 06:11 VegetableOrange

请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月12日(星期二) 下午2:33 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

可以换个程序看,这个是我换过后用的 https://github.com/GlassyWing/text-detection-ocr

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"VegetableOrange"<[email protected]&gt;; 发送时间:&nbsp;2019年11月12日(星期二) 下午2:27 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"李勇"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期二) 下午2:23
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮件 ------------------
发件人: "VegetableOrange"<[email protected]&amp;gt;
发送时间: 2019年11月12日(星期二) 下午2:18
收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送: "724076722"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决

&amp;amp;mdash;
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 12 '19 10:11 VegetableOrange

都可以的,只是CPU会比较慢。 这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉

------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"<[email protected]>; 发送时间: 2019年11月12日(星期二) 晚上6:42 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "李勇"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"724076722"<[email protected]&gt;; 发送时间:&nbsp;2019年11月12日(星期二) 下午2:33 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"谈春梅"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

可以换个程序看,这个是我换过后用的
https://github.com/GlassyWing/text-detection-ocr

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"VegetableOrange"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期二) 下午2:27
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"李勇"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗

------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------
发件人:&amp;amp;nbsp;"724076722"<[email protected]&amp;amp;gt;;
发送时间:&amp;amp;nbsp;2019年11月12日(星期二) 下午2:23
收件人:&amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;gt;;
抄送:&amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;gt;;"Comment"<[email protected]&amp;amp;gt;;
主题:&amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮件 ------------------
发件人: "VegetableOrange"<[email protected]&amp;amp;gt;
发送时间: 2019年11月12日(星期二) 下午2:18
收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;gt;;
抄送: "724076722"<[email protected]&amp;amp;gt;;"Comment"<[email protected]&amp;amp;gt;;
主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决    
     
&amp;amp;amp;amp;mdash;    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ChiChen001 avatar Nov 12 '19 10:11 ChiChen001

好的,我继续尝试,谢谢~

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月12日(星期二) 晚上6:48 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

都可以的,只是CPU会比较慢。 这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"VegetableOrange"<[email protected]&gt;; 发送时间:&nbsp;2019年11月12日(星期二) 晚上6:42 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"李勇"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期二) 下午2:33
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

可以换个程序看,这个是我换过后用的
https://github.com/GlassyWing/text-detection-ocr

------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------
发件人:&amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;gt;;
发送时间:&amp;amp;nbsp;2019年11月12日(星期二) 下午2:27
收件人:&amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;gt;;
抄送:&amp;amp;nbsp;"李勇"<[email protected]&amp;amp;gt;;"Comment"<[email protected]&amp;amp;gt;;
主题:&amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗

------------------&amp;amp;amp;amp;nbsp;原始邮件&amp;amp;amp;amp;nbsp;------------------    
发件人:&amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期二) 下午2:23    
收件人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;    
抄送:&amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;    
主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮件 ------------------     
 发件人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;gt;     
 发送时间: 2019年11月12日(星期二) 下午2:18     
 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送: "724076722"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决     
       
 &amp;amp;amp;amp;amp;mdash;     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 12 '19 14:11 VegetableOrange

你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文件位置;3、训练文件位置;4、测试文件位置。 中的训练图像位置与训练文件位置是什么呀,我有点不理解

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月12日(星期二) 晚上6:48 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

都可以的,只是CPU会比较慢。 这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"VegetableOrange"<[email protected]&gt;; 发送时间:&nbsp;2019年11月12日(星期二) 晚上6:42 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"李勇"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期二) 下午2:33
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

可以换个程序看,这个是我换过后用的
https://github.com/GlassyWing/text-detection-ocr

------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------
发件人:&amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;gt;;
发送时间:&amp;amp;nbsp;2019年11月12日(星期二) 下午2:27
收件人:&amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;gt;;
抄送:&amp;amp;nbsp;"李勇"<[email protected]&amp;amp;gt;;"Comment"<[email protected]&amp;amp;gt;;
主题:&amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗

------------------&amp;amp;amp;amp;nbsp;原始邮件&amp;amp;amp;amp;nbsp;------------------    
发件人:&amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期二) 下午2:23    
收件人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;    
抄送:&amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;    
主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮件 ------------------     
 发件人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;gt;     
 发送时间: 2019年11月12日(星期二) 下午2:18     
 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送: "724076722"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决     
       
 &amp;amp;amp;amp;amp;mdash;     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 13 '19 02:11 VegetableOrange

训练图像位置是放训练集的,训练文件位置是放预训练的权重,这个是可以用来按实际需要进行迁移学习。在预训练权重基础上用自己的数据集来再次训练------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"[email protected] 发送时间: 2019年11月13日(星期三) 上午10:53 收件人: "xiaofengShi/CHINESE-OCR"[email protected]; 抄送: "724076722"[email protected];"Comment"[email protected]; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文件位置;3、训练文件位置;4、测试文件位置。 中的训练图像位置与训练文件位置是什么呀,我有点不理解

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月12日(星期二) 晚上6:48 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

都可以的,只是CPU会比较慢。
这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉

------------------&nbsp;原始邮件&nbsp;------------------
发件人:&nbsp;"VegetableOrange"<[email protected]&gt;;
发送时间:&nbsp;2019年11月12日(星期二) 晚上6:42
收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;;
抄送:&nbsp;"李勇"<[email protected]&gt;;"Comment"<[email protected]&gt;;
主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期二) 下午2:33
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

可以换个程序看,这个是我换过后用的
https://github.com/GlassyWing/text-detection-ocr

------------------&amp;amp;amp;nbsp;原始邮&#x4EF6;&amp;amp;amp;nbsp;------------------    
发&#x4EF6;人:&amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;nbsp;2019年11月12日(星期&#x4E8C;) 下午2:27    
收&#x4EF6;人:&amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;gt;;    
抄送:&amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;gt;;    
主题:&amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗     
     
     
 ------------------&amp;amp;amp;amp;nbsp;原始邮&#x4EF6;&amp;amp;amp;amp;nbsp;------------------     
 发&#x4EF6;人:&amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;gt;;     
 发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期&#x4E8C;) 下午2:23     
 收&#x4EF6;人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送:&amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮&#x4EF6; ------------------      
  发&#x4EF6;人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;gt;      
  发送时间: 2019年11月12日(星期&#x4E8C;) 下午2:18      
  收&#x4EF6;人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;      
  抄送: "724076722"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;      
  主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)      
       
       
       
  你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决      
         
  &amp;amp;amp;amp;amp;mdash;      
  You are receiving this because you commented.      
  Reply to this email directly, view it on GitHub, or unsubscribe.      
 —     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ChiChen001 avatar Nov 13 '19 03:11 ChiChen001

好的,我试一下。谢谢~

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月13日(星期三) 中午11:46 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

训练图像位置是放训练集的,训练文件位置是放预训练的权重,这个是可以用来按实际需要进行迁移学习。在预训练权重基础上用自己的数据集来再次训练------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"<[email protected]> 发送时间: 2019年11月13日(星期三) 上午10:53 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "724076722"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文&#x4EF6;位置;3、训练文&#x4EF6;位置;4、测试文&#x4EF6;位置。
中的训练图像位置与训练文&#x4EF6;位置是什么呀,我有点不理解

------------------&nbsp;原始邮&#x4EF6;&nbsp;------------------
发&#x4EF6;人:&nbsp;"724076722"<[email protected]&gt;;
发送时间:&nbsp;2019年11月12日(星期&#x4E8C;) 晚上6:48
收&#x4EF6;人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;;
抄送:&nbsp;"谈春梅"<[email protected]&gt;;"Comment"<[email protected]&gt;;
主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

都可以的,只是CPU会比较慢。
这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉

------------------&amp;nbsp;原始邮&#x4EF6;&amp;nbsp;------------------
发&#x4EF6;人:&amp;nbsp;"VegetableOrange"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期&#x4E8C;) 晚上6:42
收&#x4EF6;人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"李勇"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。

------------------&amp;amp;amp;nbsp;原始邮&amp;#x4EF6;&amp;amp;amp;nbsp;------------------    
发&amp;#x4EF6;人:&amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;nbsp;2019年11月12日(星期&amp;#x4E8C;) 下午2:33    
收&amp;#x4EF6;人:&amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;gt;;    
抄送:&amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;gt;;    
主题:&amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
可以换个程序看,这个是我换过后用的     
 https://github.com/GlassyWing/text-detection-ocr     
     
     
 ------------------&amp;amp;amp;amp;nbsp;原始邮&amp;#x4EF6;&amp;amp;amp;amp;nbsp;------------------     
 发&amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;gt;;     
 发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;#x4E8C;) 下午2:27     
 收&amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送:&amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗      
       
       
  ------------------&amp;amp;amp;amp;amp;nbsp;原始邮&amp;#x4EF6;&amp;amp;amp;amp;amp;nbsp;------------------      
  发&amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  发送时间:&amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;#x4E8C;) 下午2:23      
  收&amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  抄送:&amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  主题:&amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)      
       
       
       
  原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮&amp;#x4EF6; ------------------       
   发&amp;#x4EF6;人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;gt;       
   发送时间: 2019年11月12日(星期&amp;#x4E8C;) 下午2:18       
   收&amp;#x4EF6;人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;       
   抄送: "724076722"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;       
   主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)       
         
         
         
   你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决       
           
   &amp;amp;amp;amp;amp;amp;mdash;       
   You are receiving this because you commented.       
   Reply to this email directly, view it on GitHub, or unsubscribe.       
  —      
  You are receiving this because you commented.      
  Reply to this email directly, view it on GitHub, or unsubscribe.      
 —     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
&mdash; You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 13 '19 03:11 VegetableOrange

你好,我发现您的源代码里的训练文件是txt格式的,我下载了您链接里的数据集,data_train. txt 文件中的格式是图片的名字后面加一串数字,请问数字的含义是图片的文字在字典文件里的位置吗? 我使用labelimg标注的文件,每个标注的图像会生成一个.xml文件,可以用这些文件名组成的txt文件作为训练文件吗(我发现源代码里已经加载过预训练权重了) (我在附件图里标注了源代码截图)

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月13日(星期三) 中午11:46 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

训练图像位置是放训练集的,训练文件位置是放预训练的权重,这个是可以用来按实际需要进行迁移学习。在预训练权重基础上用自己的数据集来再次训练------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"<[email protected]> 发送时间: 2019年11月13日(星期三) 上午10:53 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "724076722"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文&#x4EF6;位置;3、训练文&#x4EF6;位置;4、测试文&#x4EF6;位置。
中的训练图像位置与训练文&#x4EF6;位置是什么呀,我有点不理解

------------------&nbsp;原始邮&#x4EF6;&nbsp;------------------
发&#x4EF6;人:&nbsp;"724076722"<[email protected]&gt;;
发送时间:&nbsp;2019年11月12日(星期&#x4E8C;) 晚上6:48
收&#x4EF6;人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;;
抄送:&nbsp;"谈春梅"<[email protected]&gt;;"Comment"<[email protected]&gt;;
主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

都可以的,只是CPU会比较慢。
这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉

------------------&amp;nbsp;原始邮&#x4EF6;&amp;nbsp;------------------
发&#x4EF6;人:&amp;nbsp;"VegetableOrange"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期&#x4E8C;) 晚上6:42
收&#x4EF6;人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"李勇"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。

------------------&amp;amp;amp;nbsp;原始邮&amp;#x4EF6;&amp;amp;amp;nbsp;------------------    
发&amp;#x4EF6;人:&amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;nbsp;2019年11月12日(星期&amp;#x4E8C;) 下午2:33    
收&amp;#x4EF6;人:&amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;gt;;    
抄送:&amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;gt;;    
主题:&amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
可以换个程序看,这个是我换过后用的     
 https://github.com/GlassyWing/text-detection-ocr     
     
     
 ------------------&amp;amp;amp;amp;nbsp;原始邮&amp;#x4EF6;&amp;amp;amp;amp;nbsp;------------------     
 发&amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;gt;;     
 发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;#x4E8C;) 下午2:27     
 收&amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送:&amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗      
       
       
  ------------------&amp;amp;amp;amp;amp;nbsp;原始邮&amp;#x4EF6;&amp;amp;amp;amp;amp;nbsp;------------------      
  发&amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  发送时间:&amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;#x4E8C;) 下午2:23      
  收&amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  抄送:&amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  主题:&amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)      
       
       
       
  原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮&amp;#x4EF6; ------------------       
   发&amp;#x4EF6;人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;gt;       
   发送时间: 2019年11月12日(星期&amp;#x4E8C;) 下午2:18       
   收&amp;#x4EF6;人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;       
   抄送: "724076722"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;       
   主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)       
         
         
         
   你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决       
           
   &amp;amp;amp;amp;amp;amp;mdash;       
   You are receiving this because you commented.       
   Reply to this email directly, view it on GitHub, or unsubscribe.       
  —      
  You are receiving this because you commented.      
  Reply to this email directly, view it on GitHub, or unsubscribe.      
 —     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
&mdash; You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 13 '19 05:11 VegetableOrange

如果是在训练CTPN那么数字是字符的bbox信息,如果在训练识别那么就是在字典里的索引,那么就需要字符和字典的文字对应。 在做识别的数据集时,可以考虑用https://github.com/Sanster/text_renderer,这个是专门做文字识别数据集的。

------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"<[email protected]>; 发送时间: 2019年11月13日(星期三) 中午1:26 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "李勇"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我发现您的源代码里的训练文件是txt格式的,我下载了您链接里的数据集,data_train. txt 文件中的格式是图片的名字后面加一串数字,请问数字的含义是图片的文字在字典文件里的位置吗? 我使用labelimg标注的文件,每个标注的图像会生成一个.xml文件,可以用这些文件名组成的txt文件作为训练文件吗(我发现源代码里已经加载过预训练权重了) (我在附件图里标注了源代码截图)

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"724076722"<[email protected]&gt;; 发送时间:&nbsp;2019年11月13日(星期三) 中午11:46 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"谈春梅"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

训练图像位置是放训练集的,训练文件位置是放预训练的权重,这个是可以用来按实际需要进行迁移学习。在预训练权重基础上用自己的数据集来再次训练------------------ 原始邮件 ------------------
发件人: "VegetableOrange"<[email protected]&gt;
发送时间: 2019年11月13日(星期三) 上午10:53
收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&gt;;
抄送: "724076722"<[email protected]&gt;;"Comment"<[email protected]&gt;;
主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文&amp;#x4EF6;位置;3、训练文&amp;#x4EF6;位置;4、测试文&amp;#x4EF6;位置。
中的训练图像位置与训练文&amp;#x4EF6;位置是什么呀,我有点不理解

------------------&amp;nbsp;原始邮&amp;#x4EF6;&amp;nbsp;------------------
发&amp;#x4EF6;人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月12日(星期&amp;#x4E8C;) 晚上6:48
收&amp;#x4EF6;人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

都可以的,只是CPU会比较慢。
这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉

------------------&amp;amp;amp;nbsp;原始邮&amp;amp;#x4EF6;&amp;amp;amp;nbsp;------------------    
发&amp;amp;#x4EF6;人:&amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;#x4E8C;) 晚上6:42    
收&amp;amp;#x4EF6;人:&amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;gt;;    
抄送:&amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;gt;;    
主题:&amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。     
     
     
     
     
 ------------------&amp;amp;amp;amp;nbsp;原始邮&amp;amp;#x4EF6;&amp;amp;amp;amp;nbsp;------------------     
 发&amp;amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;gt;;     
 发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;#x4E8C;) 下午2:33     
 收&amp;amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送:&amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 可以换个程序看,这个是我换过后用的      
  https://github.com/GlassyWing/text-detection-ocr      
       
       
  ------------------&amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;#x4EF6;&amp;amp;amp;amp;amp;nbsp;------------------      
  发&amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  发送时间:&amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;#x4E8C;) 下午2:27      
  收&amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  抄送:&amp;amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  主题:&amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)      
       
       
       
  请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗       
         
         
   ------------------&amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;nbsp;------------------       
   发&amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   发送时间:&amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;#x4E8C;) 下午2:23       
   收&amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   抄送:&amp;amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   主题:&amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)       
         
         
         
   原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮&amp;amp;#x4EF6; ------------------        
    发&amp;amp;#x4EF6;人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;gt;        
    发送时间: 2019年11月12日(星期&amp;amp;#x4E8C;) 下午2:18        
    收&amp;amp;#x4EF6;人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;        
    抄送: "724076722"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;        
    主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)        
           
           
           
    你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决        
             
    &amp;amp;amp;amp;amp;amp;amp;mdash;        
    You are receiving this because you commented.        
    Reply to this email directly, view it on GitHub, or unsubscribe.        
   —       
   You are receiving this because you commented.       
   Reply to this email directly, view it on GitHub, or unsubscribe.       
  —      
  You are receiving this because you commented.      
  Reply to this email directly, view it on GitHub, or unsubscribe.      
 —     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
&amp;mdash;
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ChiChen001 avatar Nov 13 '19 05:11 ChiChen001

好的,明白了

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月13日(星期三) 中午1:43 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

如果是在训练CTPN那么数字是字符的bbox信息,如果在训练识别那么就是在字典里的索引,那么就需要字符和字典的文字对应。 在做识别的数据集时,可以考虑用https://github.com/Sanster/text_renderer,这个是专门做文字识别数据集的。

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"VegetableOrange"<[email protected]&gt;; 发送时间:&nbsp;2019年11月13日(星期三) 中午1:26 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"李勇"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我发现您的源代码里的训练文件是txt格式的,我下载了您链接里的数据集,data_train.
txt 文件中的格式是图片的名字后面加一串数字,请问数字的含义是图片的文字在字典文件里的位置吗?
我使用labelimg标注的文件,每个标注的图像会生成一个.xml文件,可以用这些文件名组成的txt文件作为训练文件吗(我发现源代码里已经加载过预训练权重了)
(我在附件图里标注了源代码截图)

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月13日(星期三) 中午11:46
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

训练图像位置是放训练集的,训练文件位置是放预训练的权重,这个是可以用来按实际需要进行迁移学习。在预训练权重基础上用自己的数据集来再次训练------------------ 原始邮件 ------------------
发件人: "VegetableOrange"<[email protected]&amp;gt;
发送时间: 2019年11月13日(星期三) 上午10:53
收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送: "724076722"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文&amp;amp;#x4EF6;位置;3、训练文&amp;amp;#x4EF6;位置;4、测试文&amp;amp;#x4EF6;位置。
中的训练图像位置与训练文&amp;amp;#x4EF6;位置是什么呀,我有点不理解

------------------&amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;nbsp;------------------    
发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 晚上6:48    
收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;gt;;    
抄送:&amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;gt;;    
主题:&amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
都可以的,只是CPU会比较慢。     
 这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉     
     
     
     
     
 ------------------&amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;amp;nbsp;------------------     
 发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;gt;;     
 发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 晚上6:42     
 收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送:&amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。      
       
       
       
       
  ------------------&amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;nbsp;------------------      
  发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  发送时间:&amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 下午2:33      
  收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  抄送:&amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  主题:&amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)      
       
       
       
  可以换个程序看,这个是我换过后用的       
   https://github.com/GlassyWing/text-detection-ocr       
         
         
   ------------------&amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;nbsp;------------------       
   发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   发送时间:&amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 下午2:27       
   收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   抄送:&amp;amp;amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   主题:&amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)       
         
         
         
   请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗        
           
           
    ------------------&amp;amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;amp;nbsp;------------------        
    发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    发送时间:&amp;amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 下午2:23        
    收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    抄送:&amp;amp;amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    主题:&amp;amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)        
           
           
           
    原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮&amp;amp;amp;#x4EF6; ------------------         
     发&amp;amp;amp;#x4EF6;人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;         
     发送时间: 2019年11月12日(星期&amp;amp;amp;#x4E8C;) 下午2:18         
     收&amp;amp;amp;#x4EF6;人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;         
     抄送: "724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;         
     主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)         
             
             
             
     你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决         
               
     &amp;amp;amp;amp;amp;amp;amp;amp;mdash;         
     You are receiving this because you commented.         
     Reply to this email directly, view it on GitHub, or unsubscribe.         
    —        
    You are receiving this because you commented.        
    Reply to this email directly, view it on GitHub, or unsubscribe.        
   —       
   You are receiving this because you commented.       
   Reply to this email directly, view it on GitHub, or unsubscribe.       
  —      
  You are receiving this because you commented.      
  Reply to this email directly, view it on GitHub, or unsubscribe.      
 —     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    

&amp;amp;mdash;
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 13 '19 05:11 VegetableOrange

你好,这是我自己的字典,训练文件和训练图像,为什么一直报错呀(我想用少量的数据先做个简易的demo,对准确率没有很大的要求) #数据图像需要一定是32×280吗?

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月13日(星期三) 中午1:43 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

如果是在训练CTPN那么数字是字符的bbox信息,如果在训练识别那么就是在字典里的索引,那么就需要字符和字典的文字对应。 在做识别的数据集时,可以考虑用https://github.com/Sanster/text_renderer,这个是专门做文字识别数据集的。

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"VegetableOrange"<[email protected]&gt;; 发送时间:&nbsp;2019年11月13日(星期三) 中午1:26 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"李勇"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我发现您的源代码里的训练文件是txt格式的,我下载了您链接里的数据集,data_train.
txt 文件中的格式是图片的名字后面加一串数字,请问数字的含义是图片的文字在字典文件里的位置吗?
我使用labelimg标注的文件,每个标注的图像会生成一个.xml文件,可以用这些文件名组成的txt文件作为训练文件吗(我发现源代码里已经加载过预训练权重了)
(我在附件图里标注了源代码截图)

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月13日(星期三) 中午11:46
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

训练图像位置是放训练集的,训练文件位置是放预训练的权重,这个是可以用来按实际需要进行迁移学习。在预训练权重基础上用自己的数据集来再次训练------------------ 原始邮件 ------------------
发件人: "VegetableOrange"<[email protected]&amp;gt;
发送时间: 2019年11月13日(星期三) 上午10:53
收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送: "724076722"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文&amp;amp;#x4EF6;位置;3、训练文&amp;amp;#x4EF6;位置;4、测试文&amp;amp;#x4EF6;位置。
中的训练图像位置与训练文&amp;amp;#x4EF6;位置是什么呀,我有点不理解

------------------&amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;nbsp;------------------    
发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 晚上6:48    
收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;gt;;    
抄送:&amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;gt;;    
主题:&amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
都可以的,只是CPU会比较慢。     
 这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉     
     
     
     
     
 ------------------&amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;amp;nbsp;------------------     
 发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;gt;;     
 发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 晚上6:42     
 收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送:&amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。      
       
       
       
       
  ------------------&amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;nbsp;------------------      
  发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  发送时间:&amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 下午2:33      
  收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  抄送:&amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  主题:&amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)      
       
       
       
  可以换个程序看,这个是我换过后用的       
   https://github.com/GlassyWing/text-detection-ocr       
         
         
   ------------------&amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;nbsp;------------------       
   发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   发送时间:&amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 下午2:27       
   收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   抄送:&amp;amp;amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   主题:&amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)       
         
         
         
   请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗        
           
           
    ------------------&amp;amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;amp;nbsp;------------------        
    发&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    发送时间:&amp;amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;#x4E8C;) 下午2:23        
    收&amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    抄送:&amp;amp;amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    主题:&amp;amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)        
           
           
           
    原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮&amp;amp;amp;#x4EF6; ------------------         
     发&amp;amp;amp;#x4EF6;人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;         
     发送时间: 2019年11月12日(星期&amp;amp;amp;#x4E8C;) 下午2:18         
     收&amp;amp;amp;#x4EF6;人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;         
     抄送: "724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;         
     主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)         
             
             
             
     你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决         
               
     &amp;amp;amp;amp;amp;amp;amp;amp;mdash;         
     You are receiving this because you commented.         
     Reply to this email directly, view it on GitHub, or unsubscribe.         
    —        
    You are receiving this because you commented.        
    Reply to this email directly, view it on GitHub, or unsubscribe.        
   —       
   You are receiving this because you commented.       
   Reply to this email directly, view it on GitHub, or unsubscribe.       
  —      
  You are receiving this because you commented.      
  Reply to this email directly, view it on GitHub, or unsubscribe.      
 —     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    

&amp;amp;mdash;
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 13 '19 08:11 VegetableOrange

我这看不到你的图像,不知道什么原因。 不过,数据图像是不固定大小的

------------------ 原始邮件 ------------------ 发件人: "VegetableOrange"<[email protected]>; 发送时间: 2019年11月13日(星期三) 下午4:06 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "李勇"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,这是我自己的字典,训练文件和训练图像,为什么一直报错呀(我想用少量的数据先做个简易的demo,对准确率没有很大的要求) #数据图像需要一定是32×280吗?

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"724076722"<[email protected]&gt;; 发送时间:&nbsp;2019年11月13日(星期三) 中午1:43 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"谈春梅"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

如果是在训练CTPN那么数字是字符的bbox信息,如果在训练识别那么就是在字典里的索引,那么就需要字符和字典的文字对应。
在做识别的数据集时,可以考虑用https://github.com/Sanster/text_renderer,这个是专门做文字识别数据集的。

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"VegetableOrange"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月13日(星期三) 中午1:26
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"李勇"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我发现您的源代码里的训练文件是txt格式的,我下载了您链接里的数据集,data_train.
txt 文件中的格式是图片的名字后面加一串数字,请问数字的含义是图片的文字在字典文件里的位置吗?
我使用labelimg标注的文件,每个标注的图像会生成一个.xml文件,可以用这些文件名组成的txt文件作为训练文件吗(我发现源代码里已经加载过预训练权重了)
(我在附件图里标注了源代码截图)

------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------
发件人:&amp;amp;nbsp;"724076722"<[email protected]&amp;amp;gt;;
发送时间:&amp;amp;nbsp;2019年11月13日(星期三) 中午11:46
收件人:&amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;gt;;
抄送:&amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;gt;;"Comment"<[email protected]&amp;amp;gt;;
主题:&amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

训练图像位置是放训练集的,训练文件位置是放预训练的权重,这个是可以用来按实际需要进行迁移学习。在预训练权重基础上用自己的数据集来再次训练------------------ 原始邮件 ------------------
发件人: "VegetableOrange"<[email protected]&amp;amp;gt;
发送时间: 2019年11月13日(星期三) 上午10:53
收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;gt;;
抄送: "724076722"<[email protected]&amp;amp;gt;;"Comment"<[email protected]&amp;amp;gt;;
主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文&amp;amp;amp;amp;#x4EF6;位置;3、训练文&amp;amp;amp;amp;#x4EF6;位置;4、测试文&amp;amp;amp;amp;#x4EF6;位置。     
 中的训练图像位置与训练文&amp;amp;amp;amp;#x4EF6;位置是什么呀,我有点不理解     
     
     
     
     
     
 ------------------&amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;nbsp;------------------     
 发&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;gt;;     
 发送时间:&amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;#x4E8C;) 晚上6:48     
 收&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送:&amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
     
 都可以的,只是CPU会比较慢。      
  这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉      
       
       
       
       
  ------------------&amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;nbsp;------------------      
  发&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  发送时间:&amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;#x4E8C;) 晚上6:42      
  收&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  抄送:&amp;amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  主题:&amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)      
       
       
       
  请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。       
         
         
         
         
   ------------------&amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;nbsp;------------------       
   发&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   发送时间:&amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;#x4E8C;) 下午2:33       
   收&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   抄送:&amp;amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   主题:&amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)       
         
         
         
   可以换个程序看,这个是我换过后用的        
    https://github.com/GlassyWing/text-detection-ocr        
           
           
    ------------------&amp;amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;amp;nbsp;------------------        
    发&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    发送时间:&amp;amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;#x4E8C;) 下午2:27        
    收&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    抄送:&amp;amp;amp;amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    主题:&amp;amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)        
           
           
           
    请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗         
             
             
     ------------------&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;------------------         
     发&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;         
     发送时间:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;#x4E8C;) 下午2:23         
     收&amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;         
     抄送:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;         
     主题:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)         
             
             
             
     原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮&amp;amp;amp;amp;#x4EF6; ------------------          
      发&amp;amp;amp;amp;#x4EF6;人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;          
      发送时间: 2019年11月12日(星期&amp;amp;amp;amp;#x4E8C;) 下午2:18          
      收&amp;amp;amp;amp;#x4EF6;人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;          
      抄送: "724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;          
      主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)          
               
               
               
      你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决          
                 
      &amp;amp;amp;amp;amp;amp;amp;amp;amp;mdash;          
      You are receiving this because you commented.          
      Reply to this email directly, view it on GitHub, or unsubscribe.          
     —         
     You are receiving this because you commented.         
     Reply to this email directly, view it on GitHub, or unsubscribe.         
    —        
    You are receiving this because you commented.        
    Reply to this email directly, view it on GitHub, or unsubscribe.        
   —       
   You are receiving this because you commented.       
   Reply to this email directly, view it on GitHub, or unsubscribe.       
  —      
  You are receiving this because you commented.      
  Reply to this email directly, view it on GitHub, or unsubscribe.      
 —     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
&amp;amp;amp;amp;mdash;    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ChiChen001 avatar Nov 13 '19 08:11 ChiChen001

能不能加一下微信呀我的微信号:ayi-seventeen

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年11月13日(星期三) 下午4:26 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

我这看不到你的图像,不知道什么原因。 不过,数据图像是不固定大小的

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"VegetableOrange"<[email protected]&gt;; 发送时间:&nbsp;2019年11月13日(星期三) 下午4:06 收件人:&nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&gt;; 抄送:&nbsp;"李勇"<[email protected]&gt;;"Comment"<[email protected]&gt;; 主题:&nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,这是我自己的字典,训练文件和训练图像,为什么一直报错呀(我想用少量的数据先做个简易的demo,对准确率没有很大的要求)
#数据图像需要一定是32×280吗?

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人:&amp;nbsp;"724076722"<[email protected]&amp;gt;;
发送时间:&amp;nbsp;2019年11月13日(星期三) 中午1:43
收件人:&amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;gt;;
抄送:&amp;nbsp;"谈春梅"<[email protected]&amp;gt;;"Comment"<[email protected]&amp;gt;;
主题:&amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

如果是在训练CTPN那么数字是字符的bbox信息,如果在训练识别那么就是在字典里的索引,那么就需要字符和字典的文字对应。
在做识别的数据集时,可以考虑用https://github.com/Sanster/text_renderer,这个是专门做文字识别数据集的。

------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------
发件人:&amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;gt;;
发送时间:&amp;amp;nbsp;2019年11月13日(星期三) 中午1:26
收件人:&amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;gt;;
抄送:&amp;amp;nbsp;"李勇"<[email protected]&amp;amp;gt;;"Comment"<[email protected]&amp;amp;gt;;
主题:&amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

你好,我发现您的源代码里的训练文件是txt格式的,我下载了您链接里的数据集,data_train.
txt 文件中的格式是图片的名字后面加一串数字,请问数字的含义是图片的文字在字典文件里的位置吗?
我使用labelimg标注的文件,每个标注的图像会生成一个.xml文件,可以用这些文件名组成的txt文件作为训练文件吗(我发现源代码里已经加载过预训练权重了)
(我在附件图里标注了源代码截图)

------------------&amp;amp;amp;amp;nbsp;原始邮件&amp;amp;amp;amp;nbsp;------------------    
发件人:&amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;gt;;    
发送时间:&amp;amp;amp;amp;nbsp;2019年11月13日(星期三) 中午11:46    
收件人:&amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;    
抄送:&amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;    
主题:&amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)    
   
   
   
训练图像位置是放训练集的,训练文件位置是放预训练的权重,这个是可以用来按实际需要进行迁移学习。在预训练权重基础上用自己的数据集来再次训练------------------ 原始邮件 ------------------     
 发件人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;gt;     
 发送时间: 2019年11月13日(星期三) 上午10:53     
 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;gt;;     
 抄送: "724076722"<[email protected]&amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;gt;;     
 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)     
     
     
 你好,已经可以用了。我要用自己的数据集来训练,请问Denset训练的4个参数:1、训练图像位置;2、字典文&amp;amp;amp;amp;amp;#x4EF6;位置;3、训练文&amp;amp;amp;amp;amp;#x4EF6;位置;4、测试文&amp;amp;amp;amp;amp;#x4EF6;位置。      
  中的训练图像位置与训练文&amp;amp;amp;amp;amp;#x4EF6;位置是什么呀,我有点不理解      
       
       
       
       
       
  ------------------&amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;nbsp;------------------      
  发&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  发送时间:&amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;amp;#x4E8C;) 晚上6:48      
  收&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  抄送:&amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;gt;;      
  主题:&amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)      
       
       
       
  都可以的,只是CPU会比较慢。       
   这个里面可以不用gpu,调的函数换一下,或者把调用gpu的程序注释掉       
         
         
         
         
   ------------------&amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;nbsp;------------------       
   发&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   发送时间:&amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;amp;#x4E8C;) 晚上6:42       
   收&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   抄送:&amp;amp;amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;gt;;       
   主题:&amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)       
         
         
         
   请问一下,您发给我的这个是基于gpu的吗,我的keras在导入包的时候报错ImportError: cannot import name 'multi_gpu_model'。我的电脑是cpu,这个好像要用到gpu。        
           
           
           
           
    ------------------&amp;amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;amp;nbsp;------------------        
    发&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    发送时间:&amp;amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;amp;#x4E8C;) 下午2:33        
    收&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    抄送:&amp;amp;amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;gt;;        
    主题:&amp;amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)        
           
           
           
    可以换个程序看,这个是我换过后用的         
     https://github.com/GlassyWing/text-detection-ocr         
             
             
     ------------------&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;------------------         
     发&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;         
     发送时间:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;amp;#x4E8C;) 下午2:27         
     收&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;         
     抄送:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"李勇"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;gt;;         
     主题:&amp;amp;amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)         
             
             
             
     请问能不能具体告诉我一下,我刚接触编程没多久[笑哭]是要我把他的代码读懂,用python重新写出来吗          
               
               
      ------------------&amp;amp;amp;amp;amp;amp;amp;amp;amp;nbsp;原始邮&amp;amp;amp;amp;amp;#x4EF6;&amp;amp;amp;amp;amp;amp;amp;amp;amp;nbsp;------------------          
      发&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;;          
      发送时间:&amp;amp;amp;amp;amp;amp;amp;amp;amp;nbsp;2019年11月12日(星期&amp;amp;amp;amp;amp;#x4E8C;) 下午2:23          
      收&amp;amp;amp;amp;amp;#x4EF6;人:&amp;amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;;          
      抄送:&amp;amp;amp;amp;amp;amp;amp;amp;amp;nbsp;"谈春梅"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;;          
      主题:&amp;amp;amp;amp;amp;amp;amp;amp;amp;nbsp;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)          
               
               
               
      原因是他是混编的程序,编译会有点问题。可以考虑换程序。------------------ 原始邮&amp;amp;amp;amp;amp;#x4EF6; ------------------           
       发&amp;amp;amp;amp;amp;#x4EF6;人: "VegetableOrange"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;           
       发送时间: 2019年11月12日(星期&amp;amp;amp;amp;amp;#x4E8C;) 下午2:18           
       收&amp;amp;amp;amp;amp;#x4EF6;人: "xiaofengShi/CHINESE-OCR"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;;           
       抄送: "724076722"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;;"Comment"<[email protected]&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;;           
       主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)           
                 
                 
                 
       你好,我也想问一下,具体是要怎么做呢,这个问题花费了我许多时间依然没有解决           
                   
       &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;mdash;           
       You are receiving this because you commented.           
       Reply to this email directly, view it on GitHub, or unsubscribe.           
      —          
      You are receiving this because you commented.          
      Reply to this email directly, view it on GitHub, or unsubscribe.          
     —         
     You are receiving this because you commented.         
     Reply to this email directly, view it on GitHub, or unsubscribe.         
    —        
    You are receiving this because you commented.        
    Reply to this email directly, view it on GitHub, or unsubscribe.        
   —       
   You are receiving this because you commented.       
   Reply to this email directly, view it on GitHub, or unsubscribe.       
  —      
  You are receiving this because you commented.      
  Reply to this email directly, view it on GitHub, or unsubscribe.      
 &amp;amp;amp;amp;amp;mdash;     
 You are receiving this because you commented.     
 Reply to this email directly, view it on GitHub, or unsubscribe.     
—    
You are receiving this because you commented.    
Reply to this email directly, view it on GitHub, or unsubscribe.    


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Nov 13 '19 08:11 VegetableOrange

import numpy as np cimport numpy as np

DTYPE = np.float ctypedef np.float_t DTYPE_t

请问您解决了吗?方便发一下吗?我也遇到这个问题。自己重新写了一下,水平有限,执行不成功。。。

wlh329387589 avatar Nov 29 '19 02:11 wlh329387589

这是用cpython混编的程序,编译起来有点问题,不好处理。建议换个程序吧 https://github.com/GlassyWing/text-detection-ocr

------------------ 原始邮件 ------------------ 发件人: "wlh329387589"<[email protected]>; 发送时间: 2019年11月29日(星期五) 上午10:53 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "李勇"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

import numpy as np cimport numpy as np

DTYPE = np.float ctypedef np.float_t DTYPE_t

请问您解决了吗?方便发一下吗?我也遇到这个问题。自己重新写了一下,水平有限,执行不成功。。。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ChiChen001 avatar Nov 29 '19 02:11 ChiChen001

这是用cpython混编的程序,编译起来有点问题,不好处理。建议换个程序吧 https://github.com/GlassyWing/text-detection-ocr ------------------ 原始邮件 ------------------ 发件人: "wlh329387589"<[email protected]>; 发送时间: 2019年11月29日(星期五) 上午10:53 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "李勇"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94) import numpy as np cimport numpy as np DTYPE = np.float ctypedef np.float_t DTYPE_t 请问您解决了吗?方便发一下吗?我也遇到这个问题。自己重新写了一下,水平有限,执行不成功。。。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

识别准确率有点感人啊。。。。

wlh329387589 avatar Dec 04 '19 06:12 wlh329387589

自己训练一下还是可以的------------------ 原始邮件 ------------------ 发件人: "wlh329387589"[email protected] 发送时间: 2019年12月4日(星期三) 下午2:16 收件人: "xiaofengShi/CHINESE-OCR"[email protected]; 抄送: "724076722"[email protected];"Comment"[email protected]; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

这是用cpython混编的程序,编译起来有点问题,不好处理。建议换个程序吧 https://github.com/GlassyWing/text-detection-ocr … ------------------ 原始邮件 ------------------ 发件人: "wlh329387589"[email protected]; 发送时间: 2019年11月29日(星期五) 上午10:53 收件人: "xiaofengShi/CHINESE-OCR"[email protected]; 抄送: "李勇"[email protected];"Comment"[email protected]; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94) import numpy as np cimport numpy as np DTYPE = np.float ctypedef np.float_t DTYPE_t 请问您解决了吗?方便发一下吗?我也遇到这个问题。自己重新写了一下,水平有限,执行不成功。。。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

识别准确率有点感人啊。。。。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ChiChen001 avatar Dec 04 '19 10:12 ChiChen001

你好,请问一下这个模型的结构是怎么样的。我用keras无法输出模型的结构

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年12月4日(星期三) 晚上6:42 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

自己训练一下还是可以的------------------ 原始邮件 ------------------ 发件人: "wlh329387589"<[email protected]> 发送时间: 2019年12月4日(星期三) 下午2:16 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "724076722"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

这是用cpython混编的程序,编译起来有点问题,不好处理。建议换个程序吧 https://github.com/GlassyWing/text-detection-ocr … ------------------&#xA0;原始邮&#x4EF6;&#xA0;------------------ 发&#x4EF6;人:&#xA0;"wlh329387589"<[email protected]>; 发送时间:&#xA0;2019年11月29日(星期五) 上午10:53 收&#x4EF6;人:&#xA0;"xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送:&#xA0;"李勇"<[email protected]>;"Comment"<[email protected]>; 主题:&#xA0;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94) import numpy as np cimport numpy as np DTYPE = np.float ctypedef np.float_t DTYPE_t 请问您解决了吗?方便发一下吗?我也遇到这个问题。自己重新写了一下,水平有限,执行不成功。。。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

识别准确率有点感人啊。。。。

&mdash; You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Dec 18 '19 08:12 VegetableOrange

我想用pytorch重写keras模型,但是打印不出这个模型的结构 https://github.com/GlassyWing/text-detection-ocr

------------------ 原始邮件 ------------------ 发件人: "724076722"<[email protected]>; 发送时间: 2019年12月4日(星期三) 晚上6:42 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "谈春梅"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

自己训练一下还是可以的------------------ 原始邮件 ------------------ 发件人: "wlh329387589"<[email protected]> 发送时间: 2019年12月4日(星期三) 下午2:16 收件人: "xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送: "724076722"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94)

这是用cpython混编的程序,编译起来有点问题,不好处理。建议换个程序吧 https://github.com/GlassyWing/text-detection-ocr … ------------------&#xA0;原始邮&#x4EF6;&#xA0;------------------ 发&#x4EF6;人:&#xA0;"wlh329387589"<[email protected]>; 发送时间:&#xA0;2019年11月29日(星期五) 上午10:53 收&#x4EF6;人:&#xA0;"xiaofengShi/CHINESE-OCR"<[email protected]>; 抄送:&#xA0;"李勇"<[email protected]>;"Comment"<[email protected]>; 主题:&#xA0;Re: [xiaofengShi/CHINESE-OCR] bbox.py中代码错误,是什么问题~ (#94) import numpy as np cimport numpy as np DTYPE = np.float ctypedef np.float_t DTYPE_t 请问您解决了吗?方便发一下吗?我也遇到这个问题。自己重新写了一下,水平有限,执行不成功。。。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

识别准确率有点感人啊。。。。

&mdash; You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

VegetableOrange avatar Dec 18 '19 08:12 VegetableOrange