欢迎光临散文网 会员登陆 & 注册

用Midjourney创建令人惊叹的标识

2023-04-18 17:15 作者:清大文森学堂  | 我要投稿

使用 AI 和 Python 生成具有专业外观的徽标

介绍

欢迎来到本教程,了解如何使用 Mid-Journey 创建令人惊叹的徽标。这种由 AI 驱动的模型可以根据简单的文本提示生成令人印象深刻的徽标设计,使您的徽标创建过程更快、更高效。让我们开始吧。

徽标创建的蓝图文本

使用 Mid-Journey 模型生成徽标的蓝图文本如下所示:

Design a [style] logo featuring a [symbol] in [color] on a [background color] background. Include [additional element] as an additional design element.

标志创建示例

让我们通过填写括号来了解其工作原理的示例:

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脚本,生成样式、符号、颜色和其他元素的随机组合。这个脚本可以通过编辑文本或扩大每个类别的选项列表来轻松地修改,以适应你的需要。

以下是脚本代码:

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)


用Midjourney创建令人惊叹的标识的评论 (共 条)

分享到微博请遵守国家法律