0.8.6 • Published 7 months ago

jpeg-farmer v0.8.6

Weekly downloads
-
License
The Unlicense
Repository
-
Last release
7 months ago

jpeg-farmer

🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾 jpeg-farmer is just a simple way to generate images from the CLI. For me, this is just a basic tool so I don't have to use the replicate.com web UI.

Requirements

Add a REPLICATE_API_KEY environment variable to your shell profile. You can get an API key by signing up at replicate.com. If you want to use dalle, you will need to add a DALLE_API_KEY environment variable as well. Get a DALL-E API key by signing up at openai.com.

Usage

To run the CLI, use the following command format:

jpeg-farmer <prompt> [options]

Options

  • prompt (optional)

    • A string prompt to generate an image.
  • --number, -n (optional)

    • Specify the number of images to generate. Default is 1.
    jpeg-farmer "sunset over a cool, gay planet" --number 3
  • --list, -l (optional)

    • List available models.
    jpeg-farmer --list
  • --xattr, -x (optional)

    • Embed Apple xattr metadata about the image generation settings. Default is true.
    jpeg-farmer "13 cats eat mitch mcconnell alive" --xattr false
  • --model, -m (optional)

    • Specify the inference model to use. Default is stable_diff_3.
    jpeg-farmer "a train going exactly 4 miles per hour" --model "latest_diffusion"
  • --config, -c (optional)

    • Set up the configuration. Use this to delete current settings and provide new values.
    jpeg-farmer --config
  • --help, -h (optional)

    • Display help information for the available options.
    jpeg-farmer --help

Example

./jpeg-farmer "A serene landscape with mountains at sunset" --model="dreamlike_v1"

🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾🌾 happy farming! 🌾🌾🌾🌾🌾🌾🌾🌾🌾 🌾🌾🌾🌾🌾 🌾🌾🌾🌾🌾