VisionLLM
A modular Python library for vision-based interactions with AI systems, providing text-to-image, image-to-image, text-to-video, and image-to-video capabilities.
CAUTION : this project is under development and contains mostly placeholder. Please do not use yet.
Features
- Text-to-Image: Generate images from text prompts
- Image-to-Image: Transform images based on text guidance
- Text-to-Video: Create videos from text descriptions
- Image-to-Video: Animate still images into videos
- Modular Design: Easily integrate with any text generation system
- MLX Integration: Special optimizations for Apple Silicon
Installation
# Install from PyPI
pip install visionllm
# Or clone the repository
git clone https://github.com/lpalbou/visionllm.git
cd visionllm
pip install -e .
Development Installation
# Install with development dependencies
pip install "visionllm[dev]"
Quick Start
from visionllm import VisionManager
# Initialize vision manager
vision_manager = VisionManager(debug_mode=False)
# Text to image
image = vision_manager.text_to_image(
"A beautiful sunset over mountains with a lake in the foreground"
)
# Image to video
video = vision_manager.image_to_video(
image,
prompt="Add gentle ripples to the lake and clouds moving slowly",
duration=5.0
)
# Clean up
vision_manager.cleanup()
Command Line Usage
VisionLLM provides a command-line interface for quick access to its capabilities:
# Generate an image from text
visionllm text2image "A beautiful sunset over mountains" --output sunset.png
# Transform an image
visionllm image2image input.png --prompt "Make it look like winter" --output winter.png
# Generate a video from text
visionllm text2video "A timelapse of a blooming flower" --duration 10.0 --output flower.mp4
# Animate an image into a video
visionllm image2video portrait.png --prompt "Make the subject smile" --output smile.mp4
Integration with AbstractLLM
VisionLLM is designed to work seamlessly with AbstractLLM for unified access to various AI models:
from abstractllm import LLMClient
from visionllm import VisionManager
# Initialize components
llm_client = LLMClient(provider="openai", model="gpt-4")
vision_manager = VisionManager()
# Generate an image based on LLM output
prompt = "Describe a fantasy landscape"
description = llm_client.generate(prompt)
image = vision_manager.text_to_image(description)
# Process the image further
video = vision_manager.image_to_video(image, prompt="Add magical effects")
License
VisionLLM is licensed under the MIT License.
Acknowledgments
This project is inspired by VoiceLLM and is designed to work as a companion library focusing on vision-based AI interactions.
Author
Laurent-Philippe Albou (24249870+lpalbou@users.noreply.github.com)
Version
Current version: 0.1.1
Metadata
Release files for visionllm 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| visionllm-0.1.1.tar.gz | 7.9 kB | Without provenance | Details for visionllm-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| visionllm-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for visionllm-0.1.1-py3-none-any.whl |
Total release size: 19.1 kB
Release files / visionllm-0.1.1.tar.gz
| Download URL | visionllm-0.1.1.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb1dbab53b27a3d76d90f5e8ee566cc5a0a046945a11026e587040e506bbf304
|
|
BLAKE2b-256 checksum How to use checksums |
73efd8072907c0a3c7a670c55f607585cb60dc4e9bc3564741268924bf8b32e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Release files / visionllm-0.1.1-py3-none-any.whl
| Download URL | visionllm-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1a5d3cb15b59fa53ac5b8369bd49e77ae31a699e1f8bd8d23d4874fb7774d04
|
|
BLAKE2b-256 checksum How to use checksums |
06f89ed0922f2bd783775eabf249b8896f2aa1cddb73259715b6dd2396e36e9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Security for visionllm 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.