Common library tools for Moonshine AI
Project description
Shared utility functions powering Moonshine tools.
What is Mash?
Mash is a straightforward utility library for common tasks in computer vision and deep model training. The library was broken out of previous Moonshine projects like Moonshine and Zeroshot.
What can Mash Do?
Mash broadly supports a few utilities, but the main ones are:
- Easy image conversion: simply call
to_pil,to_numpy, andto_tensorto convert image formats. Accepts other images, URLs, or local files. - Image processing files: convenience functions like
crop_to_multiple_of_dimensionsfor transformer based patch models like ViT. - Console UI: for long running jobs, a fullscreen console utility that has a progress bar at the bottom and text logging.
- Cloud functions: use
globorexistson AWS or GCS links.
For a complete list of functions, see the documentation
Installation
To install via pip:
pip install mashlib
Usage
To use:
# Import base package
import mash
# Import image processing
import mash.images as mi
image = mi.to_numpy("/path/to/image.png")
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mashlib-0.1.9.tar.gz.
File metadata
- Download URL: mashlib-0.1.9.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.0 Linux/5.15.0-125-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42e895e636d292c67269b7278fd6f4e6cb6fe82412b132160787fc69970e38e6
|
|
| MD5 |
99a2a3613ea922ecd8a0ced1f9c20f46
|
|
| BLAKE2b-256 |
6f7a6e5022406045646f5e54638f5956bbf35882a27e000f69e757b28c2c4df3
|
File details
Details for the file mashlib-0.1.9-py3-none-any.whl.
File metadata
- Download URL: mashlib-0.1.9-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.0 Linux/5.15.0-125-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46388961f4cf7cca63c128fad6cb52fd4dea69068751cff3166b93c95d45d7cd
|
|
| MD5 |
6bf6b7c3f13f66268e8792893bdc6c7a
|
|
| BLAKE2b-256 |
a69d7817aa37c5acbfb8df133dc36c6276441dbb258889a2cdd00d4da932e4e1
|