Created
November 27, 2023 22:40
-
-
Save anotherjesse/947e72aa4934a06a95076626acbbde18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate(prompt, filename): | |
# Simulate the generation process (you can replace this with your actual function) | |
print(f"Generating '{prompt}' and saving as '{filename}'") | |
# Options for each category | |
expressions = ["happy", "sad", "crying", "angry", "open mouth"] | |
genders = ["male", "female", "non-binary"] | |
ages = ["kid", "teen", "young adult", "adult", "old"] | |
ethnicities = ["Caucasian", "Hispanic", "Black", "Middle-Eastern", "South Asian", "East Asian"] | |
styles = ["realistic", "cartoon", "comics"] | |
frames = ["portrait", "upper body", "full body", "profile"] | |
# Iterate through all combinations | |
for expression in expressions: | |
for gender in genders: | |
for age in ages: | |
for ethnicity in ethnicities: | |
for style in styles: | |
for frame in frames: | |
prompt = f"{expression}, {gender}, {age}, {ethnicity}, {style}, {frame}" | |
filename = f"{expression}_{gender}_{age}_{ethnicity}_{style}_{frame}.jpg" | |
generate(prompt, filename) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment