centernet-keras icon indicating copy to clipboard operation
centernet-keras copied to clipboard

数据类型错误

Open DreamRiverForever opened this issue 4 years ago • 1 comments
trafficstars

def gaussian2D(shape, sigma=1): m, n = [(ss - 1.) / 2. for ss in shape] y, x = np.ogrid[-m:m + 1, -n:n + 1]

h = np.exp(-(x * x + y * y) / (2 * sigma * sigma))

h[h < np.finfo(h.dtype).eps * h.max()] = 0
return h

TypeError: float() argument must be a string or a number, not '_NoValueType' 这个h.max()报错

DreamRiverForever avatar Dec 17 '20 11:12 DreamRiverForever

em?是版本吗,不是的话我觉得是数据集的问题,这段代码是在读取数据的时候用的

bubbliiiing avatar Dec 22 '20 07:12 bubbliiiing