ODFI enables five types of annotation faults to be injected (one fault type at a time). ODFI performs fault injection according to the fault type defined in a YAML file. This folder contains many predefined YAML files, which you may use directly without further modification.
The YAML files in this folder are divided into two modes: fault injection per image or fault injection over objects.
Here, we illustrate an example of how to interpret the name of the YAML file.
-
Fault injection per image (
-1.yaml
suffix at the end of the file): injects exactly one annotation fault (randomly selected annotation box) per randomly selected image. E.g. If there are 10 images, the fault type ismislabel_cat
and the fault amount is 10%, then only one annotation fault will be injected into 1 randomly selected image. mislabel_cat-10-1.yaml -
Fault injection over objects: injects annotation faults over randomly selected annotation boxes. E.g. If there are 10 images containing 2 annotations each, the fault type is
mislabel_cat
and the fault amount is 10%, then 2 annotation faults will be injected across the 10 images. Examples of possible outcomes:
- Image #1 and Image #5 both have one faulty annotation each. Rest of the images are untouched.
- Image #1 has two faulty annotations. Rest of the images are untouched. mislabel_cat-10.yaml
- For all fault types except
incorrect_bb
, define it in the following format:
Type: <fault_type>
Amount: <fault_amount>
Injections_Per_Image: 1 # Only add this line if you want to inject per image
- For
incorrect_bb
only, define it in the following format:
Type: <fault_type>
Amount: <fault_amount>
Size: <size_diff_percentage>
Position: <position_offset_percentage>
Injections_Per_Image: 1 # Only add this line if you want to inject per image
- Fault Type - Must use abbreviated form in parentheses:
- Mislabelled Class (
mislabel_cat
) - Mislabelled Superclass (
mislabel_super
) - Incorrect Bounding Box (
incorrect_bb
) - Missing Annotation (
remove_ann
) - Redundant Annotation (
redundant_ann
)
-
Fault Amount: 0 to 100
-
Injections Per Image: Any positive integer value
-
Size Diff Percentage: -100 to 100
-
Position Offset Percentage: -100 to 100
NOTES: For Injections Per Image, ODFI will never inject more than the number of total annotations in a single image. For size and position parameters, ODFI will automatically reject scenarios where the injected annotation box is outside the bounds of the original image dimensions.