Moved lighting to accomodate better subject handling, also changed the params and how they are loaded - with the ability to add text to the params if needed. Separated place with a comma for better prompt understanding.
Moved the random number generator (rng) from a class-level attribute to an instance-level attribute. This is initialized in the __init__ method using a provided seed.
This change allows each instance of PromptGenerator to have its own random number generator, ensuring independent behavior across instances and improving reproducibility when a seed is provided
Adjusted the seed handling logic in the generate_prompt method to allow 0 as a valid seed.
This change ensures that all valid seed values are handled correctly.
Replaced random.choice and random.sample with self.rng.choices and self.rng.sample respectively, throughout the generate_prompt method and other methods where random operations are performed.
This change ensures that all random operations use the instance-level random number generator, improving reproducibility.
Updated method names to follow the PEP 8 convention of lowercase with words separated by underscores.
This change improves readability and consistency with Python naming conventions.
🎨👩👨
This commit spices up our art creation project by adding default_tags with values 'woman' and 'man'. Now you can effortlessly create artworks featuring these characters. The world of art just got a bit more inclusive and wonderful!
🐛✨ Let There Be (Correct) Light! 🌟
Ah, the age-old tale of the lighting bug that cast shadows so dark, it almost forced characters into wheelchairs. Fear not! I have vanquished this pesky bug! 🗡️💡
Characters will now only have disabilities if YOU, the almighty user, deem it so in your prompt. Choose your own adventure, not a wheelchair-bound bugventure! 🦽🚫
May your stories be as diverse and unique as you wish them to be! 🌈📚