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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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