diff --git a/OneButtonPromptNodes.py b/OneButtonPromptNodes.py index 1ecb308..4fb025e 100644 --- a/OneButtonPromptNodes.py +++ b/OneButtonPromptNodes.py @@ -12,7 +12,7 @@ sys.path.append(onebuttonprompt_path) from build_dynamic_prompt import * artists = ["all", "none", "popular", "greg mode", "3D", "abstract", "angular", "anime" ,"architecture", "art nouveau", "art deco", "baroque", "bauhaus", "cartoon", "character", "children's illustration", "cityscape", "clean", "cloudscape", "collage", "colorful", "comics", "cubism", "dark", "detailed", "digital", "expressionism", "fantasy", "fashion", "fauvism", "figurativism", "gore", "graffiti", "graphic design", "high contrast", "horror", "impressionism", "installation", "landscape", "light", "line drawing", "low contrast", "luminism", "magical realism", "manga", "melanin", "messy", "monochromatic", "nature", "nudity", "photography", "pop art", "portrait", "primitivism", "psychedelic", "realism", "renaissance", "romanticism", "scene", "sci-fi", "sculpture", "seascape", "space", "stained glass", "still life", "storybook realism", "street art", "streetscape", "surrealism", "symbolism", "textile", "ukiyo-e", "vibrant", "watercolor", "whimsical"] -imagetypes = ["all", "all - force multiple", "photograph", "octane render","digital art","concept art", "painting", "portrait", "anime key visual", "only other types", "only templates mode", "art blaster mode", "quality vomit mode", "color cannon mode", "unique art mode", "massive madness mode", "photo fantasy mode", "subject only mode"] +imagetypes = ["all", "all - force multiple", "photograph", "octane render","digital art","concept art", "painting", "portrait", "anime key visual", "only other types", "only templates mode", "art blaster mode", "quality vomit mode", "color cannon mode", "unique art mode", "massive madness mode", "photo fantasy mode", "subject only mode", "fixed styles mode"] subjects =["all", "object", "animal", "humanoid", "landscape", "concept"] genders = ["all", "male", "female"] diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index f16ae75..3c754a7 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -140,6 +140,9 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all minilocationadditionslist = csv_to_list("minilocationadditions", antilist,"./csvfiles/special_lists/") overalladditionlist = csv_to_list("overalladditions", antilist,"./csvfiles/special_lists/") imagetypemodelist = csv_to_list("imagetypemodes", antilist,"./csvfiles/special_lists/") + + styleslist = csv_to_list("styles", antilist,"./csvfiles/templates/") + # subjects @@ -559,6 +562,8 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all photofantasymode = False massivemadnessmode = False onlysubjectmode = False + stylesmode = False + # determine wether we should go for a template or not. Not hooked up to insanitylevel if(imagetype == "only templates mode"): specialmode = True @@ -601,6 +606,11 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all onlysubjectmode = True print("Running in only subject mode") + if(imagetype == "fixed styles mode"): + specialmode = True + stylesmode = True + print("Running with a randomized style instead of a randomized prompt") + # main stuff generatetype = not specialmode @@ -1055,6 +1065,14 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all completeprompt += " (" + # start styles mode here + if(stylesmode == True): + chosenstyle = random.choice(styleslist) + chosenstyleprefix = chosenstyle.split("-subject-")[0] + chosenstylesuffix= chosenstyle.split("-subject-")[1] + completeprompt += chosenstyleprefix + + # start artist part @@ -1749,6 +1767,11 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all if(rare_dist(insanitylevel) and bool(cameralist)): completeprompt += "-camera-, " step = step + 1 + + # start styles mode here + if(stylesmode == True): + completeprompt += chosenstylesuffix + # custom style list if(chance_roll(insanitylevel, customstyle1chance) and generatestyle == True): diff --git a/csvfiles/special_lists/imagetypemodes.csv b/csvfiles/special_lists/imagetypemodes.csv index e657d92..621b63d 100644 --- a/csvfiles/special_lists/imagetypemodes.csv +++ b/csvfiles/special_lists/imagetypemodes.csv @@ -5,4 +5,5 @@ color cannon mode unique art mode massive madness mode photo fantasy mode -subject only mode \ No newline at end of file +subject only mode +fixed styles mode \ No newline at end of file diff --git a/csvfiles/templates/styles.csv b/csvfiles/templates/styles.csv new file mode 100644 index 0000000..5f4672a --- /dev/null +++ b/csvfiles/templates/styles.csv @@ -0,0 +1,106 @@ +professional 3d model -subject-, octane render, highly detailed, volumetric, dramatic lighting +analog film photo -subject-, faded film, desaturated, 35mm photo, grainy, vignette, vintage, Kodachrome, Lomography, stained, highly detailed, found footage +anime artwork -subject-, anime style, key visual, vibrant, studio anime, highly detailed +cinematic film still -subject-, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, moody, epic, gorgeous, film grain, grainy +comic -subject-, graphic illustration, comic art, graphic novel art, vibrant, highly detailed +play-doh style -subject-, sculpture, clay art, centered composition, Claymation +concept art -subject-, digital artwork, illustrative, painterly, matte painting, highly detailed +breathtaking -subject-, award-winning, professional, highly detailed +ethereal fantasy concept art of -subject-, magnificent, celestial, ethereal, painterly, epic, majestic, magical, fantasy art, cover art, dreamy +isometric style -subject-, vibrant, beautiful, crisp, detailed, ultra detailed, intricate +line art drawing -subject-, professional, sleek, modern, minimalist, graphic, line art, vector graphics +low-poly style -subject-, low-poly game art, polygon mesh, jagged, blocky, wireframe edges, centered composition +neonpunk style -subject-, cyberpunk, vaporwave, neon, vibes, vibrant, stunningly beautiful, crisp, detailed, sleek, ultramodern, magenta highlights, dark purple shadows, high contrast, cinematic, ultra detailed, intricate, professional +origami style -subject-, paper art, pleated paper, folded, origami art, pleats, cut and fold, centered composition +cinematic photo -subject-, 35mm photograph, film, bokeh, professional, 4k, highly detailed +pixel-art -subject-, low-res, blocky, pixel art style, 8-bit graphics +texture {prompt} top down close-up +advertising poster style -subject-, Professional, modern, product-focused, commercial, eye-catching, highly detailed +automotive advertisement style -subject-, sleek, dynamic, professional, commercial, vehicle-focused, high-resolution, highly detailed +corporate branding style -subject-, professional, clean, modern, sleek, minimalist, business-oriented, highly detailed +fashion editorial style -subject-, high fashion, trendy, stylish, editorial, magazine style, professional, highly detailed +food photography style -subject-, appetizing, professional, culinary, high-resolution, commercial, highly detailed +gourmet food photo of -subject-, soft natural lighting, macro details, vibrant colors, fresh ingredients, glistening textures, bokeh background, styled plating, wooden tabletop, garnished, tantalizing, editorial quality +luxury product style -subject-, elegant, sophisticated, high-end, luxurious, professional, highly detailed +real estate photography style -subject-, professional, inviting, well-lit, high-resolution, property-focused, commercial, highly detailed +retail packaging style -subject-, vibrant, enticing, commercial, product-focused, eye-catching, professional, highly detailed +abstract style -subject-, non-representational, colors and shapes, expression of feelings, imaginative, highly detailed +abstract expressionist painting -subject-, energetic brushwork, bold colors, abstract forms, expressive, emotional +art deco style -subject-, geometric shapes, bold colors, luxurious, elegant, decorative, symmetrical, ornate, detailed +art nouveau style -subject-, elegant, decorative, curvilinear forms, nature-inspired, ornate, detailed +constructivist style -subject-, geometric shapes, bold colors, dynamic composition, propaganda art style +cubist artwork -subject-, geometric shapes, abstract, innovative, revolutionary +expressionist -subject-, raw, emotional, dynamic, distortion for emotional effect, vibrant, use of unusual colors, detailed +graffiti style -subject-, street art, vibrant, urban, detailed, tag, mural +hyperrealistic art -subject-, extremely high-resolution details, photographic, realism pushed to extreme, fine texture, incredibly lifelike +impressionist painting -subject-, loose brushwork, vibrant color, light and shadow play, captures feeling over form +pointillism style -subject-, composed entirely of small, distinct dots of color, vibrant, highly detailed +pop Art style -subject-, bright colors, bold outlines, popular culture themes, ironic or kitsch +psychedelic style -subject-, vibrant colors, swirling patterns, abstract forms, surreal, trippy +renaissance style -subject-, realistic, perspective, light and shadow, religious or mythological themes, highly detailed +steampunk style -subject-, antique, mechanical, brass and copper tones, gears, intricate, detailed +surrealist art -subject-, dreamlike, mysterious, provocative, symbolic, intricate, detailed +typographic art -subject-, stylized, intricate, detailed, artistic, text-based +watercolor painting -subject-, vibrant, beautiful, painterly, detailed, textural, artistic +biomechanical style -subject-, blend of organic and mechanical elements, futuristic, cybernetic, detailed, intricate +biomechanical cyberpunk -subject-, cybernetics, human-machine fusion, dystopian, organic meets artificial, dark, intricate, highly detailed +cybernetic style -subject-, futuristic, technological, cybernetic enhancements, robotics, artificial intelligence themes +cybernetic robot -subject-, android, AI, machine, metal, wires, tech, futuristic, highly detailed +cyberpunk cityscape -subject-, neon lights, dark alleys, skyscrapers, futuristic, vibrant colors, high contrast, highly detailed +futuristic style -subject-, sleek, modern, ultramodern, high tech, detailed +retro cyberpunk -subject-, 80's inspired, synthwave, neon, vibrant, detailed, retro futurism +retro-futuristic -subject-, vintage sci-fi, 50s and 60s style, atomic age, vibrant, highly detailed +sci-fi style -subject-, futuristic, technological, alien worlds, space themes, advanced civilizations +vaporwave style -subject-, retro aesthetic, cyberpunk, vibrant, neon colors, vintage 80s and 90s style, highly detailed +Bubble Bobble style -subject-, 8-bit, cute, pixelated, fantasy, vibrant, reminiscent of Bubble Bobble game +cyberpunk game style -subject-, neon, dystopian, futuristic, digital, vibrant, detailed, high contrast, reminiscent of cyberpunk genre video games +fighting game style -subject-, dynamic, vibrant, action-packed, detailed character design, reminiscent of fighting video games +GTA-style artwork -subject-, satirical, exaggerated, pop art style, vibrant colors, iconic characters, action-packed +Super Mario style -subject-, vibrant, cute, cartoony, fantasy, playful, reminiscent of Super Mario series +Minecraft style -subject-, blocky, pixelated, vibrant colors, recognizable characters and objects, game assets +Pokémon style -subject-, vibrant, cute, anime, fantasy, reminiscent of Pokémon series +retro arcade style -subject-, 8-bit, pixelated, vibrant, classic video game, old school gaming, reminiscent of 80s and 90s arcade games +retro game art -subject-, 16-bit, vibrant colors, pixelated, nostalgic, charming, fun +role-playing game (RPG) style fantasy -subject-, detailed, vibrant, immersive, reminiscent of high fantasy RPG games +strategy game style -subject-, overhead view, detailed map, units, reminiscent of real-time strategy video games +Street Fighter style -subject-, vibrant, dynamic, arcade, 2D fighting game, highly detailed, reminiscent of Street Fighter series +Legend of Zelda style -subject-, vibrant, fantasy, detailed, epic, heroic, reminiscent of The Legend of Zelda series +architectural style -subject-, clean lines, geometric shapes, minimalist, modern, architectural drawing, highly detailed +disco-themed -subject-, vibrant, groovy, retro 70s style, shiny disco balls, neon lights, dance floor, highly detailed +dreamscape -subject-, surreal, ethereal, dreamy, mysterious, fantasy, highly detailed +dystopian style -subject-, bleak, post-apocalyptic, somber +fairy tale -subject-, magical, fantastical, enchanting, storybook style, highly detailed +gothic style -subject-, dark, mysterious, haunting, dramatic, ornate, detailed +grunge style -subject-, textured, distressed, vintage, edgy, punk rock vibe, dirty, noisy +horror-themed -subject-, eerie, unsettling, dark, spooky, suspenseful, grim, highly detailed +kawaii style -subject-, cute, adorable, brightly colored, cheerful, anime influence, highly detailed +lovecraftian horror -subject-, eldritch, cosmic horror, unknown, mysterious, surreal, highly detailed +macabre style -subject-, dark, gothic, grim, haunting, highly detailed +manga style -subject-, vibrant, high-energy, detailed, iconic, Japanese comic style +metropolis-themed -subject-, urban, cityscape, skyscrapers, modern, futuristic, highly detailed +minimalist style -subject-, simple, clean, uncluttered, modern, elegant +monochrome -subject-, black and white, contrast, tone, texture, detailed +nautical-themed -subject-, sea, ocean, ships, maritime, beach, marine life, highly detailed +space-themed -subject-, cosmic, celestial, stars, galaxies, nebulas, planets, science fiction, highly detailed +stained glass style -subject-, vibrant, beautiful, translucent, intricate, detailed +techwear fashion -subject-, futuristic, cyberpunk, urban, tactical, sleek, dark, highly detailed +tribal style -subject-, indigenous, ethnic, traditional patterns, bold, natural colors, highly detailed +zentangle -subject-, intricate, abstract, monochrome, patterns, meditative, highly detailed +collage style -subject-, mixed media, layered, textural, detailed, artistic +flat papercut style -subject-, silhouette, clean cuts, paper, sharp edges, minimalist, color block +kirigami representation of -subject-, 3D, paper folding, paper cutting, Japanese, intricate, symmetrical, precision, clean lines +paper mache representation of -subject-, 3D, sculptural, textured, handmade, vibrant, fun +paper quilling art of -subject-, intricate, delicate, curling, rolling, shaping, coiling, loops, 3D, dimensional, ornamental +papercut collage of -subject-, mixed media, textured paper, overlapping, asymmetrical, abstract, vibrant +3D papercut shadow box of -subject-, layered, dimensional, depth, silhouette, shadow, papercut, handmade, high contrast +stacked papercut art of -subject-, 3D, layered, dimensional, depth, precision cut, stacked layers, papercut, high contrast +thick layered papercut art of -subject-, deep 3D, volumetric, dimensional, depth, thick paper, high stack, heavy texture, tangible layers +alien-themed -subject-, extraterrestrial, cosmic, otherworldly, mysterious, sci-fi, highly detailed +film noir style -subject-, monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic +glamorous photo -subject-, high fashion, luxurious, extravagant, stylish, sensual, opulent, elegance, stunning beauty, professional, high contrast, detailed +HDR photo of -subject-, High dynamic range, vivid, rich details, clear shadows and highlights, realistic, intense, enhanced contrast, highly detailed +iphone photo -subject-, large depth of field, deep depth of field, highly detailed +long exposure photo of -subject-, Blurred motion, streaks of light, surreal, dreamy, ghosting effect, highly detailed +neon noir -subject-, cyberpunk, dark, rainy streets, neon signs, high contrast, low light, vibrant, highly detailed +silhouette style -subject-, high contrast, minimalistic, black and white, stark, dramatic +tilt-shift photo of -subject-, selective focus, miniature effect, blurred background, highly detailed, vibrant, perspective control \ No newline at end of file diff --git a/prompttester.py b/prompttester.py index 2d3c920..c91077c 100644 --- a/prompttester.py +++ b/prompttester.py @@ -46,4 +46,4 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im print("") print("All done!") -generateprompts(10,8,"all","all","all",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","(hello:1.3)",True,"",100, "all", "all", "all", "all", False) \ No newline at end of file +generateprompts(10,5,"all","all","fixed styles mode",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","",True,"",100, "all", "all", "all", "all", False) \ No newline at end of file