I’m trying to extend the bounding boxes in lesson 8 by ‘rotated bounding boxes’. I’m doing this by passing in four coordinates top-right(x,y), bottom-right(x,y, bottom-left(x,y) and top-left(x,y).
By using the same code, only the first four values get passed through the different datasets and loaders:
tfms = tfms_from_model(f_model, sz, crop_type=CropType.NO, tfm_y=tfm_y, aug_tfms=augs)
md = ImageClassifierData.from_csv(PATH, JPEGS, BB_CSV, tfms=tfms, continuous=True, bs=4)
bbox = to_np(y)
[194. 368. 217. 400. 0. 0. 0. 0.]
How come? I’m trying to understand but I can’t figure it out. Hints are very appreciated, thanks in advance!