画像とラベル (csv) を正常にアップロードしました。
for name, labels in df.values:
print(name)
imgs = read_given_images("./",name)
labels = df['labels']
points = np.array(labels)
画像のサイズを変更したい (ラベルも更新されます)。そして、それを tfrecord に変更したいと思います。単一のイメージでは、以下のコードは正しく実行されますが、グループで実行するとエラーが発生します
for img, img_points in zip(imgs,points):
img_points = img_points.reshape(-1,2)
visualize_points(img[...,::-1],img_points,radius=3,thickness=3)
new_img, new_points = resize_with_aspect_ratio(img,224,img_points.flatten())
new_points = new_points.reshape(-1,2)
visualize_points(new_img[...,::-1].astype(np.uint8),new_points,radius=2,thickness=2)
エラー;
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
このエラーを解決するには、どこに a.any() または a.all() を挿入する必要がありますか?