Coder Social home page Coder Social logo

keypoint_moseq's Introduction

Best to work on a Remote SSH on argo-comp1 or argo-comp2 in VS Code.

SSH <net_id>@argo-comp1 OR SSH <ned_id>@argo-comp2

  1. Set up environment -- install keypoint_moseq env through pip, not conda (buggy) https://keypoint-moseq.readthedocs.io/en/latest/install.html

  2. (some is this is a part of Part 1) Pull from github and in the keypoint_moseq Conda env, do the following: -- keypoint-moseq https://github.com/dattalab/keypoint-moseq

    cd keypoint_moseq pip install keypoint-moseq -- jax-moseq https://github.com/dattalab/jax-moseq.git cd jax-moseq git checkout dev pip install .

  3. Run 1_keypoint_moseq_model.ipynb file, takes around ~2 hours to run for 1 one-hour video h5 file -- this file was written with help from here https://keypoint-moseq.readthedocs.io/en/latest/modeling.html (use this to understand commands or change something) -- computer must be left on -- if it sleeps or shuts down, you lose remote connection and code stops running -- only run unfiltered h5 files (otherwise messes with skeleton in config.yml & data size). The data NEEDS edge information. -- videos and associated h5 files must have the same name, just diff. extension (.mp4 and .h5) in video_dir -- noise calibration step doesn't work in jupyter notebooks (even with VS code), must be run in jupyter lab (can safely be skipped if needed) -- may run into GPU memory issues when fitting model - check the GPU's status with "nvidia-smi" in terminal before running any long code -- can also check memory usage by running "nvidia-smi --query-gpu=memory.used,memory.total --format=csv" in terminal (more simplified output) -- if you update the skeleton, or change use_bodyparts in the config.yml file, then you need to rerun the PCA

  4. Run 2_keypoint_moseq_stats.ipynb file. -- more info to be added -- you should still be able to get all the plots you need if you don't have two groups (control and case) -- you'll still get errors, but the plots will be there.

  5. Run 3_keypoint_moseq_custom_stats.ipynb file. -- generate boxplots, PCA plots

  6. Run 4_keypoint_moseq_classifier.ipynb file. -- will need to pip install graphviz into the conda environment

Other Information -- Keypoint Moseq FAQ page answers several questions so best to check there first: https://keypoint-moseq.readthedocs.io/en/latest/FAQs.html#troubleshooting -- Keypoint Moseq has an active Slack channel. Questions are answered within a couple hours (latest, 1 day): https://join.slack.com/t/moseqworkspace/shared_invite/zt-27bvnbe78-D69h3fnzH_7uGTo1yWrGRA -- code works best in argo-comp1 and argo-comp2, however, there is more memory available in argo-comp1 so use that to be safe

keypoint_moseq's People

Contributors

anushaggs avatar

Watchers

Beryl Jones avatar Andrew Webb avatar

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.