GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DLCutils/transform_and_scale at master · DeepLabCut/DLCutils

Expand file tree

/

transform_and_scale

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

transform_and_scale

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
__pycache__
__pycache__
 
 
test_data
test_data
 
 
DLCTransformer.py
DLCTransformer.py
 
 
README.md
README.md
 
 
config.yaml
config.yaml
 
 
read_config.py
read_config.py
 
 
transform_and_scale_tutorial.ipynb
transform_and_scale_tutorial.ipynb
 
 

README.md

Outline

Easy transformation and scaling of DeepLabCut Data

Background

DeepLabCut is a widely used markerless pose estimation toolbox in behavioral science. The output of DeepLabCut is coordinates in pixels for each frame for each marker. However, in most cases the coordinates first need to be translated (i.e. adapted to the coordinate-space of the behavioral maze) and scaled (e.g. to cm) to enable meaningful behavioral quantification.

Functionality

The Transform_DLC repository takes care of a specific task: It takes DeepLabCut dataframes as the input and outputs transformed and scaled DeepLabCut dataframes. Requirements for this transformation and scaling are that the behavioral maze or a reference has to be rectangular and its corners have to be tracked with DeepLabCut.

Usage

For an example usecase check out the tutorial notebook!

  1. Set hyperparameter in config file: Specify the name of the horizontal and vertical basis vector markers (in a rectangular maze these are two opposing corners) and the origin (the corner that connects the two basis vector corners). Additionally, set the DeepLabCut-likelihood threshold for those markers, and the scale factors (optional, if you don´t need scaling set them to 1). For quality control set show_angle to True.

  2. Instantiate the DLCTransformer class with the filepath to your DeepLabCut tracked data and the config-filepath.

  3. Use .run on your instantiated class object and save the output in a variable of your choice.

Contribution

This is a Defense Circuits Lab project written by Michael Schellenberger for DLCutils.

DefenseCircuitsLab
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.