Coder Social home page Coder Social logo

mccutcheonlab / machine_learning_tools Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 104.16 MB

In this repository we store and share scripts, data, training models, etc used for tracking or evaluating behavioural videos via DLC, SIMBA and other potential ML tools.

License: MIT License

Jupyter Notebook 98.10% C++ 1.90%
behavioural-tracking deeplabcut machinelearning

machine_learning_tools's Introduction

MACHINE_LEARNING_TOOLS

This readme file is Under Construction

This repository was created through a collaboration between McCutcheon Lab at UiT and NDF at DIfE and is meant to serve as a place to store and share scripts, data, training models, etc used for tracking animals or evaluating behavioural videos via DLC, SIMBA, SLEAP and other potential machine learning tools.

DeepLabCut(DLC)

DLC_Installation

  • There are several ways to install DLC on Windows OS, e.g. installing from the scratch, using .ymal file or cloneing the repository. The process of installation is described here DeepLabCut by the authors of DLC.

  • Here I document my own experience of installing DLC via creating a virtual environment from scratch.

  • before starting I recommend taking a look at CONDA_CHEATSHEET which includes a set of essential commands for managing virtual evnrionments.

  • Moreover, take a look at this Coding_Map to have an idea of "how everything fits together" in terms of virtual environments.

1 Install Anaconda on the local machine(a technical term for "your computer")
2 Run the Anaconda prompt as administrator (especially on Windows, DLC requires admin rights to run properly)
  • In case the pathway shown at the terminal is /system32 , it is recommended to switch to the root of the directory via CD command, i.e. cd c\
3 Lets first check the version of Conda and if it is not the latest version you can use the command below to upgrade it
        conda update -n base -c defaults conda
4 install git and pip using the commands below
        conda install -c anaconda git
        conda install pip
5 Now you should have all the essentials for creating a virtual environment on you anaconda, in the command line type
        conda create --name DeepLabCut python=3.8

note: instead of DeepLabCut you can use any other name

6 After a while the environment is created, switch to you newly created environment using the command below:
        conda activate DeepLabCut
7 Now you will notice that in your terminal, instead of (base) c:/ you are located in (DeepLabCut) c:/
8 At this stage, you will need to install some necessary packages on your virtual environment before running DLC as follows, run one by one:
        conda install -c anaconda cudatoolkit =11.7
        pip install --upgrade tensorflow==2.10.0
        conda install -c conda-forge cudnn=8.4.1.50

note: after installation is done, you can check the version and validity of your installation using the command below:

        conda list name_of_the_package
        e.g:
        conda list tenosrflow
9 Now you can use the command below to install DLC(GUI based version, recommended)
        pip install "deeplabcut[gui,tf]
10 You can install jupyter lab in your environment using the command below
        pip install jupyterlab
        or
        conda install -c conda-forge jupyterlab

note: you can not access DLC if you are running Jupyter Lab from the (base) environment, in another term, you have to run Jupyter lab from (DeepLabCut) environment to be able to import DLC

11 Two ways to run DLC from your virtual environment:
  • Use the command in the terminal to directly run the GUI:

          python -m deeplabcut
    

A new window will appear.

  • Use Jupyter Lab or notebook, i.e type the command below in the terminal (DeepLabCut) c:/>

          Jupyter lab
    

After Jupyterlab opens up, in the first cell type the code below:

        import deeplabcut

machine_learning_tools's People

Contributors

davidnorman35 avatar francois7d avatar htbibalan 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.