Deep learning-enabled image analysis of the yeast full life cycle
Project description
YeastVision
Installation
Local installation (< 2 minutes)
System requirements
This package supports Linux, Windows and Mac OS. Mac Os should be later than Yosemite. This system has been heavily tested on Linux and Mac OS machines, and less thoroughly on Windows.
Instructions
If you have an older yeastvision environment you should remove it with conda env remove -n yeastvision before creating a new one.
Yeastvision is ready to go for cpu-usage as soon as it downloaded. GPU-usage requires some additional steps after download. To download:
- Install an Anaconda distribution of Python. Note you might need to use an anaconda prompt if you did not add anaconda to the path.
- Open an anaconda prompt / command prompt which has
condafor python 3 in the path - Create a new environment with
conda create --name yeastvision python=3.10.o. - Activate this new environment by running
conda activate yeastvision - Run
python -m pip install yeastvisionto download our package plus all dependencies - Download the weights online.
- Run
install-weightsin the same directory as the yeastvision_weights.zip file
You should upgrade yeastvision (package here) periodically as it is still in development. To do so, run the following in the environment:
python -m pip install yeastvision --upgrade
Using YeastVision with Nvidia GPU
Again, enusre your yeastvision conda environment is active for the following commands.
To use your NVIDIA GPU with python, you will first need to install the NVIDIA driver for your GPU, check out this website to download it. Ensure it is downloaded and your GPU is detected by running nvidia-smi in the terminal.
Next we need to remove the CPU version of torch:
pip uninstall torch
To install the GPU version of torch, follow the instructions here. The conda install is strongly recommended, and then choose the CUDA version that is supported by your GPU (newer GPUs may need newer CUDA versions > 10.2). For instance this command will install the 11.6 version on Linux and Windows (note the torchvision and torchaudio commands are removed because yeastvision doesn't require them):
conda install pytorch pytorch-cuda=11.6 -c pytorch -c nvidia
If you are unable to install the package using the command above, try an older version like cuda 11.3:
conda install pytorch==1.12.0 cudatoolkit=11.3 -c pytorch
Info on how to install several older versions is available here.
After install you can check conda list for pytorch, and its version info should have cuXX.X, not cpu.
Run yeastvision locally
The quickest way to start is to open the GUI from a command line terminal. Activate the correct conda environment, then run:
yeastvision
To get started, drop an image or directory of images into the GUI.
Masks can be loaded by dropping them into the top half of the screen.
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
File details
Details for the file yeastvision-0.1.7.tar.gz.
File metadata
- Download URL: yeastvision-0.1.7.tar.gz
- Upload date:
- Size: 84.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b124d8d40e99b0d3010dd007e8ef2b411f1e35e72377ef89901f396ce0b2d521
|
|
| MD5 |
69712d0f533183f81241a69576bbea8f
|
|
| BLAKE2b-256 |
025403ef7feb5a069c9ec29c9cc8bd7d30900248c1f02a425ca240a5698b718e
|