Official implementation of "Can You Spot the Chameleon? Adversarially Camouflaging Images from Co-Salient Object Detection" in CVPR 2022. arXiv
- Clone this repo.
- Create and activate a virtual environment with Python >= 3.9 (or you need to do some workarounds when having a lower Python version).
- Install the dependencies via the command "pip install -r requirements.txt" or any other way you prefer. You should pay attention to the installation of
torch
due to the difference between cpu and gpu. - Run the script
example.py
. It will perturb the imageexample_images/turtles/turtle_1.png
and save the result perturbed images in the same folder.