当前位置: 首页 > news >正文

免费商城网站建设网站建设 域名主机

免费商城网站建设,网站建设 域名主机,人社部能力建设中心网站,经典营销案例100例今天来点轻松的话题#xff0c;带大家玩一个用文字生成图片的模型。相信大家如果关注AIGC领域#xff0c;对文本生成图片#xff0c;对Stablefiffusion、DEALL.E应该不陌生。今天给大家介绍的就是基于SD2 finetune出来的一个模型#xff08;#xff09;这篇文章不会教大家…今天来点轻松的话题带大家玩一个用文字生成图片的模型。相信大家如果关注AIGC领域对文本生成图片对Stablefiffusion、DEALL.E应该不陌生。今天给大家介绍的就是基于SD2 finetune出来的一个模型这篇文章不会教大家STABLEDiffusion的原理也不会去介绍文本生成图的历史甚至不会让大家知道CLIP。只会带大家想工程师一样用很少的代码批量的产出你想要的图片。为你的软文配图。 先来看几张效果安装环境pip install --upgrade diffusers accelerate transformers开始文本生成图from diffusers import StableDiffusionPipeline import torchmodel_id dreamlike-art/dreamlike-photoreal-2.0 pipe StableDiffusionPipeline.from_pretrained(model_id, torch_dtypetorch.float16) pipe pipe.to(cuda)prompt 3d render, an soft and smooth appearance cute ant doll stands in the middle, full of sense with blue and white of technology with glow, bright cinematic lighting, gopro, fisheye lens image pipe(prompt).images[0]image.save(./result.jpg)#批量prompt生成图片 num 0 prompt_list [a ctue **,...,....] for prompt in prompt_list:image pipe(prompt).images[0]save_file_name result{0}.jpg.format(str(num)image.save(./result.jpg)num1 优化promp让图更好看Start by selecting the medium you want to use for your art, such as photo, digital art, 3d render, painting, etc. 1.开始部分选择你要生成的图片艺术风格比如照片、数字艺术、3d渲染、优化等等Next, describe what you want to generate. For better results be specific and use descriptive language. For example, instead of saying a castle you could say a medieval castle on a cliff, storm clouds, restless ocean. 2.接着你要描述你要生成的具体物品为了得到更好效果最好用描述性形容性词汇例如与其说“一座城堡”不如说“悬崖上的中世纪城堡、暴风云、动荡的海洋”To make your prompt even more specific, you can add modifiers such as dark cinematic lighting or highly detailed, intricate, bokeh. This will help the AI generate art that is more in line with your vision. 3.为了让你的提示更加具体你可以添加修饰符例如“暗色系光照”或“细节很详细、复杂、散景”。这将帮助 AI 生成更符合你意愿的作品。If you have any particular artists in mind, you can add their names to your prompt. Some popular artists include Greg Rutkowski, Artgerm, Alphonse Mucha, and Zdzislaw Beksinski. Check out these links for a list of supported artists and some examples of their art: 4.如果你有特定的艺术家或艺术手法你可以加上去这样生成图片会更符合你要求3d render, an soft and smooth appearance cute ant doll stands in the middle, full of sense with blue and white of technology with glow, bright cinematic lighting, gopro, fisheye lens, 4k hd wallpaper, conceptart3d render, an cute ant doll with blue and white of technology glow soft and smooth appearance stands in the middle, bright cinematic lighting, gopro, romatic, 4k hd wallpaper, conceptart3d render, an cute ant doll with blue and white of technology glow soft and smooth appearance stands in the middle, bright cinematic lighting, gopro, romatic, 4k hd wallpaper, bright illustration,cuteart3d render, an soft and smooth appearance cute ant doll stands in the middle, full of sense with blue and white of technology with glow, bright cinematic lighting, gopro, fisheye lens, canon eos r 6, bifurcated lens, 4 k hd wallpaper, trending on artstation小结今天就带大家用代码方式批量做图片生成。大家一定发现这东西拿到只能生成某个物体吗能不能生成一些背景。有没办法让生成的物体不变在增加一些元素会改变一些图片内容。现在生成的方式太随机了同一句prompt生成的图片都会出现差异有没办法解决还有就是有没可能批量生成风格稳定的图有没办法自动的生成prompt生成高质量的图片大家先别急下面几篇文章会一一给你解答。
http://www.hkea.cn/news/14524827/

相关文章:

  • 河南省示范校建设专题网站中国建设银行账户查询
  • 延边州网站建设网络舆情监测专业就业前景
  • 汕头网站建设方案维护wordpress手机版
  • qt做网站不囤货的网店怎么开
  • 福田网站建设龙岗网站建设罗湖网站建设wordpress网站很卡
  • 第一ppt网站官网网站需要哪些费用
  • 国家建设工程网官方网站wordpress 文章调用
  • 网站建设的利弊wordpress 短链接插件
  • 东莞做网站建设公司建设行业年度峰会网站
  • 婚介 东莞网站建设wordpress对接steam
  • 成都科技网站建设电话多少钱公司网站建设电话
  • 推荐邯郸网站建设ui设计在线培训机构
  • 网站怎么做才吸引人拼团网站开发
  • 一个ip 做2个网站吗广州办营业执照
  • 无二制造 网站升级建设中最近军事新闻热点
  • 设计软件网站制作网站建设天津最新通告今天最新
  • 中国档案网站建设的特点网站制作app
  • 做网站用微软雅黑侵权吗wordpress怎么修改头像
  • 长安区建设局网站线上推广方式有哪些渠道
  • 建设银行网站电脑版wordpress代码风格主题
  • 如何建立自己的摄影网站美食网站首页设计
  • 做网站被骗五千多做网站还需要兼容ie8吗
  • 网站设计的研究方案军事新闻视频
  • 常见网站建设工具有哪些怎么做网站关键词推广
  • 北京最大的网站建设有限公司自己做h5怎么做
  • 做一普通网站需要多少钱昆山网站设计
  • 高端品牌网站建设内容富平网站建设
  • 公司对网站排名如何做绩效个人网站设计论文题目
  • 网页网站制作维护用织梦做的网站怎么上传虚拟
  • 网站地图定位用什么技术做云南省住房建设厅网站