This commit marks the beginning of the bulkgen.py script implementation, located in the new "/scripts" directory. The script is designed to generate multiple images and variations based on a configuration file containing a list of prompts and generation parameter variations. Currently, the script reads the configuration file and displays the prompts along with the parameters it would use for generation. Future commits will extend this functionality to include actual image generation via the ComfyUI API.
25 lines
1.2 KiB
Bash
Executable File
25 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# File : bulkgen.py
|
|
# Purpose : Wrapper for `bulkgen.py` to launch the python script
|
|
# Author : Martin Rizzo | <martinrizzo@gmail.com>
|
|
# Date : Mar 14, 2026
|
|
# Repo : https://github.com/martin-rizzo/ComfyUI-ZImagePowerNodes
|
|
# License : MIT
|
|
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
# ComfyUI-ZImagePowerNodes
|
|
# ComfyUI nodes designed specifically for the "Z-Image" model.
|
|
#_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
SCRIPT_NAME=$(basename "${BASH_SOURCE[0]}" .sh) # script name without extension
|
|
SCRIPT_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")") # script directory
|
|
PYTHON_SCRIPT="${SCRIPT_DIR}/${SCRIPT_NAME}.py" # path to python script to run
|
|
|
|
# Environment variables
|
|
# PYTHON : specifies the path to the Python interpreter; default is `python3`
|
|
[[ "$PYTHON" ]] || PYTHON=python3
|
|
|
|
#===========================================================================#
|
|
#////////////////////////////////// MAIN ///////////////////////////////////#
|
|
#===========================================================================#
|
|
|
|
"$PYTHON" "$PYTHON_SCRIPT" "$@"
|