Skip to content

issues Search Results · repo:chenjun2hao/Attention_ocr.pytorch language:Python

Filter by

33 results
 (67 ms)

33 results

inchenjun2hao/Attention_ocr.pytorch (press backspace or delete to remove)

你好,我在运行你的代码时候报错KeyError: , 这种是怎么回事呀? if isinstance(text, str): text = [self.dict[item] for item in text]
  • zhuofalin
  • Opened 
    on Oct 5, 2021
  • #35

您好,大佬问您一个问题,为什么attention解码训练的时候,都要重置 decoder_hidden = decoder.initHidden(b).cuda()参数呢,我的理解应该是编码层输出会有一个decoder_hidden 参数啊,大佬可以解答一下吗? @chenjun2hao
  • wuxiaolianggit
  • Opened 
    on Dec 16, 2020
  • #31

AttributeError Traceback (most recent call last) ~/Attention_ocr.pytorch-master/train.py in module 9 import numpy as np 10 import os --- 11 import src.utils as utils 12 import src.dataset as dataset 13 ...
  • terrancraft
  • 1
  • Opened 
    on Nov 6, 2020
  • #30

if opt.decoder: print( loading pretrained encoder model from %s % opt.decoder) encoder.load_state_dict(torch.load(opt.encoder)) 上面这段代码应该是加载decoder, 但其实加载成了encoder,会导致后面测试的时候全是错的
  • ly0303521
  • Opened 
    on May 20, 2020
  • #28

1.固定2行,第一行4个字,第2行7个字,在不分隔的情况下能使用attention训练吗 2.试了ctc不行
  • lightning0016
  • 1
  • Opened 
    on May 14, 2020
  • #27

作者你好,我的电脑只有CPU,没有GPU,也没有安装CUDA,Ubuntu环境。请问能够正常运行这个程序吗?我试着运行了几次都是失败了。查找原因好像是需要CUDA,可是我没有GPU,还能够有什么方法让程序继续正常运行吗?
  • junthy-me
  • 1
  • Opened 
    on Feb 13, 2020
  • #25

感觉就取了前几张训练,loss下降的很快,然后test都为空
  • zhushiwen1996
  • 1
  • Opened 
    on Nov 27, 2019
  • #24
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub