Giter Site home page Giter Site logo

【Demo】RuntimeError: Sizes of tensors must match except in dimension 2. Got 1024 and 8192 (The offending index is 0) about fudanocr HOT 12 OPEN

fudanvi avatar fudanvi commented on August 28, 2024
【Demo】RuntimeError: Sizes of tensors must match except in dimension 2. Got 1024 and 8192 (The offending index is 0)

from fudanocr.

Comments (12)

JingyeChen avatar JingyeChen commented on August 28, 2024

I have tested this command in my environment but did not encounter this problem.

Firstly you need to create a folder named 'demo', then put some pictures in it.
The format should be 'name.png'

I wish this answer could address your confusion :)

from fudanocr.

JingyeChen avatar JingyeChen commented on August 28, 2024

运行速度很快的, 你可以检查一下程序卡在什么地方了

from fudanocr.

JingyeChen avatar JingyeChen commented on August 28, 2024

读取方式详见
scene-text-telescope/dataset/dataset.py 里的若干lmdb Class

from fudanocr.

Lz-2019317 avatar Lz-2019317 commented on August 28, 2024

好啦,这个问题解决了。可是我没有找到输出的图片,运行demo时也有event,out文件。可是这个tensorboard显示No image data was found.。合成的图片会在哪里显示呀?

from fudanocr.

JingyeChen avatar JingyeChen commented on August 28, 2024

你可以查看训练时的event文件

from fudanocr.

Lz-2019317 avatar Lz-2019317 commented on August 28, 2024

deom可以单独显示吗

from fudanocr.

JingyeChen avatar JingyeChen commented on August 28, 2024

event文件用于记录训练过程中各种参数的变化,因此train过程生成的event才有内容的

from fudanocr.

kanika02 avatar kanika02 commented on August 28, 2024

好啦,这个问题解决了。可是我没有找到输出的图片,运行demo时也有event,out文件。可是这个tensorboard显示No image data was found.。合成的图片会在哪里显示呀?

How the problem Sizes of tensors must match except in dimension 2. Got 1024 and 8192 (The offending index is 0) is solved? Can you help me with that? I am having the same issue

from fudanocr.

523997931 avatar 523997931 commented on August 28, 2024

I also have the same issue, how to deal with it

from fudanocr.

JingyeChen avatar JingyeChen commented on August 28, 2024

The bug has been fixed in the latest commit. You can have a try.

from fudanocr.

523997931 avatar 523997931 commented on August 28, 2024

The bug has been fixed in the latest commit. You can have a try.

thanks for fixing it, but another issue occur,

File "/workspace/scene-text-telescope/model/tbsrn.py", line 119, in forward
for l, x in zip(self.linears, (query, key, value))]
File "/workspace/scene-text-telescope/model/tbsrn.py", line 119, in
for l, x in zip(self.linears, (query, key, value))]
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/linear.py", line 91, in forward
return F.linear(input, self.weight, self.bias)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/functional.py", line 1676, in linear
output = input.matmul(weight.t())
RuntimeError: mat1 dim 1 must match mat2 dim 0

from fudanocr.

JingyeChen avatar JingyeChen commented on August 28, 2024

what is the command? I did not encounter this problem

from fudanocr.

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.