Skip to content

Instantly share code, notes, and snippets.

@anotherjesse
Created November 27, 2023 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anotherjesse/947e72aa4934a06a95076626acbbde18 to your computer and use it in GitHub Desktop.
Save anotherjesse/947e72aa4934a06a95076626acbbde18 to your computer and use it in GitHub Desktop.
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