Giter Site home page Giter Site logo

aidraw's Introduction

AIdraw

AI drawer, mostly written by AI itself. This is very easy drawer which can draw images by specifying text. It saves output to file or stdout. This is mostly test project. I tried to instruct AI to write this. Not sure about license. Hope that GPL is OK when it was generated by AI and updated by me :]

Download/install

Executable for Windows:

Download https://github.com/limosek/aidraw/raw/main/dist/aidraw.exe

Via Pip

git clone https://github.com/limosek/aidraw.git
cd aidraw
pip3 install -r requirements.txt
python3 aidraw.py --help

API key

You need an API key from openai. See https://platform.openai.com/docs/api-reference/introduction to get it.

Usage

./aidraw.py -h
usage: aidraw.py [-h] [--size SIZE] [--count COUNT] [--model MODEL] [--key KEY] [--output OUTPUT] sentence [sentence ...]

Generate an image using the OpenAI API

positional arguments:
  sentence         The prompt sentence for image generation

optional arguments:
  -h, --help       show this help message and exit
  --size SIZE      The size of the generated image
  --count COUNT    Number of images to generate
  --model MODEL    The ID of the model to use for image generation
  --key KEY        The API key for the OpenAI API. You can use OPENAI_API_KEY env variable too
  --output OUTPUT  Save image[s] to this directory

Examples

This will create directory 'Nice red box' and generates three pictures within:

aidraw.py --count=3 "Nice red box"

1 2 3

This will create one file with better resolution:

 aidraw.py --size 1024x1024 --count=1 "Green car with black roof"

1

aidraw's People

Contributors

limosek avatar

Watchers

 avatar  avatar

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.