Skip to main content

Python library for AI-powered image manipulation.

Project description

PyImagine

License Release Latest Version

PyImagine is a Python library for AI-powered image manipulation. It provides a simple interface to interact with an image manipulation service, allowing you to perform various operations on images.

Features

  • Generate inspired images based on predefined prompts and styles.
  • Apply variations to images based on prompts, strengths, and styles.
  • Enhance image resolution and quality using AI-powered upscaling.
  • Generate prompts based on the content of images.
  • Fill in missing or corrupted parts of images.
  • Remix images by applying control prompts, strengths, and styles.
  • Fix and enhance facial features in images.

Installation

You can install PyImagine using pip:

pip install pyimagine

Usage

Here's a basic example of how to use PyImagine:

from pyimagine import Arta
from pyimagine.constants import Style

# Initialize Imagine
arta = Arta()
arta.signupNewUser()

# Generate from inspiration
inspired_image = arta.infer(prompt="Create something amazing!", style=Style.REALISTIC_2)

# Prompt from image
original_image = open('image.jpg', 'rb').read()
prompt_image = arta.image2text(original_image, language_code='en')

# And more...

For more information on how to use PyImagine, please refer to the documentation.

Disclaimer

PyImagine is an unofficial library and is not affiliated with or endorsed by Vyroai or Aiby. The library is provided "as is" without any warranty, and the usage of this library is at your own risk. Make sure to comply with the terms and conditions of the Imagine service while using this library.

License

This project is licensed under the GPL v3 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

pyimagine-3.3.8.tar.gz (34.5 kB view details)

Uploaded Source

File details

Details for the file pyimagine-3.3.8.tar.gz.

File metadata

  • Download URL: pyimagine-3.3.8.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for pyimagine-3.3.8.tar.gz
Algorithm Hash digest
SHA256 24f0ce9b712e5bad17ead70e6d92ae3ee0155881f7a57360d8cc122e130fedac
MD5 28a36c25bf4571b1be9ef35bf45203f3
BLAKE2b-256 23baa26e21d09c8690a914f7bea8fdbbcbe937de1f857e401a737cf686300a18

See more details on using hashes here.

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