Comments (5)
通过 convert_imageset 工具把label 和image 转为lmdb
from caffe_ocr.
通过 convert_imageset 工具把label 和image 转为 lmdb
感谢您的回答。您这个是多标签,一个图像后面10个文字也就是10个标签,我昨天尝试转 leveldb,在找 label 的时候,debug 发现好像只找最后一个 ‘ '(空格) 作为 label 的分割,也就是不适合多 class。
比如一张图10个字符,他只会找最后一个空格后的 506 作为 label,代码83行 line.find_last_of(' '),而把剩下的图像名称+余下9个字符作为图像名称,这显然是不对的,如下图所示:
是否需要改代码让其支持多个分类。
另外,不知道是转 lmdb 还是 leveldb。
from caffe_ocr.
通过 convert_imageset 工具把label 和image 转为 lmdb
感谢您的回答。您这个是多标签,一个图像后面10个文字也就是10个标签,我昨天尝试转 leveldb,在找 label 的时候,debug 发现好像只找最后一个 ‘ '(空格) 作为 label 的分割,也就是不适合多 class。
比如一张图10个字符,他只会找最后一个空格后的 506 作为 label,代码83行 line.find_last_of(' '),而把剩下的图像名称+余下9个字符作为图像名称,这显然是不对的,如下图所示:
是否需要改代码让其支持多个分类。
另外,不知道是转 lmdb 还是 leveldb。
谢谢楼上回答,我知道了为啥不支持多分类了,我这份代码太老了,不支持多分类。但还有些其它不明白的,例如:
- gray = true or false
- encoded = true or false
from caffe_ocr.
多标签的 convert_imageset.cpp 放到我的项目里不能用,要改很多代码,如何建立基于作者项目里面的 convert_imageset.cpp 的项目,我建立后,link error
已解决,找了个笨办法,可以跑多标签转换了
from caffe_ocr.
多标签的 convert_imageset.cpp 放到我的项目里不能用,要改很多代码,如何建立基于作者项目里面的 convert_imageset.cpp 的项目,我建立后,link error
已解决,找了个笨办法,可以跑多标签转换了
请问这个中文多标签lmdb是怎么做的?另外作者项目里没有convert_imageset.cpp啊。作者这个模型可以用hdf5类型的数据训练么?
from caffe_ocr.
Related Issues (20)
- 合成的中文数据百度盘已的失效 HOT 2
- 含densenet的模型可以转换成tensorflow版吗?
- 请问有人试过用efficientnet网络来做文字识别的么?
- 请问编译需要使用哪个版本的protobuf?感谢回答
- 丢字符的问题如何修改网络?
- 英文词典相关问题
- 如何添加未定义的新层?
- ctcloss = 0 (* 1 = 0 loss)
- 数据问题一直不行,求解答
- opencv加载caffe
- 训练数据集图片数量比train.txt里面的标签数量多了1个。 HOT 3
- c++调用caffemodel问题
- dbtrain
- 合作交流
- 编译报错
- SynthText Data
- 中文数据集链接失效,能否更新下?
- 百度链接没一个能用的
- 求更新网盘链接 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caffe_ocr.