Skip to main content

ai_artist made generating image easy using Stable Diffusion AI model.

Project description

I. INTRODUCTION

ai_artist made generating images easy using the Stable Diffusion AI model.

Version Download Badge Commit Badge License Badge

II. HOW TO USE THIS PROJECT

2.1. Install this package

  • Using pip to install the pre-built package on Pypip pip install ai_artist
  • If you want to use the latest ai_artist version instead of the stable one, you can install it from the source with the following command: pip install git+https://github.com/thinh-vu/ai_artist.git@main

(*) You might need to insert a ! before your command when running terminal commands on Google Colab.

2.2. Set up your project

  1. Import the whole package to your project: from ai_artist import *
  2. Install dependencies: !pip install transformers
  3. Set up the environment: initialize()
  4. Save Huggingface login info to use the pre-trained model: login('YOUR_HUGGINGFACE_KEY')
  5. Set up the pipeline: pipe = pipegen()

2.3. Start generating images

  1. Provide your image description to the prompt: image_gen("YOUR_IMAGE_DESCRIPTION", pipe)

III. RERERENCES

3.1. Get HuggingFace API key

Generate a token key with read permission. Read the doc here

About Huggingface

Huggingface is a community and data science platform that provides:

  • Tools that enable users to build, train and deploy ML models based on open source (OS) code and technologies.
  • A place where a broad community of data scientists, researchers, and ML engineers can come together and share ideas, get support and contribute to open source projects.

3.2. Google Colab and GPU runtime are highly recommended

Go to the Google Colab menu: Select Runtime > Change runtime type and make sure that GPU has been chosen. You can run this AI model way faster with GPU on Google Colab than the normal CPU or your personal computer.

gpu_setting

Stable Diffusion & StabilityAI

  • Stable Diffusion on Github: here

  • Stable Diffusion prompt guide and examples here

IV. 🙋‍♂️ CONTACT INFORMATION


If you want to support my open-source projects, you can "buy me a coffee" via Patreon or Momo e-wallet (VN). Your support will help to maintain my blog hosting fee & to develop high-quality content.

Momo QR

momo-qr

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

ai_artist-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

ai_artist-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file ai_artist-0.0.2.tar.gz.

File metadata

  • Download URL: ai_artist-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for ai_artist-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0ce711a5b41f66e775c8c847dab4a7ed6d527c2011c88892e6b11fa8a9ca3454
MD5 3c2253aeb0eb4a280ec4dc0815c91d31
BLAKE2b-256 539b1b3d7946f873219a2bd1b7a68d5fce3d71d7d25860e07e726f7218a56c0d

See more details on using hashes here.

File details

Details for the file ai_artist-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ai_artist-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for ai_artist-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b432dee1a99b6b73dc391cdc696fdff666189419bdd58f9aaf9be5c703849b5c
MD5 1928386e589dee0a284250054282964f
BLAKE2b-256 6a35b7bba76bc75cf5eecf994fe43912448d8503be0f1c16edfecbcc3eac53fa

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