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_tensor
to convert image formats. Accepts other images, URLs, or local files. - Image processing files: convenience functions like
crop_to_multiple_of_dimensions
for 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
glob
orexists
on 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mashlib-0.1.6.tar.gz
(14.5 kB
view details)
Built Distribution
mashlib-0.1.6-py3-none-any.whl
(19.5 kB
view details)
File details
Details for the file mashlib-0.1.6.tar.gz
.
File metadata
- Download URL: mashlib-0.1.6.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.10 Linux/6.5.0-26-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a413d216bf9b15b55d7cb815b89bd089603bf5e45e5333fbf921f703e6a037d |
|
MD5 | b0293ac12f68afba114c609f7387be22 |
|
BLAKE2b-256 | afe9fc9a15a2888e56cccd436fc61be56524ae4626d3eb9aef464482ae2cc815 |
File details
Details for the file mashlib-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: mashlib-0.1.6-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.10 Linux/6.5.0-26-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a1a513884a6ec16d3f39c9bade89e3ada5f9fca7478094a8a25b744590b57b9 |
|
MD5 | 5dc379e556bbe883c2c9bf078967a5dc |
|
BLAKE2b-256 | 5518781fff3ce9ef4ddba977519b0b0b88c02387534a8ad8019bc73acc04a7a8 |