Skip to content

Conversation

@lumurillo
Copy link

Extending the CARLA related scenarios to enable the export of the generated perturbations.

@swsuggs
Copy link
Contributor

swsuggs commented Oct 19, 2023

Hi Luis, thanks for the contribution. Would you mind rebasing the PR to the develop branch?


self.probe.update(x_adv=x_adv, y_pred_adv=y_pred_adv)
if hasattr(self.attack, "perturbations"):
self.probe.update(perturbation=perturbations)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prior conditional could be combined with this one. For example:

if hasattr(self.attack, "perturbations"):
    self.probe.update(perturbation=self.attack.perturbations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants