基于pytorch框架的fcn模型,出现了IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices这个错误,自己解决不掉,有人可以帮一下吗?谢谢!
:
...
None
说明你的numpy的切片索引没有写对。