BehaviorMetrics icon indicating copy to clipboard operation
BehaviorMetrics copied to clipboard

Add Configuration Parameters for Robustness Experiments

Open SakshayMahna opened this issue 3 years ago • 2 comments

In reference to issue #313

For Camera Position, a temporary model f1_temp is created in the Gazebo models directory. The tmp_world created by tmp_world_generator.py uses this f1_temp model. The example config file is default-multiple-robustness.yml.

For Noise, a new utility script added in utils folder. The noise is added to the camera image just before it is fed to the Neural Network. Example script is brain_f1_explicit_noise.py and example configuration file is default-noise.yml.

SakshayMahna avatar Jun 26 '22 03:06 SakshayMahna

Nice one! I have a question regarding the noise addition. Would it be possible adding it as another image transformation option? Following the current pipeline: https://github.com/JdeRobot/BehaviorMetrics/blob/b446b4c891c78707b5504ecc7f17284e1b1a6b3b/behavior_metrics/brains/f1/brain_f1_opencv.py#L161 What do you think about it?

Is it possible modifying the camera on execution with the graphical interface? You have only provided the multiple config file so I guess that it's only intended for scripting purposes.

sergiopaniego avatar Jun 28 '22 18:06 sergiopaniego

Yes, we can add the noise to the current pipeline. The code would be much more organized in that way. In the albumentations library, there is one transformation for Gaussian Noise, but no such function for Salt and Pepper Noise. I can use my custom implementation for the same.

I'm not sure how to modify the camera on execution. But, we can see the noisy image in the graphical execution. How should I go about it? We can possibly do the same for all the transformations present in the handler.

SakshayMahna avatar Jun 30 '22 14:06 SakshayMahna