Skip to content

yhsmiley/d-rise

Repository files navigation

This repository is a third party implementation of the D-RISE paper.

Usage

  • The codes use ScaledYOLOv4 as the object detector. Follow the instructions in the repo to install (or uncomment in the Dockerfile), or use your own detector.
  1. Generate outputs from object detector and sample masks with generate_samples.py
  2. Run drise_image.py to generate D-RISE results for an image and given target detection (from output of generate_samples.py, or any arbitrary target (e.g. missed ground truths))

Play around with the grid size and probability for mask generation, and number of masks to get a good visualization!

Note:

  • To use jupyter notebook inside docker, run jupyter notebook --ip=0.0.0.0 --allow-root

Examples

Original detections and sample masks

cat, 1000 masks, grid size (16, 16), probability 0.5

cat, 5000 masks, grid size (16, 16), probability 0.5

tie, 1000 masks, grid size (16, 16), probability 0.3

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages