A helper package to launch DeepLabCut docker images
Project description
DeepLabCut Docker containers
For DeepLabCut 2.2.0.2 and onwards, we provide container containers on DockerHub. Using Docker is an alternative approach to using DeepLabCut, which only requires the user to install Docker on your machine, vs. following the step-by-step installation guide for a Anaconda setup. All dependencies needed to run DeepLabCut in terminal or GUI mode, or running Jupyter notebooks with DeepLabCut pre-installed are shipped with the provided Docker images.
Advanced users can directly head to DockerHub and use the provided images there. To get started with using the images, we however also provide a helper tool, deeplabcut-docker
, which makes the transition to docker images particularly convenient; to install the tool, run
$ pip install deeplabcut-docker
on your machine (potentially in a virtual environment, or an existing Anaconda environment). Note that this will not disprupt or install Tensorflow, or any other DeepLabCut dependencies on your computer---the Docker containers are completely isolated from your existing software installation!
Usage modes
With deeplabcut-docker
, you can use the images in three modes.
- Note 1: When running any of the following commands first, it can take some time to complete (a few minutes, depending on your internet connection), since it downloads the Docker image in the background. If you do not see any errors in your terminal, assume that everything is working fine! Subsequent runs of the command will be faster.
- Note 2: The Terminal mode image can be used on all supported plattforms (Linux and MacOS). The GUI images can only be considered stable on Linux systems as of DeepLabCut 2.2.0.2 and need additional configuration on Mac.
GUI mode
To run DeepLabCut in GUI mode and start the DeepLabCut GUI, simply run
$ deeplabcut-docker gui
which will pull the latest DeepLabCut version along with all dependencies, and afterwards opens the DeepLabCut GUI.
The DeepLabCut version in this container is equivalent to the one you install with pip install "deeplabcut[gui]"
.
Terminal mode
If you not need the GUI, you can run the light version of DeepLabCut and open a terminal by running
$ deeplabcut-docker bash
Inside the terminal, you can confirm that DeepLabCut is correctly installed by running
$ ipython
>>> import deeplabcut
>>> print(deeplabcut.__version__)
2.2.0.2
Jupyter Notebook mode
Finally, you can run DeepLabCut by starting a jupyter notebook server. The corresponding image can be pulled and started by running
$ deeplabcut-docker notebook
which will start a Jupyter notebook server. Follow the terminal instructions to open the notebook, by entering http://127.0.0.1:8888
in your favorite browser. When prompted for a password, use deeplabcut
, which is the pre-set option in the container.
The DeepLabCut version in this container is equivalent to the one you install with pip install deeplabcut[gui]
. This means that you can start the DeepLabCut GUI with the appropriate commands in your notebook!
Advanced usage
Advanced users and developers can visit the /docker
subdirectory in the DeepLabCut codebase on Github. We provide Dockerfiles for all images, along with build instructions there.
Notes and troubleshooting
Running Docker with GUI support can vary across systems. The current images are confirmed to work with different Linux systems, but especially on MacOS additional configuration steps are necessary.
When running containers on Linux, in some systems it might be necessary to run host +local:docker
before starting the image via deeplabcut-docker
.
If you encounter errors while using the images, please open an issue in the DeepLabCut repo---especially the deeplabcut-docker
is still in its alpha version, and we appreciate user feedback to make the tool robust to use across many operating systems!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deeplabcut-docker-0.0.10a0.tar.gz
.
File metadata
- Download URL: deeplabcut-docker-0.0.10a0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9678282a944c7293bbf53f0ab3eb0fd93d3bfeaf4afe45c8983b4bdd23d36654 |
|
MD5 | 8c07ecbb6ff54c3eb18290a27b4c8d0d |
|
BLAKE2b-256 | db7154e58dec9e16fb0dd43279d342f32334c63171804fd0effee0ee393cd5c5 |
File details
Details for the file deeplabcut_docker-0.0.10a0-py2.py3-none-any.whl
.
File metadata
- Download URL: deeplabcut_docker-0.0.10a0-py2.py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0afab28134f04884d8c783ddec11e3661292f624b1a38ec268b42fd566c592a7 |
|
MD5 | 033737046a11bc03667cfe03b7e87919 |
|
BLAKE2b-256 | 8c27d637002b14012d103b23ecdcbb50c5e6d0f5e7106419c70e54a4fb4428e2 |