PaddlePaddle / PaddleSeg

Easy-to-use image segmentation library with awesome pre-trained model zoo, supporting wide-range of practical tasks in Semantic Segmentation, Interactive Segmentation, Panoptic Segmentation, Image Matting, 3D Segmentation, etc.
https://arxiv.org/abs/2101.06175
Apache License 2.0
8.69k stars 1.68k forks source link

[Bug]ValueError: Target 160 is out of upper bound? #2583

Closed lvsh2012 closed 9 months ago

lvsh2012 commented 2 years ago

/home/aistudio/work/PaddleSeg 2022-09-29 10:52:04 [INFO]
------------Environment Information------------- platform: Linux-4.15.0-140-generic-x86_64-with-debian-stretch-sid Python: 3.7.4 (default, Aug 13 2019, 20:35:49) [GCC 7.3.0] Paddle compiled with cuda: True NVCC: Build cuda_11.2.r11.2/compiler.29618528_0 cudnn: 8.2 GPUs used: 1 CUDA_VISIBLE_DEVICES: None GPU: ['GPU 0: Tesla V100-SXM2-16GB'] GCC: gcc (Ubuntu 7.5.0-3ubuntu1~16.04) 7.5.0 PaddleSeg: 2.6.0 PaddlePaddle: 2.3.2 OpenCV: 4.1.1

2022-09-29 10:52:04 [INFO]
---------------Config Information--------------- batch_size: 4 iters: 1000 loss: coef:

Bobholamovic commented 2 years ago

Please check if there are illegal values in the labels, say, 160 (given that the number of classes is 4).