Skip to content

bnel1201/hog_finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HedgeHog Finder

Making dataset

slicer annotation

Segmentation

  • The current version utilizes transfer learning and data augmentation with the fastai library to train a segmentation model with a small hand-annotated dataset
python segmentation/hedgiefinder.py path/to/hedgehog_video.mp4

finder gif

Continuous training

model assisted annotation

prepare_dataset includes option to convert corrected nrrd files

Analysis

  • using the segmentation maps generated with hedgiefinder, Xiaomi's location over time can be tracked as the coordinates (x, y) at the center of each segmentation, (found using sci-kit image regionprops)
    • label_centers is the relevant script for finding these coordinates
    • Finally, the sum of all these points over time is overlaid across a single from using where_is_xiaomi.py to get a heat map of the night's activity

hedhedgehog activity map

Other Applications

from hedgiefinder import predict_overlay_url
 predict_overlay_url('old/vid1.mp4', 'https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/mozi
   ...: lla/36/pile-of-poo_1f4a9.png', videoname = 'stinky_girl.mp4', sz = (100, 100))

star hog

Making a web app

fastai/fastai#1482

Running Docker

docker run --ipc=host --gpus all -p 8888:8888 fastdotai/fastai ./run_jupyter.sh

got errors if I didn't have ipc==host

to use gpus needed a special wsl nvidia cuda drivers installed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published