【工具类】使用AI+二维码升级扫码体验(内含详细步骤)
[封面图]
【相关文章阅读】
生成发散的二维码
将生成好的二维码文件保存下来,用于后面的步骤
生成艺术二维码
所需模型下载(ControlNet)
- 主模型:https://civitai.com/models/4468/counterfeit-v30
- brightness:https://huggingface.co/ioclab/ioc-controlnet/blob/main/models/control_v1p_sd15_brightness.safetensors
- qucodemonster:https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster/tree/main
上面在第二个模型网站中下载两个文件:control_v1p_sd15_qrcode_monster.safetensors和control_v1p_sd15_qrcode_monster.yaml
于是,我们得到了下面4个文件,其中1个主模型和3个ControlNet模型及配置
- control_v1p_sd15_brightness.safetensors
- control_v1p_sd15_qrcode_monster.safetensors
- control_v1p_sd15_qrcode_monster.yaml
- Counterfeit_V30.safetensors【主模型】
将上面下载好的文件放入对应的目录中
主模型:stable-diffusion-webui\models\Stable-diffusion
ControlNet模型:stable-diffusion-webui\extensions\sd-webui-controlnet\models
描述词如下
1 | (masterpiece, best quality),1girl with long white hair sitting in a field of green plants and flowers, her hand under her chin, warm lighting, white dress, blurry foreground |
安装和配置ControlNet插件
安装ControlerNet
插件名:sd-webui-controlnet
插件git地址: https://github.com/Mikubill/sd-webui-controlnet.git
- 选择菜单:Extensions -> Available
- 点击
Load From:
,在列表中搜索controlnet
,找到对应的插件点击右侧的Install
进行安装。 - 重启本地
stable diffusion
服务 - 选择菜单:Settings -> ControlNet(在左侧)
- 将
Multi ControlNet: Max models amount (requires restart)
的值设置为4(大于1即可) - 重启本地
stable diffusion
服务
配置ControlNet
第一个ControlNet Unit
第二个ControlNet Unit
生成目标艺术二维码
tips:
这里要注意,生成艺术二维码是有一定的失败率的,要想生成自己期望的艺术二维码,需要多尝试几次。
一些例子
主模型:Counterfeit-V3.0 【A022】
【提示词1】
主模型:Counterfeit-V3.0 【A022】
1 | (masterpiece, best quality),1girl, solo, flower, long hair, outdoors, letterboxed, school uniform, day, sky, looking up, short sleeves, parted lips, shirt, cloud, black hair, sunlight, white shirt, serafuku, upper body, from side, pink flower, blurry, brown hair, blue sky, depth of field |
【出图1】
【提示词11】
主模型:Counterfeit-V3.0 【A022】
1 | (masterpiece, best quality), (from above:1.4), 2girls walking along a beach together, multiple girls,sun light, long hair, footprints, beach, sand, black hair, ocean, day, shoes, walking, jacket, shore, grey skirt, black jacket, waves, pantyhose, pleated skirt, standing, shadow, smile, white skirt |
【出图11】
【提示词2】
主模型:GhostMix 【A012】
1 | (flat color:1.1),(colorful:1.3),(masterpiece:1.2), best quality, masterpiece, original, extremely detailed wallpaper, looking at viewer,1girl,solo,floating colorful water, <lora:blindbox_v1_mix:1> |
【出图2】
【提示词3】
主模型:GhostMix 【A012】
1 | A girl sitting on a giant ice cream, which is adorned with vibrant colors, delightful frosting, and rainbow sprinkles. She holds an oversized waffle cone,shimmering candies. Floating around her are some small balloons, each tied to a petite candy. The scene is filled with sweetness and joy, showcasing the girl's happiness and the enchanting fusion of her imagination and a fantastical world,fantasy, high contrast, ink strokes, explosions, over exposure, purple and red tone impression , abstract, ((watercolor painting by John Berkey and Jeremy Mann )) brush strokes, negative space, |
【出图3】
【提示词4】
主模型:GhostMix 【A012】
1 | A girl sitting on a giant ice cream, which is adorned with vibrant colors, delightful frosting, and rainbow sprinkles. She holds an oversized waffle cone,shimmering candies. Floating around her are some small balloons, each tied to a petite candy. The scene is filled with sweetness and joy, showcasing the girl's happiness and the enchanting fusion of her imagination and a fantastical world,fantasy, high contrast, ink strokes, explosions, over exposure, purple and red tone impression , abstract, ((watercolor painting by John Berkey and Jeremy Mann )) brush strokes, negative space, |
【出图4】
【提示词5】
主模型:GhostMix 【A012】
1 | (masterpiece, best quality, ultra-detailed, best shadow), (detailed background,dark fantasy), (beautiful detailed face), high contrast, (best illumination, an extremely delicate and beautiful), ((cinematic light)), colorful, hyper detail, dramatic light, intricate details, (1girl, solo,black hair, sharp face,low twintails,red eyes, hair between eyes,dynamic angle), blood splatter, swirling black light around the character, depth of field,black light particles,(broken glass),magic circle, |
【出图5】
【提示词6】
主模型:GhostMix 【A012】
1 | 1girl, (hanfu), sidelighting, wallpaper, |
【出图6】
【提示词7】
主模型Dark Sushi Mix 大颗寿司Mix 【010】
1 | (masterpiece, high quality, highres,illustration),blurry background,[(white background:1.2)::5],cowboy shot, |
【出图7】
【提示词8】
主模型Dark Sushi Mix 大颗寿司Mix 【010】
1 | masterpiece, best quality, 1girl, full body,white hair,long hair,purple eyes, slim body,slim legs,playing violin,white dress,night,moon,shootig star,cloud,lakeshore, |
【出图8】
【提示词9】
主模型Dark Sushi Mix 大颗寿司Mix 【010】
1 | masterpiece, best quality, 1girl, full body,white hair,long hair,purple eyes, slim body,slim legs,playing violin,white dress,night,moon,shootig star,cloud,lakeshore, |
【出图9】
【提示词10】
主模型Dark Sushi Mix 大颗寿司Mix 【010】
1 | masterpiece, best quality,extremely detailed CG unity 8k wallpaper, best quality, extremely detailed, detailed, art of light novel cover,highres,anime screencap, light novel illustration,cel shading, |
【出图10】
【提示词17】
主模型Dark Sushi Mix 大颗寿司Mix 【010】
1 | (masterpiece, high quality, highres,illustration),blurry background,[(white background:1.2)::5],cowboy shot, |
【出图17】
【提示词19】
主模型:majicMIX realistic 麦橘写实 【013】
1 | blouse, light and shadow |
【出图19】
【提示词12】
主模型:majicMIX realistic 麦橘写实 【013】
1 | best quality, masterpiece, (photorealistic:1.4), 1girl, light smile, shirt with collars, waist up, dramatic lighting, from below |
【出图12】
【提示词13】
主模型:ReV Animated 【021】
1 | ((best quality)), ((masterpiece)), (detailed), woman with green hair, holding a sword, (Artgerm inspired:1.2), (pixiv contest winner:1.1), (octopus goddess:1.3), (Berserk art style:1.2), close-up portrait, goddess skull, (Senna from League of Legends:1.1), (Tatsumaki with green curly hair:1.2), card game illustration, thick brush, HD anime wallpaper, (Akali from League of Legends:1.1), 8k resolution |
【出图13】
【提示词14】
主模型:ReV Animated 【021】
1 | (masterpiece),(best quality),(ultra-detailed), (full body:1.2), |
【出图14】
【提示词15】
主模型:Cheese Daddy’s Landscapes mix 【A006】
1 | masterpiece, best quality, high quality,extremely detailed CG unity 8k wallpaper, An enchanting and dreamy scene of a fantasy forest, with towering trees, glowing mushrooms, and hidden fairy glens, creating a sense of mystique and enchantment, artstation, digital illustration, intricate, trending, pastel colors, oil paiting, award winning photography, Bokeh, Depth of Field, HDR, bloom, Chromatic Aberration ,Photorealistic,extremely detailed, trending on artstation, trending on CGsociety, Intricate, High Detail, dramatic, art by midjourney |
【提示词16】
主模型:Babes 【A003】
1 | woman, solo, stripper, light blue hair, dark blue eyes, detailed face, |
【出图16】
【提示词17】
主模型:Babes 【A003】
1 | An ethereal female figure with delicate, luminescent wings, surrounded by glowing, magical creatures in an enchanted forest |
【出图17】
【提示词18】
主模型:MeinaUnreal 【A016】
1 | realistic, 1girl, white hair, purple eyes, glowing eyes, crop top, skirt, parted lips, blush, night, algae bloom, sun, sunlight, |
【出图18】
【提示词19】
主模型:MajicmixReverie【A028】
权重:1.7
1 | (girl:1.4), (full body), (from side), (ultra wide shot), (white dress:1.3), (white long hair:1.3), (white ribbon:1.6), (white lace:1.6), BREAK, (dark background:1.3) |
【出图19】
【提示词20】
主模型:MajicmixReverie【A028】
权重:1.7
1 | (((masterpiece))),(((bestquality))),((ultra-detailed)),(illustration),((anextremelydelicateandbeautiful)),dynamicangle,floating,(beautifuldetailedeyes),(detailedlight) (1girl), solo, floating_hair,glowingeyes,green hair,greeneyes, twintails, halterdress, <lora:atdanStyleLora_lk:0.6>, atdan, green background, <lora:animetarotV51:1> |
【出图20】
【提示词21】
主模型:MajicmixReverie【A028】
权重:1.7
1 | (masterpiece),(best quality),(ultra-detailed), (full body:1.2), 1girl,chibi,cute, smile, open mouth, flower, outdoors, playing guitar, music, beret, holding guitar, jacket, blush, tree, :3, shirt, short hair, cherry blossoms, green headwear, blurry, brown hair, blush stickers, long sleeves, bangs, headphones, black hair, pink flower, (beautiful detailed face), (beautiful detailed eyes), <lora:blindbox_v1_mix:1>, |
【出图21】
【提示词22】
主模型:MeinaUnreal 【A028】
权重:1.7
1 | masterpiece, best quality, 1girl, (colorful),(delicate eyes and face), volumatic light, ray tracing, bust shot ,extremely detailed CG unity 8k wallpaper,solo,smile,intricate skirt,((flying petal)),(Flowery meadow) sky, cloudy_sky, moonlight, moon, night, (dark theme:1.3), light, fantasy, windy, magic sparks, dark castle,white hair |
【出图22】
【提示词23】
主模型:GhostMix 【A012】
1 | 1girl, blouse, standing among the flowers |
【出图23】
【提示词24】
主模型:MajicmixReverie【A028】
1 | a bride holding a bouquet of flowers in her hands and a veil on her head, full-size photograph,Claire Dalby, flowers, a stock photo, romanticism,Blue solid background |
【出图24】
【提示词25】
主模型:MajicmixReverie【A028】
Monster权重:2
Brightness:0.3权重,引导介入步数0.55
1 | a woman in a wedding dress holding a bouquet of flowers in front of a tree with pink flowers in it, Du Qiong, cosplay, a statue, neo-romanticism |
【出图25】
【提示词26】
主模型:MeinaMix【A023】
Monster权重:1.3
Brightness:0.3权重,引导介入步数0.55
1 | (masterpiece:1.2), (best quality), (ultra detailed), (8k, 4k, intricate),(full-body-shot:1), (highly detailed:1.2),(detailed face:1.2), (detailed background),detailed landscape, (dynamic pose:1.2), <lora:pixel:0.7>((pixelart)),1girl, solo, looking at viewer, short hair, bangs, blonde hair, shirt, hair ornament, closed mouth, green eyes, upper body, braid, pointy ears, hairclip, cape, from side, parted bangs, blue shirt, portrait, forehead, black cape, crown braid |
【出图26】
【提示词27】
主模型:MajicmixReverie【A028】
Monster权重:1.8
Brightness:0.3权重,引导介入步数0.55
1 | windswept, windy, floating hair, floating clothes, floating flower petals, hair flowers, chinese clothes, hanfu, (baihuaniang:1.2), (many flowers:1.4), cowboy shot, (golden hour, garden, bushes, flowers, sky), <lora:百花酿:0.8> |
【出图27】
个人微信二维码转艺术二维码
- 微信中导出个人二维码
- 进入草料二维码:https://cli.im/deqr,选择二维码解码器,导入第一步中生成的二维码
- 出现解码结果页面,点击
复制
即可 - 将第三步复制的内容拷贝到网址:
https://qrcode.antfu.me/
中,接下来按照最上面的流程来生成最佳效果的二维码 - 接下来按照上面的教程来即可