“AI+X”遇见中国传统文化
本实验基于中国传统纹样数据,通过文生图、图生图技术的讲述与实践实训,让同学们走近传统文化,感受艺术与AI技术的碰撞。
实验简介
文化计算(cultural computing)是利用社会计算、大数据、人工智能等技术与人文、历史等学科相互交叉融合,实现文化内容挖掘传播、推动数字人文研究,促进文化繁荣发展的技术手段。
北邮移动媒体与文化计算北京市重点实验室团队对中华上下五千年的文物的资料进行数字化,提取出纹样信息。智链iLink团队捕捉到这一点,结合当今时代AI+大模型技术十分火热,将传统纹饰用于现代艺术的二次创作需求十分广泛。
本实验基于中国传统纹样数据,通过文生图、图生图技术的讲述与实践实训,让同学们走近传统文化,感受艺术与AI技术的碰撞。
实验室资源方式简介
云起实验室支持个人账号资源一种实验资源方式。云起实验室将在您的账号下开通本次实操资源,资源消耗按照按量计费后付费的模式,需要您自行承担本次实操的云资源费用,云起实验室不会向您征收额外费用。
进入实操前,请确保阿里云账号满足以下条件:
个人账号资源
使用您个人的云资源进行操作,资源归属于个人。
所有实验操作将保留至您的账号,请谨慎操作。
平台仅提供手册参考,不会对资源做任何操作。
- 说明
使用个人账户资源,在创建资源时,可能会产生一定的费用,请您及时关注相关云产品资源的计费概述。
确保已完成云工开物300元代金券领取。
已通过实名认证且账户余额≥0元。
本实验,预计产生费用:约0.012元(以仅用SDWebUI(共享版)生成一张512*512最简单的图(393kb,1.66sec)为例估算)
对象存储 OSS
存储:0.0004元
下行流量:不消耗下行流量
请求数:每用户每月免费2000W读和500W写请求免费(适用LRS(单AZ)和ARS(3AZ)的对象存储标准型)
模型在线服务 PAI-EAS
生图GPU消耗费用预估:0.012元/张(512*512)
如果您调整了资源规格、使用时长,或执行了本方案以外的操作,可能导致费用发生变化,请以控制台显示的实际价格和最终账单为准。
所有实验操作将保留至您的账号,请谨慎操作。
实操结束后,您可以选择继续付费保留资源,否则资源将自动释放。
领取专属权益及开通授权
在开始实验之前,请先点击右侧屏幕的“进入实操”再进行后续操作
第一步:本次实验需要您通过领取阿里云云工开物学生专属300元抵扣券兑换本次实操的云资源,如未领取请先点击领取。(若已领取请跳过)
实验产生的费用优先使用优惠券,优惠券使用完毕后需您自行承担。
第二步:进入并开通PAI ArtLab并授权
点击访问PAI ArtLab平台
初次进入平台,依次点击两步,完成PAI ArtLab平台开通与授权
完成PAI ArtLab平台开通与授权,进入到首页
实验准备
从智链平台提供的链接下载从中国传统文物中提取出来的纹样数据,点击下载
参考PAI Artlab官方提供的SD提示词说明文档:PAI ArtLab Stable Diffusion模型生图实践
实验一、文生图体验:遇见传统文化
一、拉起SD共享版服务
来到首页工具箱,选择SD共享版工具(初次拉起需要一些时间请耐心等待)
二、选择生图模式
先选择一个Stable Diffusion模型(模型推荐:revAnimated_v122),再选择文生图
三、文生图样例体验
生成青花瓷碗
正向提示词(可直接复制):
"A traditional Chinese blue and white porcelain bowl, known as Qinghua. The bowl is decorated with intricate blue floral and landscape patterns, featuring delicate brushwork and a glossy white glaze. The design includes elements like mountains, rivers, and blooming flowers, all in a classic cobalt blue color. The bowl sits on a dark wooden table with soft, natural lighting highlighting the smooth, reflective glaze and the elegance of the craftsmanship. The scene is serene, evoking a timeless aesthetic of Chinese art and culture."
生成铜镜
正向提示词(可直接复制):
"An ancient Chinese bronze mirror with intricate relief carvings on the back, featuring traditional motifs like phoenixes, kirin, and peony flowers. The bronze surface has a weathered, dark patina with touches of green oxidation, adding to its antique look. The relief patterns are finely detailed, symbolizing prosperity, strength, and beauty. The mirror evokes a sense of timeless elegance and cultural heritage."
反向提示词(可直接复制):
"modern design, Western style, contemporary bathroom, electric lighting, modern sink, mirror frame without traditional Chinese motifs, smooth surfaces, minimalistic decor, absence of antique patina,portrait, human figure"
四、点击生成
点击生成按钮,如果对与生成结果不满意可以多生成几次:)
实验二、图生图体验:触摸传统文化
一、拉起SD共享版服务
来到首页工具箱,选择SD共享版工具(初次拉起需要一些时间请耐心等待)
二、选择生图模式
先选择一个Stable Diffusion模型(模型推荐:revAnimated_v122),再选择图生图
三、图生图样例体验
上传图片
上传图片到图生图组件
反推提示词
点击CLIP反推或DeepBooru反推
修改需求
根据需要,修改提示词,说明你上传的纹样希望被用于什么场景。
例:把龙纹作为地毯的纹样
An ornate carpet featuring the pattern of a dragon on an orange background with oriental writing on it and a blue circle with a dragon on it. The carpet should have the texture of wool, embodying the style of An Zhengwen, cloisonnism, dragon art, and silk screen printing techniques.
生成图片
点击生成按钮
四、其他示例纹样图片与对应的提示词
莲花纹
A white porcelain vase decorated with a picture of a flower featuring green leaves and pink flowers on one side and a yellow flower on the other side. The design should reflect the style of Cheng Shifa, incorporating elements of folk art and Art Nouveau fashion, with an emphasis on cross-stitch embroidery.
生成效果(瓷器):
万寿纹
A traditional 'Shou' character motif, intricately designed for decorative use on a Huanghuali wood screen. The motif features a central, ornate design in the style of cloisonné, blending elegant blue and black hues. The detailed craftsmanship highlights the timeless beauty and auspicious meaning of longevity, suitable as an exquisite element in both traditional and modern interior settings. An Zhengwen, cloisonné, decorative motif, Huanghuali wood screen, traditional Chinese art.
生成效果(木制家具):
山纹
A traditional Chinese scenic landscape painting composed of various mountain patterns, featuring intricate and diverse mountain textures that blend harmoniously to create a panoramic view of nature. The artwork captures the essence of classical Chinese landscape painting, with rolling hills, towering peaks, and serene valleys, all rendered in a style that emphasizes the beauty and tranquility of the natural world. The composition is rich in detail, with each mountain pattern contributing to the overall harmony and depth of the scene, making it a stunning representation of the majestic beauty of mountains
生成效果(风景画):
荷花纹
A beautiful, flowing dress adorned with intricate, circular motifs, each containing a delicate and vibrant flower at its center. The dress has a graceful silhouette, suitable for a formal or elegant occasion, and the fabric appears light and airy, as if it would flow beautifully with the slightest breeze
生成效果(连衣裙):
竹子纹
A meticulously crafted wooden sculpture featuring traditional Chinese bamboo motifs, inspired by the elegant patterns found on ancient Chinese clothing. The sculpture showcases intricate detailing and a smooth, polished finish, capturing the serene and harmonious essence of Chinese art. The bamboo elements are delicately intertwined, symbolizing strength and resilience, set against a minimalist background to highlight the craftsmanship and beauty of the wood
生成效果(木雕):
凤凰纹
A plush toy designed as a vibrant yellow and red bird, featuring a striking red tail with detailed feathers. Set against a clean white background, the design embodies the artistic influence of Fang Congyi, incorporating elements of Sumatraism. The image of the bird also serves as a logo for the product. The entire design is rendered in the style of a silk screen print, giving it a distinctive visual appeal.
生成效果(毛绒玩偶):
缠枝牡丹
A necklace featuring a design of a purple flower with green leaves set against a white background. The flower has a bright yellow center and a green stem extending from its base. The design is inspired by the artistic style of Asai Chū, incorporating elements of rococo and Art Nouveau fashion. The pendant appears as if it were intricately embroidered, yet it is actually a detailed digital rendering
生成效果(项链):
金鱼纹
A close-up of a beautifully designed book bag made from a blue and gold colored fabric, adorned with an elegant fish pattern that seems to come alive on the surface. The attention to micro-detail is evident, especially in the application of cross-stitch, which gives the bag a richly textured appearance and highlights the artisan's skill
生成效果(书包):
花卉纹
A classical and elegant photo frame, with the pattern on the frame being a painting of a flower and leaves intertwined with a vibrant blue and pink flower, evoking the refined aesthetics of the Song Dynasty. The design showcases elements of cloisonné art, characterized by intricate patterns and rich colors typical of official court art from that era.the background is white and with no photos inside.
生成效果(相框):
宝塔纹
A Chinese pagoda-shaped cake, the cake is made of light yellow cream and cake base, soft and delicious
生成效果(蛋糕):
五、清理资源
如果无需继续使用工具,您可以按照以下操作步骤停止或删除工具。
在PAI ArtLab控制台中,关闭Stable Diffusion(共享版)页签,EAS模型服务将会停止,不会继续收费。
在页面左上方,选择模型所在地域,本实验EAS实例所在地域为华东2(上海)
在左侧导航栏单击工作空间列表,在工作空间列表页面中单击默认工作空间名称,进入对应工作空间内。
在工作空间页面的左侧导航栏中单击模型在线服务(EAS)。在模型在线服务(EAS)页面,找到目标服务。单击其右侧操作列下的删除
如果需要继续使用Stable Diffusion(共享版),请随时关注账号扣费情况,避免模型会因欠费而被自动停止。
后续
在产品使用期间,您还可以继续使用ComfyUI(专享版)生成更多创意贴纸,解锁更多玩法。
场景补充
在本实验场景中,将使用阿里云一站式 AIGC 设计平台 PAI ArtLab,云端一键启动 Stable Diffusion WebUI(共享版)工具,零代码无需部署即可体验 Stable Diffusion 文生图模型。本实验依赖两款云产品,分别是对象存储 OSS 和模型在线服务 PAI-EAS,对象存储 OSS 支持模型、图像、文本等文件的存储、预览及下载等能力。模型在线服务 PAI-EAS 支持利用云上 GPU 进行模型在线推理生图。
本实验场景无需深奥的AI背景知识,只需启动生图工具,依据实验教程文档,在生图工具界面输入图像生成的提示词,即可轻松完成本实验获取AI生成图像,感受AIGC的魅力。
在使用平台工具过程中,如有任何疑问和建议,您可以加入钉钉群(群号:88010006410)反馈,并获取技术支持。
背景知识
PAI ArtLab
PAI ArtLab是由阿里云人工智能平台PAI联合阿里云智能设计部共同打造的平台产品,面向设计场景,旨在为设计师提供自动化设计工具的一站式AIGC设计平台。平台打通了数据集管理与模型训练、AI绘图与在线推理的全场景链路,集成了主流的文生图类型的AIGC大模型工具及文生图模型开箱即用。设计师无需编程功底也可利用AI技术进行批量自动化图片生产,有效降低文生图大模型的使用学习成本和技术门槛,为设计想象力和设计生产力加速。帮助您在设计、艺术、创意行业快速应用AIGC能力。
PAI ArtLab平台依赖以下两款云产品:
对象存储OSS:模型、图像、文本等文件的存储、预览及下载会消耗此产品资源;
模型在线服务PAI-EAS:利用云上GPU进行模型在线推理会消耗此产品资源;
(在您使用平台、用代金券进行资源抵扣及付费购买的过程中,会感知到以上2款阿里云产
品。
关闭实验
在完成实验后,点击 结束实操
点击 取消 回到实验页面,点击 确定 跳转实验评分
请为本次实验评分,并给出您的建议,点击 确认,结束本次实验