leocvml / deeplabv3plus-gluon-mxnet

this repo is guide to segmentation using deeplabv3plus as sample
16 stars 3 forks source link

load data error #1

Open zht3344 opened 6 years ago

zht3344 commented 6 years ago

read 5046 examples read 5046 examples Traceback (most recent call last): File "deeplabV3/deeplabv3plus-gluon-mxnet/deeplabv3plus.py", line 286, in for d, l in train_iter: File "/usr/local/lib/python2.7/dist-packages/mxnet/gluon/data/dataloader.py", line 93, in iter yield _batchify([self._dataset[idx] for idx in batch]) File "deeplabV3/deeplabv3plus-gluon-mxnet/deeplabv3plus.py", line 243, in getitem return data.transpose((2, 0, 1)), self.label_indices(label) File "deeplabV3/deeplabv3plus-gluon-mxnet/deeplabv3plus.py", line 195, in label_indices return self.colormap2label[idx] File "/usr/local/lib/python2.7/dist-packages/mxnet/ndarray/ndarray.py", line 574, in getitem str(key), str(type(key)))) ValueError: NDArray does not support slicing with key [[ 32768 32768 32768 ..., 8388608 8388608 8388608] [ 32768 32768 32768 ..., 8388608 8388608 8388608] [ 32768 32768 32768 ..., 8388608 8388608 8388608] ..., [8388608 8388608 8388608 ..., 8388608 8388608 8388608] [8388608 8388608 8388608 ..., 8388608 8388608 8388608] [8388608 8388608 8388608 ..., 8388608 8388608 8388608]] <NDArray 320x480 @cpu(0)> of type <class 'mxnet.ndarray.ndarray.NDArray'>.

leocvml commented 6 years ago

hi can you run the sample code smoothly ?