Skip to main content

Ssebowa

Ssebowa is an open source Python library that provides generative AI models, including:

For more detailed usage information, please refer to: Ssebowa's technical documentation

Usage

Before running the script, ensure that the required libraries are installed. You can do this by executing the following commands:

pip install ssebowa

If you are running this commands in colab or jupyter notebook please use this,

!pip install ssebowa

Now, you can access the different models by importing them from the library:

Ssebowa Image generation

Ssebowa-Imagen is an open-source image synthesis model that utilizes a combination of diffusion modeling and generative adversarial networks (GANs) to generate high-quality images from text descriptions and allows also to turn your few photos into custom model that is capable of generating stunning images of your chosen subject. It leverages a 100 billion dataset of images and text descriptions, enabling it to accurately capture the nuances of real-world imagery and effectively translate text descriptions into compelling visual representations.

Finetuning on your own data

  • Prepare about 10-20 high-quality solo photos (jpg or png) like yours, friend, product or pets etc and put them in a specific directory.
  • Please run on a machine with a GPU of 16GB or more. (If you're fine-tuning SDXL, you'll need 24GB of VRAM.)
from ssebowa import img_finetune

#initialization
data_dir = "path/images"
output_dir = "/path/models"
subject_name = "<subject name>"
class_name = "person"
model = img_finetune.img_finetune(data_dir=data_dir, 
                                  output_dir=output_dir, 
                                  subject_name=subject_name, 
                                  class_name=class_name)
#Data preparation
model.prepare_data()
#Model training 
model.training()
#Model inference
model.generate_image()

finetune

Image Generation

from ssebowa import Ssebowa_imgen
model = Ssebowa_imgen()

Generate an image with the text description

Like lets generate "A cat sitting on a bookshelf"

image = model.generate_image("A cat sitting on a bookshelf")

Save the image to a file

image.save("cat_on_bookshelf.jpg")

image image

Ssebowa Vision Language Model

Ssebowa-vllm is an open-source visual large language model (VLLM) developed by Ssebowa AI. It is a powerful tool that can be used to understand images. Ssebowa-vllm has 11 billion visual parameters and 7 billion language parameters, supporting image understanding at a resolution of 1120*1120.

from ssebowa import ssebowa_vllm
model = ssebowa_vllm()

response =  model.understand(image_path, prompt)
print(response)

image

Contact

If you have any questions or suggestions, please feel free to open an issue on GitHub or contact us at support@ssebowa.ai

Metadata

Release files for ssebowa 3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ssebowa 3.1
File Size Uploaded Provenance Actions
ssebowa-3.1.tar.gz 87.2 kB Without provenance Details for ssebowa-3.1.tar.gz

Release files / ssebowa-3.1.tar.gz

Download URL ssebowa-3.1.tar.gz
Size 87.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cb22fd8852781706be12b8dd03ecabedc1edf3a4ef07d5041d52ec8b62c6f509
BLAKE2b-256 checksum
How to use checksums
6f6e4ed582ba73b44d16c64426aaa4c703c94e9f9c1f35358e45d917d28539be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for ssebowa 3.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.

Release history Release notifications | RSS feed

This release

3.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page