Yuxiang1995 / ICDAR2021_MFD

1st Solution For ICDAR 2021 Competition on Mathematical Formula Detection(公式检测冠军方案)
Apache License 2.0
126 stars 42 forks source link

一直报维度的错误是为什么呢 #10

Open with-him777 opened 2 years ago

with-him777 commented 2 years ago

image 单卡训练多卡训练都会报这个错误 pred比weight多了一个维度为4

Yuxiang1995 commented 2 years ago

@with-him777 hello,为了排查问题,我想确认一下以下几件事: 1、是否follow了README里数据格式的转换步骤 2、发一下你所使用的config 3、打印338维的weight,看是否全都小于0

with-him777 commented 2 years ago

1、我按照了您的转换步骤 2、使用的gfl_r50_fpn_1x_coco.py,因为您的gfl_s101_fpn_2x_coco.py我训练一直精度为0,不知道是什么原因 3、他是随机性出现这个维度的问题,有时候是可以运行的,但有时候就会报错,在运行不同的epoch报错,比如第一次是第2个epoch报错,第二次在第4个,第三次可能就运行完毕了没报错。