问题:
ValueError: At least one stride in the given numpy array is negative, and tensors with negative strides are not currently supported. (You can probably work around this by making a copy of your array with array.copy().)

解决方法:

改为:

参考资料:
(二十五:2020.12.15)CVPR 2020 学习(三)《U^2 Net》训练实操

在尝试使用numpy数组时遇到ValueError,提示至少有一个stride为负数且不支持。解决方案是通过复制数组来修正,如`array.copy()`。本文档来源于2020年CVPR2020学习系列,涉及U^2Net训练实践。
2880

被折叠的 条评论
为什么被折叠?



