Coder Social home page Coder Social logo

Comments (5)

mm1327 avatar mm1327 commented on August 20, 2024

通过 convert_imageset 工具把label 和image 转为lmdb

from caffe_ocr.

EdwardVincentMa avatar EdwardVincentMa commented on August 20, 2024

通过 convert_imageset 工具把label 和image 转为 lmdb

感谢您的回答。您这个是多标签,一个图像后面10个文字也就是10个标签,我昨天尝试转 leveldb,在找 label 的时候,debug 发现好像只找最后一个 ‘ '(空格) 作为 label 的分割,也就是不适合多 class。

比如一张图10个字符,他只会找最后一个空格后的 506 作为 label,代码83行 line.find_last_of(' '),而把剩下的图像名称+余下9个字符作为图像名称,这显然是不对的,如下图所示:

image

是否需要改代码让其支持多个分类。

另外,不知道是转 lmdb 还是 leveldb。

from caffe_ocr.

EdwardVincentMa avatar EdwardVincentMa commented on August 20, 2024

通过 convert_imageset 工具把label 和image 转为 lmdb

感谢您的回答。您这个是多标签,一个图像后面10个文字也就是10个标签,我昨天尝试转 leveldb,在找 label 的时候,debug 发现好像只找最后一个 ‘ '(空格) 作为 label 的分割,也就是不适合多 class。

比如一张图10个字符,他只会找最后一个空格后的 506 作为 label,代码83行 line.find_last_of(' '),而把剩下的图像名称+余下9个字符作为图像名称,这显然是不对的,如下图所示:

image

是否需要改代码让其支持多个分类。

另外,不知道是转 lmdb 还是 leveldb。

谢谢楼上回答,我知道了为啥不支持多分类了,我这份代码太老了,不支持多分类。但还有些其它不明白的,例如:

  1. gray = true or false
  2. encoded = true or false

from caffe_ocr.

EdwardVincentMa avatar EdwardVincentMa commented on August 20, 2024

多标签的 convert_imageset.cpp 放到我的项目里不能用,要改很多代码,如何建立基于作者项目里面的 convert_imageset.cpp 的项目,我建立后,link error

已解决,找了个笨办法,可以跑多标签转换了

from caffe_ocr.

xiaotaia avatar xiaotaia commented on August 20, 2024

多标签的 convert_imageset.cpp 放到我的项目里不能用,要改很多代码,如何建立基于作者项目里面的 convert_imageset.cpp 的项目,我建立后,link error

已解决,找了个笨办法,可以跑多标签转换了

请问这个中文多标签lmdb是怎么做的?另外作者项目里没有convert_imageset.cpp啊。作者这个模型可以用hdf5类型的数据训练么?

from caffe_ocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.