Toolset for model training and creation of pipelines
Project description
Glow Library
Collection of tools for easier prototyping with deep learning extensions (PyTorch framework)
Overview
...
Installation
For basic installation use:
pip install glow
Specific versions with additional requirements
pip install glow[nn] # For cv/neural network extras
pip install glow[io] # For I/O extras
pip install glow[all] # For all
Structure
glow.*
- Core parts, available out the boxglow.cv.*
- Tools for computer vision tasksglow.io.*
- I/O wrappers to access data in convenient formatsglow.transforms
- Some custom-made augmentations for dataglow.nn
- Neural nets and building blocks for themglow.metrics
- Metric to use while training your neural network
Core features
glow.mapped
- convenient tool to parallelize computationsglow.memoize
- use if you want to reduce number of calls for any function
IO features
glow.io.TiledImage
- ndarray-like reader for multiscale images (svs, tiff, etc...)
CTypes-based replacement of torchslide
(deprecated).
from glow.io import read_tiled
slide = read_tiled('test.svs')
shape: tuple[int, ...] = slide.shape
scales: tuple[int, ...] = slide.scales
image: np.ndarray = slide[:2048, :2048] # Get numpy.ndarray
glow.io.Sound
- playable sound wrapper
from datetime import timedelta
import numpy as np
from glow.io import Sound
array: np.ndarray
sound = Sound(array, rate=44100) # Wrap np.ndarray
sound = Sound.load('test.flac') # Load sound into memory from file
# Get properties
rate: int = sound.rate
duration: timedelta = sound.duration
dtype: np.dtype = sound.dtype
# Plays sound through default device, supports Ctrl-C for interruption
sound.play()
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
glow-0.10.5.tar.gz
(68.6 kB
view details)
Built Distribution
File details
Details for the file glow-0.10.5.tar.gz
.
File metadata
- Download URL: glow-0.10.5.tar.gz
- Upload date:
- Size: 68.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6394613475860f7d5c4311a1aa210803d6cfd0e70d81e0da76072e456344240 |
|
MD5 | 2f4d23b6ff4351b1a9e9f8139d634ea0 |
|
BLAKE2b-256 | 39cf6fc5ea8f0cd31699f61c631cc65884d325868948210e4aa94edea6211ace |
File details
Details for the file glow-0.10.5-py3-none-win_amd64.whl
.
File metadata
- Download URL: glow-0.10.5-py3-none-win_amd64.whl
- Upload date:
- Size: 4.0 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759fd19d73efb1b56f39677c706ebdb14c53ae882002e6169d26715421e56a74 |
|
MD5 | d1c5730dbc315e47bfa1563039689336 |
|
BLAKE2b-256 | eecd6fe14c835d25d98b3a4f9a13b650d8c923bc60d678efc4906842b199f517 |