IntelLabs / MART

Modular Adversarial Robustness Toolkit
BSD 3-Clause "New" or "Revised" License
17 stars 0 forks source link

Make input a dictionary for multi-modal object detection #95

Closed mzweilin closed 1 year ago

mzweilin commented 1 year ago

What does this PR do?

Using dictionary input like {"rgb": tensor1, "depth": tensor2} should make it easier to compose multi-modal adversaries.

The dictionary is later converted back to tensor so that models understand the input.

This is backward compatible with single-modal object detection, because single-modal is a special case of multi-modal.

Type of change

Please check all relevant options.

Testing

Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

Before submitting

Did you have fun?

Make sure you had fun coding 🙃