Skip to content

timwhite0/smcdet

Repository files navigation

Probabilistic object detection with sequential Monte Carlo samplers

Let $x$ denote an image. Let $s$ denote the number of objects in the image, and let $z_{(s)} = \{\ell_{(s)}^j, f_{(s)}^j\}$ denote the properties of the $s$ objects, where $\ell_j$ is the location of object $j$ and $f_j$ are the other features of object $j$ (e.g, brightness, shape). Let $s \cup z_{(s)}$ denote a catalog of latent random variables that describes the image. Assume that a domain-specific forward model (i.e., a prior $p(s) p(z_{(s)} \vert s)$ and a likelihood $p(x \mid z_{(s)}, s)$ can be evaluated for any particular $x$ and $s \cup z_{(s)}$. We use sequential Monte Carlo samplers to sample from the posterior $p(s, z_{(s)} \mid x)$.

Our motivating scientific example is the detection and deblending of stars in astronomical images. Please see notebooks/example.ipynb and experiments for some examples. Other potential applications of our algorithm include cell detection in microscopy images and tree crown delineation in satellite images.

To use the code in this repository, please follow these steps:

  1. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Clone smcdet
git clone git@github.com:timwhite0/smcdet.git
  1. Create and activate a virtual environment
cd smcdet
uv venv .venv
source .venv/bin/activate
  1. Install dependencies
uv sync

About

Probabilistic object detection with sequential Monte Carlo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors