deepimg3
deepimg3 is a Python module designed for automated testing of the DeepAI Text-to-Image API. It allows users to asynchronously and efficiently generate batches of images based on specified sets of prompts, managing the process through command-line arguments. The tool supports selecting image quality levels and managing multiple prompts through JSON configuration files.
Prerequisites
Installation
Download the latest .whl file from the project repository and install it using pip:
pip install deepimg3
Usage
After installation, you can run the module from the command line:
python -m deepimg3 --help
This will display help information about all available command-line options:
Usage: __main__.py [-h] [-n NUM] [-p PROMPTS] [-q {both,hd,sd}] [-c CONCURRENCY]
Generate images based on command line arguments.
options:
-h, --help show this help message and exit
-n NUM, --num NUM Number of images to generate for each prompt/quality
-p PROMPTS, --prompts PROMPTS
File path to the promptsets file. (JSON)
-q {both,hd,sd}, --quality {both,hd,sd}
Quality of the image to generate.
-c CONCURRENCY, --concurrency CONCURRENCY
Number of concurrent image generation tasks to run. Default: 4
Examples
Run the tool to generate images using the default promptsets.json:
python -m deepimg3 --prompts promptset.example.json --num 2 --quality hd
This command will generate 2 HD images per prompt found in promptsets.example.json.
Configuration
See promptsets.example.json for an example of how to format this file.
Development
If you want to contribute to deepimg3, you can clone the repository and install the dependencies as follows:
git clone https://github.com/DJStompZone/deepimg3.git
cd deepimg3
poetry install
Make sure you have Poetry installed to manage dependencies.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for deepimg3 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deepimg3-1.4.1.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deepimg3-1.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / deepimg3-1.4.1.tar.gz
| Download URL | deepimg3-1.4.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
168b8bb1a7082366b3c60a700815e761eea54565f09c8fe85a6ecc5a1e4f8dfc
|
|
BLAKE2b-256 checksum How to use checksums |
fb5ee1ede7aae47fc955fa3153c9289ddf960fcc1ccf4ea6715a751f2b760aa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.0 Windows/10
|
Release files / deepimg3-1.4.1-py3-none-any.whl
| Download URL | deepimg3-1.4.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c80bb1ef4eff4ebbccb2b4b3ff0541ebcd66c3960d4a65ce6ae2a9fc81146b60
|
|
BLAKE2b-256 checksum How to use checksums |
152a5c2a25fd94911d98bd3fa69f2c02ffc6887d0a2067a21ace5c091853beab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.0 Windows/10
|