Skip to main content

Package to handle image transformations

Project description



Sinapsis Image Transforms

Templates for applying image transformations using Albumentations.

🐍 Installation📦 Packages 🌐 Webapp📙 Documentation 🔍 License

This mono repo contains the sinapsis-albumentations package, featuring an extensive collection of templates for image transformation supported by the Albumentations library.

🐍 Installation

Install using your package manager of choice. We encourage the use of uv

Example with uv:

  uv pip install sinapsis-albumentations --extra-index-url https://pypi.sinapsis.tech

or with raw pip:

  pip install sinapsis-albumentations --extra-index-url https://pypi.sinapsis.tech

📦 Packages

Sinapsis albumentations

The Sinapsis Albumentations package provides a collection of templates for applying image transformations using Albumentations.

For specific instructions and further details, see the sinapsis-albumentations README.

🌐 Webapp

The webapp provides an interactive interface to visualize and experiment with image transformations in real time.

[!IMPORTANT] To run the app you first need to clone this repository:

git clone git@github.com:Sinapsis-ai/sinapsis-image-transforms.git
cd sinapsis-image-transforms

[!NOTE] If you'd like to enable external app sharing in Gradio, export GRADIO_SHARE_APP=True

🐳 Docker
  1. Build the sinapsis-image-transforms image:
docker compose -f docker/compose.yaml build
  1. Start the app container:
docker compose -f docker/compose_apps.yaml up sinapsis-albumentations-gradio -d
  1. Check the status:
docker logs -f sinapsis-albumentations-inference-gradio
  1. The logs will display the URL to access the webapp, e.g.:

NOTE: The url can be different, check the output of logs

Running on local URL:  http://127.0.0.1:7860
  1. To stop the app:
docker compose -f docker/compose_apps.yaml down
💻 UV

To run the webapp using the uv package manager, please:

  1. Create the virtual environment and sync the dependencies:
uv sync --frozen
  1. Install the wheel:
uv pip install sinapsis-image-transforms[all] --extra-index-url https://pypi.sinapsis.tech
  1. Run the webapp:
uv run webapps/gradio_albumentations_transforms_visualizer.py
  1. The terminal will display the URL to access the webapp, e.g.:

NOTE: The url can be different, check the output of the terminal

Running on local URL:  http://127.0.0.1:7860

📙 Documentation

Documentation for this and other sinapsis packages is available on the sinapsis website

Tutorials for different projects within sinapsis are available at sinapsis tutorials page

🔍 License

This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.

For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.

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

sinapsis_image_transforms-0.2.3.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

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

sinapsis_image_transforms-0.2.3-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file sinapsis_image_transforms-0.2.3.tar.gz.

File metadata

File hashes

Hashes for sinapsis_image_transforms-0.2.3.tar.gz
Algorithm Hash digest
SHA256 f5d28d94502bfacbbbeebf362d9b9965e89a7c2fce346e1745b4e19d180a135e
MD5 3617945f768d44e4896b2f83d52eec5e
BLAKE2b-256 1484982bb3bc9e47e9c8b5aad4a34e1db28e2bf7f2f0998faa6bec92954451b1

See more details on using hashes here.

File details

Details for the file sinapsis_image_transforms-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sinapsis_image_transforms-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 873e38a93a80562a2658e4566c259ffc4e09b93d8fcfc1848dc69afd895272c8
MD5 d050c17c5c6bd00bd84047a134899548
BLAKE2b-256 a7092afcd93f84372f58e4adb6b25980c54c994ebd791887b207f81a8b4c2846

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