centernet-tf2 icon indicating copy to clipboard operation
centernet-tf2 copied to clipboard

train.py报错 提示维度索引过界

Open TingsongYu opened this issue 3 years ago • 2 comments

楼主你好,在复现train.py时,出现这个报错,请问是哪里不匹配呢? “”ValueError: slice index -1 of dimension 0 out of bounds. for 'loss/centernet_loss_loss/strided_slice' (op: 'StridedSlice') with input shapes: [0], [1], [1], [1] and with computed input tensors: input[1] = <-1>, input[2] = <0>, input[3] = <1>.” Traceback (most recent call last): File "F:/github_desktop/centernet-tf2-main/train.py", line 214, in optimizer=keras.optimizers.Adam(Lr) 期待解答,感谢!

TingsongYu avatar Aug 06 '21 03:08 TingsongYu

应该是版本问题的

bubbliiiing avatar Aug 09 '21 15:08 bubbliiiing

tf2.2

bubbliiiing avatar Aug 09 '21 15:08 bubbliiiing