KeyError: ((1, 1), ‘<i8‘)
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1), '<i8')
将: img = Image.fromarray(out) 改为: img = Image.fromarray(np.uint8(out))
TypeError: Cannot handle this data type: (1, 1, 384), |u1
维度错误,三维tensor使用squeeze()变为二维。
KeyError: ((1, 1), ‘<i8‘)
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1), '<i8')
将: img = Image.fromarray(out) 改为: img = Image.fromarray(np.uint8(out))
TypeError: Cannot handle this data type: (1, 1, 384), |u1
维度错误,三维tensor使用squeeze()变为二维。