Giter VIP home page Giter VIP logo

Comments (6)

ZhangSibo9972 avatar ZhangSibo9972 commented on August 28, 2024 1

我也遇到了这个问题。最后查出来是numpy.array()函数的原因。源码里是64个图片一组送进去的,但是特殊情况下如果64张图片的word标记的长度是一样的,numpy.array()的转换结果可能变成1维,进而引起这个错误。增加batch_size(我从64改到128)似乎可以解决这个问题,不过治标不治本。或者尝试进入sparse_tuple_from函数里,在utils.py第16行:
for n, seq in enumerate(sequences):
将sequences替换为sequences.base不知道能不能解决问题。

from crnn.

Qzhaohong avatar Qzhaohong commented on August 28, 2024

@Belval
I met the same issue, is above change from @yogixRush right ?

from crnn.

Belval avatar Belval commented on August 28, 2024

Can any of you give me his configuration and the format of your training samples?

On my Ubuntu 18.04 machine with python 3 this does not cause any issues.

from crnn.

jabgle avatar jabgle commented on August 28, 2024

我跟你改了,还是报这个错啊

from crnn.

buyanfangqi avatar buyanfangqi commented on August 28, 2024

你好,最后是怎么解决的呢?

from crnn.

LW-CVer avatar LW-CVer commented on August 28, 2024

我的是输入数据一样长,所以将传入的sequences再做一次维度变换就好了(因为有时候sequences是一维的数据)

from crnn.

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.