holoviz-topics / holodoodler

7 stars 4 forks source link

Doodler

This repository hosts Doodler, a Python application that allows interactive construction of sparse labeling for image segmentation using deep neural networks.

Project background

Deep neural networks have proven to be powerful tools for automatic classification of images (e.g. identifying regions of sand, water and vegetation from drone-collected beach images). These techniques are used extensively by USGS researchers to understand how beach and coastal environments are impacted by storms and other events. The first step in using this technique is sparsely annotating a collection of images by hand to train the models.

The USGS currently has an open source package - dash-doodler - that performs the task, but does not run in multi-user JupyterHub environments. The USGS needs a version that is fully usable from Jupyter Notebooks so that researchers, interns and volunteers can effectively start working immediately in a JupyterHub environment.

The USGS seeks to achieve this goal by using the HoloViz/Panel ecosystem, which will integrate into their existing deployed JupyterHub environment.

Installation

Run the following command to create a conda environment named doodler-dev:

conda env create --file environment_dev.yaml

Development

The application currently lives in two places:

The notebook can be opened with:

jupyter lab doodler_nb.ipynb

The application can be launched with:

panel serve app.py --show

Note that the application could also be launched with the following command:

panel serve doodler_nb.ipynb

Video (not up to date)

This video shows the notebook content, how to use the application and the state of the application when deployed.

https://user-images.githubusercontent.com/35924738/147021690-5e525c4c-326a-491b-9d27-994250ff9fbb.mp4