Skip to main content

Common library tools for Moonshine AI

Project description


Shared utility functions powering Moonshine tools.

Documentation PyPi Version PyPi Package Version PyPi Downloads Chat on Slack License


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:

  1. Easy image conversion: simply call to_pil, to_numpy, and to_tensor to convert image formats. Accepts other images, URLs, or local files.
  2. Image processing files: convenience functions like crop_to_multiple_of_dimensions for transformer based patch models like ViT.
  3. Console UI: for long running jobs, a fullscreen console utility that has a progress bar at the bottom and text logging.
  4. Cloud functions: use glob or exists 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 hashes)

Uploaded Source

Built Distribution

mashlib-0.1.6-py3-none-any.whl (19.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page