用Midjourney創(chuàng)建令人驚嘆的標識

使用 AI 和 Python 生成具有專業(yè)外觀的徽標
介紹
歡迎來到本教程,了解如何使用 Mid-Journey 創(chuàng)建令人驚嘆的徽標。這種由 AI 驅(qū)動的模型可以根據(jù)簡單的文本提示生成令人印象深刻的徽標設(shè)計,使您的徽標創(chuàng)建過程更快、更高效。讓我們開始吧。
徽標創(chuàng)建的藍圖文本
使用 Mid-Journey 模型生成徽標的藍圖文本如下所示:
Design a [style] logo featuring a [symbol] in [color] on a [background color] background. Include [additional element] as an additional design element.
標志創(chuàng)建示例
讓我們通過填寫括號來了解其工作原理的示例:
Design of modern logo featuring a coffee cup in red on a orange background. Include hexagon as an additional design element. — q 2 — v 5

Design of comic logo featuring a crown in gold on a orange background. Include triangle as an additional design element. — q 2 — v 5


Design of wild logo featuring a butterfly in purple on a black background. Include border as an additional design element. — q 2 — v 5

生成隨機組合的Python腳本 為了使這個過程更加有效,你可以使用一個Python腳本,生成樣式、符號、顏色和其他元素的隨機組合。這個腳本可以通過編輯文本或擴大每個類別的選項列表來輕松地修改,以適應(yīng)你的需要。
以下是腳本代碼:
import random
group = { "additional_element": [ "gradient", "shadow", "border", "pattern", "texture", "geometric shapes", "lines", "curves", "highlights", "3d effects", "star", "circle", "triangle", "square", "heart", "diamond", "moon", "hexagon" ? ?], "style": [ "modern", "minimalist", "vintage", "retro", "fun", "futuristic", "abstract", "cartoon", "geometric", "hand-drawn", "typographic", "tribal", "text-based", "illustrative", "photorealistic", "3D", "grunge", "sketchy", "watercolor", "comic", "cute", "fancy", "feminine", "masculine", "playful", "professional", "simple", "traditional", "trendy", "vibrant", "whimsical", "wild" ? ?], "background": [ "red", "orange", "yellow", "green", "blue", "purple", "pink", "brown", "black", "white", "gray", "silver", "gold", "multicolored" ? ?], "color": [ "red", "orange", "yellow", "green", "blue", "purple", "pink", "brown", "black", "white", "gray", "silver", "gold", "multicolored" ? ?], "symbol": [ "star", "circle", "triangle", "square", "heart""diamond", "moon", "hexagon", "leaf", "tree", "wave", "cloud", "sun", "skull", "deer head", "lion head", "bear head", "cat", "dog", "car", "train", "pizza", "coffee cup", "coffee bean", "cupcake", "ice cream cone", "computer", "phone", "camera", "book", "rocket", "airplane", "house", "castle", "sword", "crown", "flower", "bird", "fish", "butterfly", "dragon", "unicorn", "mermaid", "alien", "robot", "spaceship", "planet", "galaxy", "zombie", "ghost", "witch", "wizard", "knight", "princess", "queen", "king", "wheel", "gear", "clock" ? ?] }
blueprint = "Design of [style] logo featuring a [symbol] in [color] on a [background] background. Include [additional_element] as an additional design element."
generated_combinations = []
# Change the Number to how much Prompts you want generated, its currently 3 while len(generated_combinations) < 3: ? ?combination = blueprint for tag in group: ? ? ? ?tag_choice = random.choice(group[tag]) ? ? ? ?combination = combination.replace(f"[{tag}]", tag_choice) if combination not in generated_combinations: ? ? ? ?generated_combinations.append(combination)
# Save combinations to a file with open("combinations.txt", "w") as f: ? ?f.writelines(combination + "\n" for combination in generated_combinations)
print("Generated combinations:", generated_combinations)