You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "D:\BaiduNetdiskDownload\yolo4_tensorflow2-master\src\yolo4\util.py", line 113, in yolo4_loss
input_shape = tf.cast(tf.shape(yolo_outputs[0])[1:3] * 32, tf.dtype(y_true[0]))
IndexError: list index out of range
File "D:\BaiduNetdiskDownload\yolo4_tensorflow2-master\src\yolo4\util.py", line 113, in yolo4_loss
input_shape = tf.cast(tf.shape(yolo_outputs[0])[1:3] * 32, tf.dtype(y_true[0]))
IndexError: list index out of range
似乎以上错误的产生源自以下, 当len(anchors)小于3时,num_layers 则为0了,yolo_outputs 的LIST为空。
num_layers = len(anchors) // 3 # default setting
yolo_outputs = args[:num_layers]
怎么去修复?另外是否有TEST.PY提供?
The text was updated successfully, but these errors were encountered: