Skip to content

BraiDyn-BC/python-ks-mesoscaler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-mesoscaler

MesoNet algorithms made modular.

Requirements

Note that the original MesoNet library is not necessary (but may be useful as a source of information about how it works).

It is recommended that you set up the DeepLabCut environment before installing this package.

Downloading the MesoNet landmark-prediction model

By default, we use the landmark-prediction model provided for the original MesoNet library. Follow the steps below to download and prepare the model (you can omit this step in case you already have the original MesoNet up and running).

  1. Open this OSF repository
  2. Navigate in the "Files" pane: MesoNet/OSF Storage/6_Landmark_estimation_model
  3. Follow the link at: atlas-DongshengXiao-2020-08-03.zip
  4. In the opened link, you will find the file name (atlas-DongshengXiao-2020-08-03.zip) as the headline. Locate the tri-colon [ ⁝ ] button, and click it.
  5. Click the 'Download' menu, and wait until downloading is done.
  6. Extract the contents of the ZIP file, and locate it wherever permanent.

The 'DeepLabCut project directory' must contain the config.yaml file as the first-order child (not as the child of any child directories). Make sure it is the case.

Installation

Note

We recommend setting up DeepLabCut beforehand for your environment

Currently, only installing from this repository is supported:

git clone git@github.com:BraiDyn-BC/python-ks-mesoscaler.git
cd python-ks-mesoscaler
pip install .  # add the `-e` switch in case you plan to modify the code

Caution

In some cases, pip may refuse to install the executable to the non-user environments (and recommends to add --user), or compalains that the installation path is not included as PATH.

Try running your terminal emulator (e.g. Anaconda Prompt) in the admin mode in such cases.

At this point, also specify the MESONET_DLC_PROJECT_DIR environment variable so that the library can find the path to your DeepLabCut project folder containing the landmark-inference network.

If the config.yaml file of the DeepLabCut project is found at the path D:\library\atlas-DongshengXiao-2020-08-03\config.yaml, Then register the path D:\library\atlas-DongshengXiao-2020-08-03 as MESONET_DLC_PROJECT_DIR.

Usage

See our HOWTO page.

For the resulting file structure, refer to the file structure page.

License

Most source code and documentation

(c) 2023-2024 Keisuke Sehara, the MIT License

The DOI for reference will be obtained soon.

Reference atlas data

The following files are attributable to:

(c) 2019 Forys, Xiao, and Murphy lab, CC-BY 4.0

  • mesoscaler/landmarks/reference.py
  • all the binary files in the mesoscaler/data directory.

Cite Xiao et al., 2019 Nat Commun paper.

About

MesoNet algorithms made modular.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors