cs762_fa21_deep_learning

This is the final project implementation for CS762 Advanced Deep Learning at UW Madison

https://github.com/dmshah4/cs762_fa21_deep_learning

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.0%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

This is the final project implementation for CS762 Advanced Deep Learning at UW Madison

Basic Info
  • Host: GitHub
  • Owner: dmshah4
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 135 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 4 years ago · Last pushed about 4 years ago
Metadata Files
Readme Citation Dei

README.md

cs762FA21Deep_Learning

This is the final project implementation for CS762 Advanced Deep Learning at UW Madison

Table of Contents

Project Structure

.
├── datasets                       # Manually curated image datasets used in the work
    └── Manual_Co_Occurance           # Dataset for research question 4
    ├── Manual_MSCOCO                 # Dataset for research question 1 and 2
    ├── Manual_Q5_dataset             # Unshuffled images for research question 3
    └── Manual_Q5_Shuffled            # Dataset for research question 3
├── Q1                             # Python notebook for research question 1 (DETR vs YOLOv3)
    └── output_images                 # Where output images from notebook are stored
├── Q2                             # Python notebooks for research question 2
    └── q2_deit_vs_resnet.ipynb       # Notebook to compare deit to resnet
    ├── q2_iou_visualization.ipynb    # Notebook to visualize Grad-CAM and ground truth bounding boxes on images
    ├── q2_iou.ipynb                  # Notebook to compute the IOU between Grad-CAM and ground truth bounding boxes
    └── output_images                 # Where output images from notebook are stored
├── Q5                             # Python notebooks for research question 3
    ├── picShuffle.ipynb              # Notebook to generated shuffled images
    ├── q5_deit_vs_resnet.ipynb       # Notebook to compare DEIT and resnet
    ├── q5_detr_vs_yolo.ipynb         # Notebook to compute DETR and YOLOv3
    ├── MATLAB_code                   # Contains all matlab scripts to draw bounding boxes on images and save to csv file
    └── output_images                 # Where output images from notebook are stored
├── Q7                             # Python notebooks for research question 4
    ├── q7_detr_vs_yolo.ipynb         # Notebook to test co-occurrence from Manual_Co_Occurance dataset
    ├── q7_trial_2.ipynb              # Notebook to test co-occurrence using object masking from new_dataset
    ├── cooccurrence_matrix           # Co-occurrence matrix for MSCOCO along with label information
    ├── new_dataset                   # Dataset for co-occurrence testing using object masking
    └── output_images                 # Where output images from notebook are stored
├── yolov3                          # Contains our modified implementation of YOLOv3 along with yolo weights and other configs
├── deit_bbox.csv                   # CSV containing Grad-CAM bounding box information for DEIT images for research question 2
├── detr_bbox.csv                   # CSV containing Grad-CAM bounding box information for DETR images for research question 2
├── resnet_bbox.csv                 # CSV containing Grad-CAM bounding box information for Resnet images for research question 2
├── yolo_bbox.csv                   # CSV containing Grad-CAM bounding box information for YOLOv3 images for research question 2
├── double.csv                      # CSV containing bounding box information for dataset Manual_Co_Occurance for research question 4
└── fullBBOX.xlsx                   # Spreadsheet file containing bounding box information for data Manual_MSCOCO for research questions 1 and 2
  • Note: we originally had 7 questions for this study, but filtered them down to just 4. As such, folders Q5 and Q7 refer to research questions 3 and 4 in our work, respectively.

Set Up

To use this repository to recreate the work shown in our paper, it should be fairly straight forward. If you keep the provided project strucutre, all you should need to modify is the dir_uri variable near the top of each of the notebooks which specifies the path to the root of this project to your own path.

Usage

We ran these notebooks on goodle drive using google collab. To get the best recreation results, please do the same.

Tips

Those with a keen eye will notice that there is much improvement for code optimization in this work. It should be fairly simple to improve the runtime efficiency of the provided notebooks if one wishes to do so.

References

Kathuria, A. (2017). Tutorial on implementing YOLO v3 from scratch in PyTorch. Retrieved 21 December 2021, from https://blog.paperspace.com/how-to-implement-a-yolo-object-detector-in-pytorch/

Owner

  • Login: dmshah4
  • Kind: user

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: >-
  Variability in Attention with Transformers in
  Object Classification and Detection
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Devesh
    family-names: Shah
    email: dmshah4@wisc.edu
    affiliation: University of Wisconsin Madison
  - given-names: Varun
    family-names: Chadha
    email: vchadha2@wisc.edu
    affiliation: University of Wisconsin Madison
  - given-names: Vignesh
    family-names: Selvaraj
    email: vselvaraj@wisc.edu
    affiliation: University of Wisconsin Madison
  - given-names: Saym
    family-names: Imatz
    email: simtiaz@wisc.edu
    affiliation: University of Wisconsin Madison

GitHub Events

Total
Last Year