Skip to content

Project 2 for APPM 5720. Using DMD for foreground-background segmentation.

License

Notifications You must be signed in to change notification settings

joshmyersdean/DMD_Background_Modeling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DMD for Background Modeling

Authors: Josh Myers-Dean, Leonardo Orozco, and Wenhao Wang

Foreground Modeling using DMD tutorial for the Paper Compressed dynamic mode decomposition for background modeling by Erichson et al.

This supplements the presentation for APPM 5720: Data Driven Modeling. Slides

Dataset

We will be using the SegTrackV2 dataset from Oregon State. This is a binary segmentation dataset with pixel-level annotations and will work well for this tutorial. While some videos only have few frames, there are categories with sufficiently many frames.

Instructions

  1. Open the notebook dmd.ipynb
  2. Click On Open in colab
  3. Click Runtime -> Run All for default configurations
  4. mIoU and F1 score plots are saved to the current directory, see cell 15 for filename format. This will allow you to compare different configurations of (c)DMD and their effect on evaluation metrics

Places to Change

  • Try adding noise (cell 9)
  • Use regular DMD instead of compressed (cell 10)
  • Change the SVD Rank from 0 (optimized fit) to something like 2 or 3 (cell 10)
  • Try not using the optimized DMD (cell 10)
  • Change compression matrix for compressed DMD (cell 10)
  • Change the amount of modes, K, to use for static background model (cell 12)
  • View how the segmentation visually changes with differing thresholds (cell 16)
  • Use a different video! (cell 5, then Run All)

About

Project 2 for APPM 5720. Using DMD for foreground-background segmentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published