-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Augmentations for Robustness Experiments #64
Comments
I have applied Affine using Albumentations to one of the images in the dataset, so we can discuss if it enough with this function or we need to implement something more complex. Normal imageNormal image with affine (Rotation and translation)Cropped imageCropped image with affine (rotation and translation)What do you think? Could you share image examples of applying the transformation on a model level so we can compare and decide? The code that I have used is quite simple:
|
I think the Affine Transform does approximate the translation and rotation, but in some cases, when we crop the image, it would capture some black background as well. Any idea how to avoid that? Conventional methods seem to use Reflection and other techniques, should we use that? |
These are the available options. The images are not exactly the same as the ones you've shared. I'm suggesting this solution because of its simplicity of integration and implementation but we can still explore the raw opencv option you suggested. |
Yes, these two seem to be the best options. Let's go with REPLICATE. I'll try training the model with the same. In the meantime, study the opencv option as well. |
I also did some experiments with the homography operation. Here are the results: Original RotationHomography OperationHomography with Adjusted BackgroundThe accuracy of these operations may be much higher. But, the problem with this approach is that they are extremely hardcoded. We have to input specific points (4 for each image) to transform the image. Due to this, we will only have specific rotation values, like -20, -10, +10, +20. |
The robustness experiments include:
Currently, we use the
albumentations
library to introduce the different augmentations. The appropriate function for this use case would be theAffine
function.https://albumentations.ai/docs/api_reference/augmentations/geometric/transforms/
However, the camera rotation operation is a Homography Operation, which does not seem to be available in the library.
The text was updated successfully, but these errors were encountered: