nazgut 02fd11d8a2 Merge pull request #8 from joshho/main
Add text_color as an option instead of pure randomization
2026-01-14 11:53:13 +01:00
2025-04-05 19:18:30 +02:00
2024-04-19 16:17:17 +02:00
2024-04-19 16:17:17 +02:00
2025-04-05 19:08:29 +02:00
2026-01-02 20:55:29 +00:00

Screenshot

Features

Image Text Overlay: Add customizable text overlays to images. Prompt Selection and Scheduling: Manage and format string prompts based on configurable parameters. Loop Constructs: Implement looping mechanisms which can reset based on conditions. Special Comparators: Utilize a unique string class for special comparison features.

Installation

To run the scripts, you need Python 3.6 or higher. Dependencies are listed in requirements.txt, which can be installed using:

pip install -r requirements.txt

Requirements

Pillow for image processing (PIL) PyTorch (torch) for tensor operations Numpy (numpy)

Methods

  • add_text_overlay: Adds text to an image according to specified parameters such as alignment, color, font size, etc.

  • PromptSelector and PromptSchedule These classes are used to handle and format text prompts. They support selecting prompts based on input indices and applying pre- and post-text to formatted outputs.

  • Loop, LoopStart, LoopEnd A set of classes designed to facilitate custom loop constructs that can dynamically handle iteration based on runtime conditions.

  • EndQueue Conditioning end of current queue

Contributions

Contributions are welcome. Please fork the repository and submit a pull request with your suggested changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

S
Description
No description provided
Readme MIT
1.5 MiB
Languages
Python 100%