Giter Club home page Giter Club logo

ai-gallery-wrapper's Introduction

AI Gallery Wrapper

Welcome to AI Gallery Wrapper, a powerful CLI tool for interacting with the AI Gallery website powered by StableHorde. This wrapper provides a seamless command-line interface for generating captivating images using various AI models with high-level customization. Whether you're a beginner or an experienced user, this README will guide you through the process of setting up and generating your first image.

Table of Contents

Prerequisites

Make sure you have the following prerequisites installed on your system:

Installation

  1. Clone the repository:

    git clone https://github.com/Recentaly/AI-Gallery-Wrapper.git
    cd AI-Gallery-Wrapper
  2. Install the required Python packages:

    pip install -r requirements.txt

Usage

Configuration

Before generating an image, you need to set up your configuration. Open the config.json file in the root directory. The configuration file has the following parameters:

  • "model": The Model you'd like to use. A list of them can be found under res/models/models.json. Copy the name and insert it into the JSON.
  • "steps": The number of steps the AI should take during the generation process.
  • "sampler_name": The name of the sampler to be used.
  • "width" and "height": The dimensions of the generated image.
  • "cfg_scale": The scale of the configuration.
  • "seed_variation": Variation in seed values for the generation process.
  • "seed": The seed for generating the image. Leave empty for random seed.
  • "karras": Whether to use Karras sampler (true/false).
  • "denoising_strength": The strength of denoising applied to the generated image.
  • "tiling": Whether to use tiling in the generation process (true/false).
  • "hires_fix": Whether to apply high-resolution fix (true/false).
  • "clip_skip": The skip value for clipping during the generation process.

Update these parameters according to your preferences and save the file.

Generating an Image

To generate an image, use the following command:

python ai-cli.py --prompt "Your prompt here" --config config.json
  • --prompt: Specify the prompt that instructs the AI on what to generate.
  • --config: Provide the path to your configuration file (e.g., config.json).

Optional parameters:

  • --output-directory: Specify the directory where the generated image will be saved (default: "output").
  • --output-filename: Set the filename for the generated image (default: "OUTPUT").

Examples

  1. Generate an image with a specific prompt and default configuration:

    python ai-cli.py --prompt "A mesmerizing landscape" --config config.json
  2. Generate an image and save it in a custom directory with a custom filename:

    python ai-cli.py --prompt "Abstract art" --config config.json --output-directory my_images --output-filename abstract_image

ai-gallery-wrapper's People

Contributors

itszerrin avatar

Watchers

 avatar  avatar

Forkers

audreylin999

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.