GithubHelp home page GithubHelp logo

halzorg / objectseeker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inspire-group/objectseeker

0.0 0.0 0.0 124 KB

Code for "ObjectSeeker: Certifiably Robust Object Detection against Patch Hiding Attacks via Patch-agnostic Masking"

License: MIT License

Shell 2.19% Python 97.81%

objectseeker's Introduction

ObjectSeeker: Certifiably Robust Object Detection against Patch Hiding Attacks via Patch-agnostic Masking

By Chong Xiang, Alexander Valtchanov, Saeed Mahloujifar, Prateek Mittal

Code for "ObjectSeeker: Certifiably Robust Object Detection against Patch Hiding Attacks via Patch-agnostic Masking".

Files

├── README.md                        #this file 
├── requirement.txt                  #required packages
├── example_cmd.sh                   #example commands to run the code
| 
├── main_yolor.py                    #run ObjectSeeker with yolor 
├── main_mmdet.py                    #run ObjectSeeker with swin (mmdet)
├── clean_eval.py                    #scripts for clean AP evaluation; can be imported into main_yolor.py or main_mmdet.py
| 
├── objseeker                        #utils of objectseeker
|   ├── defense.py                   #implement the objectseeker defense
|   ├── coco_eval.py                 #utils for coco clean evaluation
|   └── voc_eval.py                  #utils for voc clean evaluation
|
├── yolor                            #scripts from the original yolor implementation
|   ├── data                        
|   ├── ....
|
├── mmdet                            #configs for mmdet/swin
|   ├── data                        
|   └── configs
|
└── checkpoints                      #directory for checkpoints
    ├── README.md                    #details of checkpoints
    └── ...                          #model checkpoints

Datasets

YOLOR is based on YOLOv5, and thus needs pre-processed data from ultralytics. mmdet (swin) uses official datasets directly.

  • VOC
    • (mmdet.swin) The official dataset can be downloaded using torchvision.datasets.VOCDetection. we use test2007 for our evaluation.
      • specify the data directory in mmdet/configs/_base_/datasets/voc0712.py.
    • (yolor) see this script to download and generate the ultralytics-YOLO style VOC dataset.
      • specify the data directory in yolor/data/voc.yaml.
  • COCO
    • (mmdet.swin) Download the official dataset (both data and annotations). we use val2007 for evaluation.
      • specify the data directory in mmdet/configs/_base_/datasets/coco_detection.py.
    • (yolor) see this script for downloading ultralytics-YOLO style COCO dataset.
      • specify the data directory in yolor/data/coco.yaml.

Dependency

Usage

  • See Files for details of each file.
  • Setup the datasets and dependency as discussed above.
  • Download checkpoints from this Google Drive link and move them to checkpoints/.
  • See example_cmds.sh for example commands for running the code.

If anything is unclear, please open an issue or contact Chong Xiang ([email protected]).

Citations

If you find our work useful in your research, please consider citing:

@article{xiang2022objectseeker,
  title={ObjectSeeker: Certifiably Robust Object Detection against Patch Hiding Attacks via Patch-agnostic Masking},
  author={Xiang, Chong and Valtchanov, Alexander and Mahloujifar, Saeed and Mittal, Prateek},
  journal={arXiv preprint arXiv:2202.01811},
  year={2022}
}

objectseeker's People

Contributors

xiangchong1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.