AttributeError: ‘Series’ object has no attribute ‘as_matrix’
AttributeError: ‘Series’ object has no attribute ‘as_matrix’
# 展示单条数据
n = 14 # n为数据在表格中的索引
image_name = key_pts_frame.iloc[n, 0] # 获取图像名称
key_pts = key_pts_frame.iloc[n, 1:].as_matrix() # 将图像label格式转为numpy.array的格式
key_pts = key_pts.astype('float').resha
原创
2021-03-23 17:08:02 ·
1321 阅读 ·
1 评论