出现Image data of dtype object cannot be converted to float报错,在网站内搜了很多都不对症,经过仔细排查,发现是自己在生成数据时未定义数据的类型
datas = np.float32(datas)
加上这个就恢复正常了
出现Image data of dtype object cannot be converted to float报错,在网站内搜了很多都不对症,经过仔细排查,发现是自己在生成数据时未定义数据的类型
datas = np.float32(datas)
加上这个就恢复正常了