Giter VIP home page Giter VIP logo

dappy's Introduction

3D Animal Pose Analysis in Python

Module for analysis of 3D animal pose sequences. Based on work by Berman et al. (2014) and Marshall et al. (2020).

Installation

Install the latest version of Miniconda on your machine.

The following steps will clone this repository, set up your conda environment, and install dappy.

Use environment.yml if you're on a Linux machine, and environment_osx.yml for Mac.

git clone https://github.com/joshuahwu/dappy.git
cd dappy
conda env create -n dappy -f environment.yml
conda activate dappy
conda install -c conda-forge opentsne
pip install -e .

Note that pip and setuptools must be updated to the most recent versions.

To begin gaining familiarity with the functionality of this package, download the demo dataset at this link or with the command line as follows:

cd dappy
wget -v -O ./tutorials/data/demo_mouse.h5 -L https://duke.box.com/shared/static/zprn76pl31a9u1pp6gvxbmehn7p9zmbx.h5 

and run through the code in /tutorials/tutorial.ipynb.

Authors

dappy's People

Contributors

joshuahwu avatar mzhu22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dappy's Issues

Augmentations

Implement functions for easily creating augmentations/perturbations of features.

This includes joint ablation, speed, pitch angle, noise, and mirror augmentations.

Clustering module

  • Separate out watershed from embed.py and create new sub-module called cluster
  • Implement GMM clustering from sklearn
  • Test GMM clustering on wavelet transformed data

PCA Memory Efficiency

PCA implemented in features.pca() is current a memory-limiting step in the analysis pipeline. We use the fast randomized implementation in the fbpca package.

Here are some things we should implement.

  • Downsample frames in dataset. Calculate PC loadings on that set. Project rest of data using PC loadings.
  • Save PC loadings to file.
  • Batch updating of PC loadings w/incremental PCA
  • Create tests using diffsnorm to measure difference in PC scores using these approximations
  • Visualize eigenpostures

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.