8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

使用Llama3辅助生成StableDiffusion提示词,AI绘画从未如此简单 学习教程

小鹿黑科技 11天前 3

Llama3简介

Llama 3是由Meta公司推出的一款大型语言模型(LLM),其版本规模从8B到400B参数不等,这超越了包括谷歌的Gemma/Gemini、Mistral和Claude 3 Sonnet在内的众多竞争对手,且能在仅4GB的GPU上实现高效运行,为商业应用提供了更多可能性。

HuggingFace上有大神发布了基于Llama3的stable diffusion的prompt提示词微调模型——llama3_ifai_sd_prompt_mkr_q4km。我们可以向模型输入简单的提示,Llama3将会给我们返回详细的提示描述。

Llama3部署

llama3_ifai_sd_prompt_mkr_q4km模型已上架Ollama仓库。

Ollama部署可参考:Windows本机运行7B大模型

 

执行ollama run impactframes/llama3_ifai_sd_prompt_mkr_q4km即可完成部署。

测试使用

以往我们在使用Stable Diffusion时,自己思考提示词是一件很消耗脑细胞的事情。通过大模型生成的提示词往往更加精准、丰富多样,能够引导Stable Diffusion产出更高分辨率、细节更丰富的图像。大型语言模型能够理解和生成高度复杂、抽象的概念描述,这为图像生成提供了无限的创意空间。用户可以使用自然语言描述极其详细或新颖的场景,即使是那些现实中不存在或难以想象的构想,大模型都能辅助生成精确的提示词,进而创造出独特且富有创意的图像作品。并且对于非专业设计人员来说,直接操作复杂的图像生成参数可能较为困难。而利用大模型生成的提示词作为桥梁,用户只需简单描述心中所想,即可得到满意的作品,极大地降低了艺术创作和技术使用的门槛。

提示词1:一个人站在山顶

 A man standing atop of a mountain
Philosophical, introspective, contemplative, solitary figure, dressed in simple attire, standing at the summit of
a majestic mountain, gazing out at the breathtaking panorama, lost in thought, pondering the mysteries of
existence, the universe, and human nature, as the wind whispers secrets in his ear, the sun

 

 

提示词2:拟人的猫猫坐在电脑前工作

Fictional character, anthropomorphic cat named 'Whiskers', sitting comfortably at a desk in front of a computer
screen, wearing glasses, typing away with paws, intense focus on the task at hand, surrounded by scattered papers,
pencils, and catnip toys, whimsical atmosphere, soft lighting, cozy setting.

最新回复 (0)
    • 小白资源网
      2
        立即登录 立即注册 
返回
发新帖