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.
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
- Import the whole package to your project:
from ai_artist import *
- Install dependencies:
!pip install transformers
- Set up the environment:
initialize()
- Save Huggingface login info to use the pre-trained model:
login('YOUR_HUGGINGFACE_KEY')
- Set up the pipeline:
pipe = pipegen()
2.3. Start generating images
- 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.
Stable Diffusion & StabilityAI
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ce711a5b41f66e775c8c847dab4a7ed6d527c2011c88892e6b11fa8a9ca3454 |
|
MD5 | 3c2253aeb0eb4a280ec4dc0815c91d31 |
|
BLAKE2b-256 | 539b1b3d7946f873219a2bd1b7a68d5fce3d71d7d25860e07e726f7218a56c0d |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b432dee1a99b6b73dc391cdc696fdff666189419bdd58f9aaf9be5c703849b5c |
|
MD5 | 1928386e589dee0a284250054282964f |
|
BLAKE2b-256 | 6a35b7bba76bc75cf5eecf994fe43912448d8503be0f1c16edfecbcc3eac53fa |