Traceback (most recent call last):


 "./pdseg/eval.py", line 176, in <module>

main()


 "./pdseg/eval.py", line 172, in main

evaluate(cfg, **args.__dict__)


 "./pdseg/eval.py", line 138, in evaluate

conf_mat.calculate(pred, grts, masks)


 "/home/aistudio/pdseg/metrics.py", line 47, in calculate

shape=(self.num_classes, self.num_classes))


 "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/scipy/sparse/compressed.py", line 57, in __init__

other = self.__class__(coo_matrix(arg1, shape=shape))


 "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/scipy/sparse/coo.py", line 198, in __init__

self._check()


 "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/scipy/sparse/coo.py", line 285, in _check

raise ValueError('row index exceeds matrix dimensions')
ValueError: row index exceeds matrix dimensions
Traceback (most recent call last):


 "test_network_with_dtype.py", line 65, in test_gpu

self.set_network()


 "test_network_with_dtype.py", line 30, in set_network

self.x = fluid.layers.data(name='x', shape=[13], dtype=self.dtype)


 "/paddle/build/python/paddle/fluid/layers/io.py", line 82, in data

is_data=True)


 "/paddle/build/python/paddle/fluid/layer_helper.py", line 344, in create_global_variable

*args, persistable=persistable, **kwargs)


 "/paddle/build/python/paddle/fluid/framework.py", line 763, in create_var

var = Variable(block=self, *args, **kwargs)


 "/paddle/build/python/paddle/fluid/framework.py", line 195, in __init__

"matched.".format(self.name, old_shape, shape))
ValueError: Variable x has been created before. the previous shape is (-1L, 3L); the new shape is (-1, 13). They are not matched.