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.9.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mashlib-0.1.9-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

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

Hashes for mashlib-0.1.9.tar.gz
Algorithm Hash digest
SHA256 42e895e636d292c67269b7278fd6f4e6cb6fe82412b132160787fc69970e38e6
MD5 99a2a3613ea922ecd8a0ced1f9c20f46
BLAKE2b-256 6f7a6e5022406045646f5e54638f5956bbf35882a27e000f69e757b28c2c4df3

See more details on using hashes here.

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

Hashes for mashlib-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 46388961f4cf7cca63c128fad6cb52fd4dea69068751cff3166b93c95d45d7cd
MD5 6bf6b7c3f13f66268e8792893bdc6c7a
BLAKE2b-256 a69d7817aa37c5acbfb8df133dc36c6276441dbb258889a2cdd00d4da932e4e1

See more details on using hashes here.

Supported by

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