Giter Site home page Giter Site logo

Comments (3)

wanghuancoder avatar wanghuancoder commented on September 13, 2024

ValueError: (InvalidArgument) Variable value (input) of OP(fluid.layers.embedding) expected >= 0 and < 1024, but got 1058. Please check input value.
[Hint: Expected ids[i] < row_number, but received ids[i]:1058 >= row_number:1024.] (at ..\paddle\phi\kernels\cpu\embedding_kernel.cc:67)
这个看起来是你准备的数据存在问题导致的,你可以顺藤摸瓜的自己追溯一下。
我也会请OCR的同学帮你看看。但通过报错能够发现的问题终归有限。

from paddle.

tink2123 avatar tink2123 commented on September 13, 2024

看起来是训练数据的维度问题,可以参考开源的数据检查下标注:https://github.com/PaddlePaddle/PaddleOCR/blob/1ca0c2231abe809f753287be525d180c79a06d72/doc/doc_ch/kie.md#13-%E6%95%B0%E6%8D%AE%E4%B8%8B%E8%BD%BD

同时确认下是否修改了网络的默认配置

from paddle.

kkiskkk avatar kkiskkk commented on September 13, 2024

看起来是训练数据的维度问题,可以参考开源的数据检查下标注:https://github.com/PaddlePaddle/PaddleOCR/blob/1ca0c2231abe809f753287be525d180c79a06d72/doc/doc_ch/kie.md#13-%E6%95%B0%E6%8D%AE%E4%B8%8B%E8%BD%BD

同时确认下是否修改了网络的默认配置

网络默认配置未修改,标注格式目前也没有发现问题。请问这个是否与验证集的一些文本transcription对应的id不在训练集的id范围内有关?

from paddle.

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.