Mask_rcnn: Does data augmentation works for VGG Segmentations ? (model.train, augmentation=augmentation)

Created on 16 Jan 2019  路  6Comments  路  Source: matterport/Mask_RCNN

Hi everyone!
Firstly, thank you for this repo, it is amazing.
I have 134 classes (for about 2800 photos --- 21 photos / classe). I used VGG image annotator tool to do my annotations (2800 segmentations...)
segment

I have quite good results bu I would like to augment my database using the augmentation parameter below (in model.train) if the segmentations will be augmented too ?

augmentation

My segmentations are coordinates in a .JSON file and I would like to do like the Imgaug example below:

example_segmaps

Except if the augmentation parameter already does what I want..
Waiting for your help.. Thanks !

Most helpful comment

@eyildiz-ugoe You need to define "augmentation" before. Like in this example :

augmentation

Regards,
Antoine

All 6 comments

Yes, it does what you want.

I try to do the same, but I get:

Traceback (most recent call last):
  File "script.py", line 539, in <module>
    train(model)
  File "script.py", line 248, in train
    layers='heads', augmentation=augmentation)
NameError: name 'augmentation' is not defined

Does anyone know why it doesn't work?

@eyildiz-ugoe You need to define "augmentation" before. Like in this example :

augmentation

Regards,
Antoine

@nayzen Hey man, your solution works. But how exactly, is something I am struggling to grasp. Augmentating the images is not that big of a deal but how excatly the related json with the the contour points is getting modified?

Hey @nikhil-occipitaltech , I don't really know how the contour points is getting modified and I'm interested in finding out as well. But it seems that the imgaug library does automatically this task.

@nayzen I am trusting it to be correct.

Was this page helpful?
0 / 5 - 0 ratings