jpeg-farmer
v0.8.6
Published
๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ **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.
Downloads
69
Readme
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
- Specify the number of images to generate. Default is
--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
- Embed Apple xattr metadata about the image generation settings. Default is
--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"
- Specify the inference model to use. Default is
--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! ๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ๐พ ๐พ๐พ๐พ๐พ๐พ ๐พ๐พ๐พ๐พ๐พ