/hf_diffusers

Simple tools for working with huggingface diffusers

Primary LanguagePython

Quick start

This project demonstrates how to use huggingface/diffusers for simple image generation from text phrases

Requirements

  • pyenv
  • poetry

Installation

  1. Install CUDA
  2. Install pyenv
  3. Install poetry
  4. Install python3.10
pyenv install 3.10
pyenv local 3.10
  1. Install poetry dependencies
poetry install

Usage

After installation, you should be able to run the command line script directly. In my tests, this particular model requires about 6 GB of GPU RAM.

poetry run ./diffusers_demo.py "Picard, his hands raised into the sky"

Example output:

Picard graphic