为什么eval里面的batch_size必须为1
cqray1990 opened this issue · comments
cqray1990 commented
'loader': {
'type': 'DataLoader',
'batch_size': 1, # 必须为1
'shuffle': False,
'num_workers': 1,
'collate_fn': {
'type': 'DetCollectFN'
Tao Luo commented
crnn的输入可以长度不限的,所以batchsize为1,不然你每个image的tensor size不同。没法凑成一个size的tensor。除非你保证的image的width为固定值。