3

In config file, we are given the default Augmentation option as shown below.

data_augmentation_options {
    random_horizontal_flip {
    }
  }

But I wondered how it works with the bounding box(ground truth box) values given with the training images. so I looked at preprocessor.py, random_horizontal_flip() takes 'boxes=None' parameter. Since no argument is given in the config file, I assume this flip does not account bounding box when it does the random horizontal flip.

My question is what arguments do I use to add the value of bounding box in the config file in the code snippet section shown above.

1 Answer 1

2

The boxes will get flipped too. If you look down in the preprocessor file, you'll notice a map that defines what inputs of the tensor dictionary will get passed into the preprocessing function. The groundtruth boxes are passed into random_horizontal_flip.

Sign up to request clarification or add additional context in comments.

1 Comment

are you referring to this map function ? @derek

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.