Skip to main content

Lightweight library supporting universal functions for the DeepLabCut ecosystem

Project description

Generic badge Code style: blackLicense: LGPL v3

DLClibrary

DLClibrary is a lightweight library supporting universal functions for the DeepLabCut ecosystem.

Supported functions (at this point):

Quick start

Install

The package can be installed using pip:

pip install dlclibrary

:warning: warning, the closely named package dlclib is not an official DeepLabCut product. :warning:

Example Usage

Downloading a pretrained model from the model zoo:

from pathlib import Path
from dlclibrary import download_huggingface_model

# Creates a folder and downloads the model to it
model_dir = Path("./superanimal_quadruped_model")
model_dir.mkdir()
download_huggingface_model("superanimal_quadruped", model_dir)

How to add a new model?

Pick a good model_name. Follow the (novel) naming convention (modeltype_species), e.g. superanimal_topviewmouse.

  1. Add the model_name with path and commit ID to: https://github.com/DeepLabCut/DLClibrary/blob/main/dlclibrary/dlcmodelzoo/modelzoo_urls.yaml

  2. Add the model name to the constant: MODELOPTIONS https://github.com/DeepLabCut/DLClibrary/blob/main/dlclibrary/dlcmodelzoo/modelzoo_download.py#L15

  3. For superanimal models also fill in the configs!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dlclibrary-0.0.6.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

dlclibrary-0.0.6-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file dlclibrary-0.0.6.tar.gz.

File metadata

  • Download URL: dlclibrary-0.0.6.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for dlclibrary-0.0.6.tar.gz
Algorithm Hash digest
SHA256 8ecd1dc8db1a10a6cd3b286d195f0b9244713131da46ad6b081354c87e946b20
MD5 151ceb8c71841552a34f257d98e1a9fb
BLAKE2b-256 32a7312dc8eef3be9a2cda59b88a1c7f03854d047fdc953be2498e3fbf15f24a

See more details on using hashes here.

File details

Details for the file dlclibrary-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: dlclibrary-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for dlclibrary-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ff5bd31b4e240b69455ca55eeb0caea96ec5932b20e52470a631d3a4355fed36
MD5 da76e5093852889f2c9efca565bb1c7c
BLAKE2b-256 5bd73cd676b093401f66486011eb27e964f3c786ea7b3f17d94ba5c48b2c9b29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page