├── .gitignore ├── INSTALL.md ├── README.md ├── data_path.py ├── dataset.py ├── docs ├── index.html ├── package-lock.json └── static │ ├── css │ ├── bulma-carousel.min.css │ ├── bulma-slider.min.css │ ├── bulma.css.map.txt │ ├── bulma.min.css │ ├── fontawesome.all.min.css │ └── index.css │ ├── images │ ├── bg │ │ ├── torralba_efros.jpg │ │ ├── ycd.jpg │ │ └── ycd15.png │ ├── example_trans.png │ ├── explain │ │ ├── LDA.png │ │ ├── concept_rank.png │ │ ├── dist.png │ │ ├── llm_summarize_complete.png │ │ ├── unique_objects.png │ │ └── word_cloud.jpg │ ├── teaser.png │ └── trans │ │ ├── baseline.jpg │ │ ├── ori_dist.png │ │ ├── patch_shuf.png │ │ ├── trans_color.jpg │ │ ├── trans_freq.png │ │ ├── trans_semantic.png │ │ ├── trans_spatial.jpg │ │ ├── trans_structure.jpg │ │ └── trans_synth.jpg │ └── js │ ├── bulma-carousel.js │ ├── bulma-carousel.min.js │ ├── bulma-slider.js │ ├── bulma-slider.min.js │ ├── fontawesome.all.min.js │ └── index.js ├── download_data ├── CC.md ├── DataComp.md ├── README.md ├── YFCC.md ├── download_with_resize.py ├── process_yfcc.py ├── sample.py └── split.py ├── engine.py ├── main.py ├── models ├── convnext.py └── sentence_embed.py ├── optim_factory.py ├── transformations ├── canny │ ├── README.md │ └── transform.py ├── caption │ ├── README.md │ └── transform.py ├── depth │ ├── README.md │ └── transform.py ├── hog │ ├── README.md │ └── transform.py ├── object_det │ ├── LVIS_color_map.json │ ├── README.md │ └── transform.py ├── sam │ ├── README.md │ └── transform.py ├── semantic_seg │ ├── README.md │ └── transform.py ├── sift │ ├── README.md │ └── transform.py ├── text_to_image │ ├── README.md │ └── transform.py ├── trans_utils.py ├── uncon_gen │ ├── README.md │ ├── diffusion │ │ ├── __init__.py │ │ ├── diffusion_utils.py │ │ ├── gaussian_diffusion.py │ │ ├── respace.py │ │ └── timestep_sampler.py │ ├── environment.yaml │ ├── models.py │ ├── sample.py │ └── train.py └── vae │ ├── README.md │ └── transform.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/.gitignore -------------------------------------------------------------------------------- /INSTALL.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/INSTALL.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/README.md -------------------------------------------------------------------------------- /data_path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/data_path.py -------------------------------------------------------------------------------- /dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/dataset.py -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/index.html -------------------------------------------------------------------------------- /docs/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/package-lock.json -------------------------------------------------------------------------------- /docs/static/css/bulma-carousel.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/css/bulma-carousel.min.css -------------------------------------------------------------------------------- /docs/static/css/bulma-slider.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/css/bulma-slider.min.css -------------------------------------------------------------------------------- /docs/static/css/bulma.css.map.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/css/bulma.css.map.txt -------------------------------------------------------------------------------- /docs/static/css/bulma.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/css/bulma.min.css -------------------------------------------------------------------------------- /docs/static/css/fontawesome.all.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/css/fontawesome.all.min.css -------------------------------------------------------------------------------- /docs/static/css/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/css/index.css -------------------------------------------------------------------------------- /docs/static/images/bg/torralba_efros.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/bg/torralba_efros.jpg -------------------------------------------------------------------------------- /docs/static/images/bg/ycd.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/bg/ycd.jpg -------------------------------------------------------------------------------- /docs/static/images/bg/ycd15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/bg/ycd15.png -------------------------------------------------------------------------------- /docs/static/images/example_trans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/example_trans.png -------------------------------------------------------------------------------- /docs/static/images/explain/LDA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/explain/LDA.png -------------------------------------------------------------------------------- /docs/static/images/explain/concept_rank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/explain/concept_rank.png -------------------------------------------------------------------------------- /docs/static/images/explain/dist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/explain/dist.png -------------------------------------------------------------------------------- /docs/static/images/explain/llm_summarize_complete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/explain/llm_summarize_complete.png -------------------------------------------------------------------------------- /docs/static/images/explain/unique_objects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/explain/unique_objects.png -------------------------------------------------------------------------------- /docs/static/images/explain/word_cloud.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/explain/word_cloud.jpg -------------------------------------------------------------------------------- /docs/static/images/teaser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/teaser.png -------------------------------------------------------------------------------- /docs/static/images/trans/baseline.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/baseline.jpg -------------------------------------------------------------------------------- /docs/static/images/trans/ori_dist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/ori_dist.png -------------------------------------------------------------------------------- /docs/static/images/trans/patch_shuf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/patch_shuf.png -------------------------------------------------------------------------------- /docs/static/images/trans/trans_color.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/trans_color.jpg -------------------------------------------------------------------------------- /docs/static/images/trans/trans_freq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/trans_freq.png -------------------------------------------------------------------------------- /docs/static/images/trans/trans_semantic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/trans_semantic.png -------------------------------------------------------------------------------- /docs/static/images/trans/trans_spatial.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/trans_spatial.jpg -------------------------------------------------------------------------------- /docs/static/images/trans/trans_structure.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/trans_structure.jpg -------------------------------------------------------------------------------- /docs/static/images/trans/trans_synth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/images/trans/trans_synth.jpg -------------------------------------------------------------------------------- /docs/static/js/bulma-carousel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/js/bulma-carousel.js -------------------------------------------------------------------------------- /docs/static/js/bulma-carousel.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/js/bulma-carousel.min.js -------------------------------------------------------------------------------- /docs/static/js/bulma-slider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/js/bulma-slider.js -------------------------------------------------------------------------------- /docs/static/js/bulma-slider.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/js/bulma-slider.min.js -------------------------------------------------------------------------------- /docs/static/js/fontawesome.all.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/js/fontawesome.all.min.js -------------------------------------------------------------------------------- /docs/static/js/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/docs/static/js/index.js -------------------------------------------------------------------------------- /download_data/CC.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/download_data/CC.md -------------------------------------------------------------------------------- /download_data/DataComp.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/download_data/DataComp.md -------------------------------------------------------------------------------- /download_data/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/download_data/README.md -------------------------------------------------------------------------------- /download_data/YFCC.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/download_data/YFCC.md -------------------------------------------------------------------------------- /download_data/download_with_resize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/download_data/download_with_resize.py -------------------------------------------------------------------------------- /download_data/process_yfcc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/download_data/process_yfcc.py -------------------------------------------------------------------------------- /download_data/sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/download_data/sample.py -------------------------------------------------------------------------------- /download_data/split.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/download_data/split.py -------------------------------------------------------------------------------- /engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/engine.py -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/main.py -------------------------------------------------------------------------------- /models/convnext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/models/convnext.py -------------------------------------------------------------------------------- /models/sentence_embed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/models/sentence_embed.py -------------------------------------------------------------------------------- /optim_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/optim_factory.py -------------------------------------------------------------------------------- /transformations/canny/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/canny/README.md -------------------------------------------------------------------------------- /transformations/canny/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/canny/transform.py -------------------------------------------------------------------------------- /transformations/caption/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/caption/README.md -------------------------------------------------------------------------------- /transformations/caption/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/caption/transform.py -------------------------------------------------------------------------------- /transformations/depth/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/depth/README.md -------------------------------------------------------------------------------- /transformations/depth/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/depth/transform.py -------------------------------------------------------------------------------- /transformations/hog/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/hog/README.md -------------------------------------------------------------------------------- /transformations/hog/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/hog/transform.py -------------------------------------------------------------------------------- /transformations/object_det/LVIS_color_map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/object_det/LVIS_color_map.json -------------------------------------------------------------------------------- /transformations/object_det/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/object_det/README.md -------------------------------------------------------------------------------- /transformations/object_det/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/object_det/transform.py -------------------------------------------------------------------------------- /transformations/sam/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/sam/README.md -------------------------------------------------------------------------------- /transformations/sam/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/sam/transform.py -------------------------------------------------------------------------------- /transformations/semantic_seg/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/semantic_seg/README.md -------------------------------------------------------------------------------- /transformations/semantic_seg/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/semantic_seg/transform.py -------------------------------------------------------------------------------- /transformations/sift/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/sift/README.md -------------------------------------------------------------------------------- /transformations/sift/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/sift/transform.py -------------------------------------------------------------------------------- /transformations/text_to_image/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/text_to_image/README.md -------------------------------------------------------------------------------- /transformations/text_to_image/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/text_to_image/transform.py -------------------------------------------------------------------------------- /transformations/trans_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/trans_utils.py -------------------------------------------------------------------------------- /transformations/uncon_gen/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/README.md -------------------------------------------------------------------------------- /transformations/uncon_gen/diffusion/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/diffusion/__init__.py -------------------------------------------------------------------------------- /transformations/uncon_gen/diffusion/diffusion_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/diffusion/diffusion_utils.py -------------------------------------------------------------------------------- /transformations/uncon_gen/diffusion/gaussian_diffusion.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/diffusion/gaussian_diffusion.py -------------------------------------------------------------------------------- /transformations/uncon_gen/diffusion/respace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/diffusion/respace.py -------------------------------------------------------------------------------- /transformations/uncon_gen/diffusion/timestep_sampler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/diffusion/timestep_sampler.py -------------------------------------------------------------------------------- /transformations/uncon_gen/environment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/environment.yaml -------------------------------------------------------------------------------- /transformations/uncon_gen/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/models.py -------------------------------------------------------------------------------- /transformations/uncon_gen/sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/sample.py -------------------------------------------------------------------------------- /transformations/uncon_gen/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/uncon_gen/train.py -------------------------------------------------------------------------------- /transformations/vae/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/vae/README.md -------------------------------------------------------------------------------- /transformations/vae/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/transformations/vae/transform.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boyazeng/understand_bias/HEAD/utils.py --------------------------------------------------------------------------------