stable-diffusion 模型效果+prompt

摘自个人印象笔记,图不完整可查看原笔记:https://app.yinxiang.com/fx/55cda0c6-2af5-4d66-bd86-85da79c5574e
Prompt运用规则及技巧 :
1. https://publicprompts.art/(最适用于OpenArt 线上模型 https://openart.ai/)
2. https://docs.qq.com/doc/DWFdSTHJtQWRzYk9k(转自元素法典,含各类风格用词)
3. https://www.ptsearch.info/home/(实例查询)
4. http://prompttool.com/NovelAI(体验还不错)
使用:
1. 通用Tag起手式: 正向:
masterpiece, best quality, 更多画质词,画面描述
反向:
nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers,extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry,根据画面产出加不想出现的画面。nsfw(not safe for work=涩图)
2. 越靠前的Tag权重越大;比如景色Tag在前,人物就会小,相反的人物会变大或半身。
3. 生成图片的大小会影响Prompt的效果,图片越大需要的Prompt越多,不然Prompt会相互污染。
4. 在Stable Diffusion 中使用()英文括号可增加括号中Tag在画面中的权重 x1.1,[]可减小Tag权重x0.91。在NovelAi官网中,使用{}增加权重x1.05。
5. Prompt支持使用emoji,且表现力较好,可通过添加emoji达到表现效果。如😍形容表情,🖐可修手。
6.“+” , “ AND” , “|” 用法:
“+”和“ AND ”都是用于连接短Tag,但AND两端要加空格。"+"约等于" and "
“|” 为循环绘制符号(融合符号)
(Prompt A: w1)|(Prompt B: w2)
以上表达适用于WebUI,w1、w2为权重。AI会对A、 B两Prompt进行循环绘制。可往后无限加入Prompt。

Prompt格式优化:
1. 简易换行三段式表达:
第一段: 画质tag,画风tag
第二段:画面主体,主体强调,主体细节概括。(主体可以是人、事、物、景)画面核心内容
第三段:画面场景细节,或人物细节,embedding tag。画面细节内容
第二段一般提供人数,人物主要特征,主要动作(一般置于人物之前),物体主要特征,主景或景色框架等
2.元素同典调整版语法:
质量词→前置画风→前置镜头效果→前置光照效果→(带描述的人或物AND人或物的次要描述AND镜头效果和光照)*系数→全局光照效果→全局镜头效果→画风滤镜(embedding)
Tips: 不同模型(ckpt)对Prompt的敏感程度不同,一套完善的prompt在不同的模型中,表达效果会有差异。每个模型都有自己的特色,需根据模型特色,慢慢调试prompt组合。
模型名称
效果图
prompt
备注
unstableinkdream_v6.safetensors
(Gorgeous anime_screencap,limited palette, :1.3) of (Screen print:1.3),(Cosy:1.3) photorealistic, Analog Style photo, (architecture, bird, blue_sky, bridge, (single Medieval Tavern|castle on hill:1.3), cloud, cloudy_sky,, no humans, :1.2)by studio ghibli, oil painting \(medium\), acrycle painting, by (nvinkpunk:0.3),(kuvshinov:0.8),(dreamlikeart:0.3),(samdoesart:0.3),(modelshoot style:0.3),, unreal engin 5,octane render,(2D:1.2), digital painting, artstation, concept art, smooth, sharp focus,art by ross tran and greg rutkowski and alphonse Mucha and Bak Karol,,(colorful:1.16), soft lightingstudio ghibli,Shinkai Makoto,(__Hyperrealism:1.3),(__Photorealism:1.3),(80s Art:1.3),(Low Contrast:1.3)<hypernet:2nvinkpunk:1.0>
Negative prompt: (nsfw:1.3),(tatoo, things on face :1.2),(watermark:1.2),(bored photo:1.2),no color, blurry, ugly, poor quality, deformed hands, deformed face, deformed body, extra limbs, low quality, normal quality, text, errors, bad anatomy, mutation, deformed fingers, missing fingers, low res, bad hands, cropped, deformed hands, (deformed legs:1.2), (deformed arms:1.2), (multiple arms:1.2), (signature:1.2),bad_bad02, long neck, out of frame, extra fingers, mutated hands, monochrome,Low quality,Photo,Artifacts,Table,Paper,Pencils,Pages,Wall,watermark,signature
ENSD: 31337, Size: 512x1024, Seed: 2545151719, Steps: 15, Sampler: DPM++ SDE Karras, CFG scale: 7, Model hash: d855c1d2ba
疑似需要在models\hypernetworks目录下放置2nvinkpunk模型

(Gorgeous anime_screencap,limited palette, :1.3) of (Screen print:1.3),(Cosy:1.3) photorealistic,,best quality,masterpiece,highly detailed,ultra-detailed, (a castle no no humans, :1.5)by studio ghibli, oil painting \(medium\), acrycle painting, by (nvinkpunk:0.3),(kuvshinov:0.8),(dreamlikeart:0.3),(samdoesart:0.3),(modelshoot style:0.3),, unreal engin 5,octane render,(2D:1.2), digital painting, artstation, concept art, smooth, sharp focus,art by ross tran and greg rutkowski and alphonse Mucha and Bak Karol,,(colorful:1.16), soft lightingstudio ghibli,Shinkai Makoto,(__Hyperrealism:1.3),(__Photorealism:1.3),(80s Art:1.3),(Provia:1.3),naturalism,land Art,regionalism,shutterstock contest winner,trending on unsplash,featured on Flickr
Negative prompt: (nsfw:1.3),(tatoo, things on face :1.2),(watermark:1.2),(bored photo:1.2),no color, blurry, ugly, poor quality, deformed hands, deformed face, deformed body, extra limbs, low quality, normal quality, text, errors, bad anatomy, mutation, deformed fingers, missing fingers, low res, bad hands, cropped, deformed hands, (deformed legs:1.2), (deformed arms:1.2), (multiple arms:1.2), (signature:1.2),bad_bad02, long neck, out of frame, extra fingers, mutated hands, monochrome,Low quality,Photo,Artifacts,Table,Paper,Pencils,Pages,Wall,watermark,signature,((hdr)),((terragen)),((rendering)),(high contrast)
ENSD: 31337, Size: 1088x512, Seed: 4113261453, Steps: 15, Sampler: DPM++ 2S a Karras, Hypernet: 2nvinkpunk, CFG scale: 7, Model hash: d855c1d2ba, Hypernet hash: 1cca8b1232


(anime_screencap,limited palette, :1.3) of by (nvinkpunk:0.3),(kuvshinov:0.8),(dreamlikeart:0.3),(samdoesart:0.3),(modelshoot style:0.3), photorealistic,,best quality,masterpiece,highly detailed,ultra-detailed, east asian architecture, banners, rolling green hills, path, stairs, forest, sunny day, clouds, sharp focus, by studio ghibli,, unreal engin 5,octane render,(2D:1.2), limited palette flat color,, digital painting, artstation, concept art, smooth, sharp focus,art by ross tran and greg rutkowski and alphonse Mucha and Bak Karol,, (oil painting:1.16),(acrylic paint:1.16),, by (photorealistic:1.0),(analog style:1.0),studio ghibli,Shinkai Makoto,(__chinese ink painting:1.3),(__Ukiyo-E:1.3)
Negative prompt: (nsfw:1.3),(tatoo, things on face :1.2),(watermark:1.2),(bored photo:1.2),no color, blurry, ugly, poor quality, deformed hands, deformed face, deformed body, extra limbs, low quality, normal quality, text, errors, bad anatomy, mutation, deformed fingers, missing fingers, low res, bad hands, cropped, deformed hands, (deformed legs:1.2), (deformed arms:1.2), (multiple arms:1.2), (signature:1.2),bad_bad04,Low quality,Photo,Artifacts,Table,Paper,Pencils,Pages,Wall,watermark,signature
ENSD: 31337, Size: 768x512, Seed: 3685826003, Steps: 20, Sampler: DPM++ 2M Karras, Hypernet: 2nvinkpunk, CFG scale: 7, Model hash: d855c1d2ba, Hypernet hash: 1cca8b1232


1: A steampunk town, highly detailed oil painting by Thomas Kinkade and James Gurney. Trending on artstation 8k HD octane render photorealistic concept Art matte digital illustration grainy cgsociety contest winner 3d behance h 1024 w- 768 W&D unreal engine 5 quality cinematic dramatic lighting chiaroscuro volumetric light foggy lens flare red color scheme dark green black purple colors vibrant tones atmospheric photograph
Negative prompt: bad_bad04,Hands-neg,
ENSD: 31337, Size: 512x640, Seed: 3833685131, Steps: 20, Sampler: DPM++ 2S a Karras, Hypernet: 2nvinkpunk, CFG scale: 7, Model hash: d855c1d2ba, Hypernet hash: 1cca8b1232

prmj_v1.safetensors
a cute lion cub in a comfy wooden basket, photoreal, shot using sony a7riii camera, photography
ENSD: 31337, Size: 960x768, Seed: 546740366, Steps: 16, Sampler: DPM++ SDE, CFG scale: 6, Model hash: e40298941c

rabbitRabbit_v10.safetensors
blue_flower, bunny, bush, daisy, dandelion, day, field, fireflies, flower, flower_field, full_body, garden, grass, green_background, holding_flower, hydrangea, leaf, nature, no_humans, on_grass, outdoors, palm_tree, plant, pokemon_\(creature\), potted_plant, purple_flower, smile, spider_lily, tree, tree_stump, tulip, watering_can, white_flower
Negative prompt: hairless,Blurred background
Seed: 731834947, Steps: 7, Sampler: DPM++ SDE Karras, CFG scale: 4
搭配chilloutmix_NiPrunedFp32Fix或者sunshinemix_sunlightmixPruned来使用

blue_flower, bunny, bush, daisy, dandelion, day, field, fireflies, flower, flower_field, full_body, garden, grass, green_background, holding_flower, hydrangea, leaf, nature, no_humans, on_grass, outdoors, palm_tree, plant, pokemon_\(creature\), potted_plant, purple_flower, smile, spider_lily, tree, tree_stump, tulip, watering_can, white_flower
Negative prompt: hairless,Blurred background
Seed: 731834940, Steps: 30, Sampler: DPM++ SDE Karras, CFG scale: 4


animal, rabbit,realistic,hairy, animal_focus, blush, looking_at_viewer, no_humans, open_mouth, realistic, smile, tongue, tongue_out, whiskers
Negative prompt: hairless
Seed: 387474633, Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 5


:3,rabbit,realistic,hairy,clothed_animal, black_eyes, bunny, cherry_blossoms, flower, ground_vehicle, no_humans, outdoors, petals, rabbit_ears, snow, snowflakes, snowing, solo, watermark, winter
Negative prompt: hairless
Seed: 50802857, Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 7


:3,rabbit,realistic,hairy,clothed_animal, apple, black_eyes, blush, cherry, food, fruit, full_body, hat, no_humans, strawberry, tomato, watermelon
Negative prompt: hairless
Seed: 4106245977, Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 4

Moxin_10.safetensors
这是一个和墨心搭配使用的构图Lora, 一旦使用并再最前前置提示词后,就会采用较大面积留白的构图风格。可以在版本处找到他
注意事项:
1.)CFG范围将会改变风格
1~3 : 大小写意
3~7 : 逐渐工笔
2.)推荐基础模型为国风3.2( 国风3.2 )
3.)《墨心》的推荐Lora权重为0.85以下
4.)《疏可走马》推荐Lora权重为0.7~1

shuimobysim, girl, woman,bare shoulders, (ecchi0.5), (trees:0.5), (flowers:0.6) ,(birds:0.2), (bamboo0.1), lakes, Hangzhou, wuchangshuo, wuchangshuo in background <lora:shuimobysimV3:0.8>
Negative prompt: mutated hands, (poorly drawn hands:1.331),(fused fingers:1.61051), (too many fingers:1.61051), bad hands, missing fingers, extra digit
Size: 1024x1365, Seed: 2643581225, Model: GuoFeng3.2, Steps: 28, Sampler: DPM++ SDE Karras, CFG scale: 2, Model hash: 0bb33c7041



masterpiece, best quality, official art, 8k wallpaper, highly detailed, illustration, 1 girl, black hair, long hair, detailed eyes, bamboo forrest, bare shoulders, lakes, pure, soft smile <lora:Moxin_10:0.55>
<lora:hipoly3DModelLora_v10:0.0> <lora:fashionGirl_v45:0.4> <lora:Moxin_Shukezouma10:0.5>
Negative prompt: fat, naked, nude, paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, ((monochrome)), ((grayscale)), bad anatomy, DeepNegative, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, bad feet, cropped, poorly drawn hands, poorly drawn face, mutation, deformed, extra fingers, extra limbs, extra arms, extra legs, malformed limbs, fused fingers, too many fingers, long neck, cross-eyed, mutated hands, polar lowres, bad body, bad proportions, gross proportions, text, error, missing fingers, missing arms, missing legs,
Size: 512x768, Seed: 3935949157, Model: chilloutmix_NiPrunedFp32Fix, Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 2, Model hash: fc2511737a
貌似模型要放到lora目录下

shukezouma, (negative space:1.5),clean background, shuimobysim, hanfu, beard, man, mustaches, playing pipa, blue and green ink, <lora:Moxin_Shukezouma:1> <lora:Moxin_1010:0.7>
Negative prompt: mutated hands, (poorly drawn hands:1.331),(fused fingers:1.61051), (too many fingers:1.61051), bad hands, missing fingers, extra digit
Size: 640x1024, Seed: 856686193, Model: gufeng_v10, Steps: 47, Sampler: DPM++ SDE Karras, CFG scale: 3, Model hash: 49337fdda4


shukezouma, (negative space:1.5),clean background, shuimobysim, hanfu, beard, man, mustaches, playing pipa, blue and green ink, <lora:Moxin_Shukezouma:1> <lora:Moxin_1010:0.7>
Negative prompt: mutated hands, (poorly drawn hands:1.331),(fused fingers:1.61051), (too many fingers:1.61051), bad hands, missing fingers, extra digit
Size: 640x1024, Seed: 1963297257, Model: gufeng_v10, Steps: 47, Sampler: DPM++ SDE Karras, CFG scale: 3, Model hash: 49337fdda4


shuimobysim, swordman,holding a sword(trees:0.5),(eagle:0.5), (bamboo:0.2) fighting stance, Hangzhou, wuchangshuo, wuchangshuo in background <lora:moxin_1010:0.8>
Negative prompt: mutated hands, (poorly drawn hands:1.331),(fused fingers:1.61051), (too many fingers:1.61051), bad hands, missing fingers, extra digit
Eta: 0.667, ENSD: 31337, Size: 512x768, Seed: 2340572146, Model: dalcefoBanmooteAsian_dalcefoBanmoote, Steps: 40, Sampler: DPM++ SDE Karras, CFG scale: 2, Clip skip: 2, Model hash: 9ffb93a408

ChilloutMixss或叫:chilloutmixss_xss10.safetensors
(RAW photo, best quality,high quality,highres), (realistic, photo-realistic), ultra-detailed,(front lighting), closed up portrait photo,physically-based rendering, 1girl,20 years old,(stand,pose,front full body),(highly detailed skin:1.3),laughing out loudly,head tilt, very very long longest hoodie,detailed hoodie,bare legs,hands in hoodie pocket, detailed eyes,air bangs,
<lora:xiaoshasha_xss10:0.70>,
<lora:koreanDollLikeness_v10:0.2>

Negative prompt: (EasyNegative:1.2), paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, ((monochrome)), (grayscale:1.2),extra fingers,fewer fingers,(watermark:1.2),(letters:1.2),(nsfw:1.2),(2girls:1.2), see-through clothes, huge breasts,large breasts,pants,pussy,panties,bag,purse,hand,(bad ears,earrings:1.4),
Seed: 1738731153, Steps: 20, Sampler: DPM++ 2M, CFG scale: 8
需要将ChilloutMixss模型复制一份到lora目录下,改名为:xiaoshasha_xss10

(8k, RAW photo, best quality, masterpiece:1.2), (realistic, photo-realistic:1.37), best quality, ultra high res, restaurant, 1girl, tree, pink rose, flower, solo, ((hair blown by air)) , sitting, pink flower, window, white rose, brown eyes,((wink)), short hair, denim, white shirt, blue jeans, red rose, shorts, head rest, table, vase, (ulzzang-6500-v1.1:0.5),(pureerosface_v1:0.5),photographed with a sony A9M2, sigma 85 f1.4 lens, by Laurence Demaison, <lora:chilloutmixss_xss10:0.6> ,
Negative prompt: EasyNegative, paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans, nsfw, (outdoor:1.6), backlight,(ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), (tranny:1.331), mutated hands, (poorly drawn hands:1.5), blurry, (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.331), (more than 2 nipples:1.331), (missing arms:1.331), (extra legs:1.331), (fused fingers:1.61051), (too many fingers:1.61051), (unclear eyes:1.331), lowers, bad hands, missing fingers, extra digit, (futa:1.1),bad hands, missing fingers, panties,bad hands,bad finger,long finger,Multiple fingers,hands up,
ENSD: 31337, Size: 640x960, Seed: 172127844, Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 8, Clip skip: 2, Model hash: a757fe8b3d, ControlNet Model: control_sd15_openpose [fef5e48e], ControlNet Module: openpose, ControlNet Weight: 1, ControlNet Enabled: True, ControlNet Guidance Strength: 1

goodAsianGirlFace_goodAsianGirlFaceV12.safetensors
masterpiece,best quality, upper body protrait of (Wsxff:1.3), brown long wavy hair, bangs, big eyes, parted lips, black eyes,, Sketch, masterpiece, best quality, extremely detailed, 1girl, full body, beautiful detailed eyes, cute anime face, full body, beautiful detailed face, white hair, (Botanical illustration:1.5), white dress
Negative prompt: nsfw,ugly, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, multiple girls, multiple faces,, canvas frame, cartoon, 3d, ((disfigured)), ((bad art)), ((deformed)),((extra limbs)),((close up)),((b&w)), wierd colors, blurry, (((duplicate))), ((morbid)), ((mutilated)), [out of frame], extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck))), Photoshop, video game, ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, mutation, mutated, extra limbs, extra legs, extra arms, disfigured, deformed, cross-eye, body out of frame, blurry, bad art, bad anatomy, 3d render, nsfw, lower, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, missing fingers, bad hands, missing arms, long neck, Humpbacked, shadow, nude
ENSD: 31337, Size: 512x768, Seed: 104490948, Steps: 28, Sampler: Euler a, CFG scale: 12, Model hash: aff1d22be5, Face restoration: GFPGAN


High Detail, Sharp focus, dramatic, photorealistic, hyper realistic, a long bob cut girl [with a warm smile:0.8] working at a cozy coffee shop, wearing a black apron and a white shirt, at dusk, with depth of field, light rays, (light particles:0.9), and soft shadows on her face, looking at viewer, [Paul Hedley:0.5], warm tone
Negative prompt: ugly, fat, obese,(((deformed))), blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands fingers), messy drawing, morbid, mutilated, [out of frame], (bad proportions), (poorly drawn body), (poorly drawn legs), worst quality, low quality, normal quality, text, censored,, ugly, fat, obese,(((deformed))), blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands fingers), messy drawing, morbid, mutilated, [out of frame], (bad proportions), (poorly drawn body), (poorly drawn legs), worst quality, low quality, normal quality, text, censored, (bad_prompt_version2:0.8)
ENSD: 31337, Size: 768x1024, Seed: 2029189734, Steps: 30, Sampler: Euler a, CFG scale: 7, Batch pos: 1, Clip skip: 2, Mask blur: 4, Batch size: 4, Model hash: 6aa9d14bba, Denoising strength: 0.75


a photo of Katonana, masterpiece, best quality, 4k, illustration,((1girl)), realistic, photo \(medium\), ((masterpiece)), (((best quality))), ((ultra-detailed)), ((illustration)),depth of field,cinematic lighting, volume lighting, bloom effect,light particles, hair ornament, sunlight , morning, lens 135mm,f1.8,
Negative prompt: nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry,mulitple people, multiple boys, multiple girls,
ENSD: 31337, Size: 512x768, Seed: 3332775436, Model: GoodAsianGirlFace_V1.0, Steps: 50, Sampler: DPM++ 2M Karras, CFG scale: 10.5, Model hash: 206eb7d3, Face restoration: GFPGAN

Xiaorenshu_v20.safetensors
shz,((best quality)), ((masterpiece)), (detailed), realistic, multiple boys,(riding horse),mustache, looking at viewer, outdoors,house, amy,horse
Negative prompt: easynegative bad_prompt_version2 ng_deepnegative_v1_75t
ENSD: 31337, Size: 512x768, Seed: 3836055402, Steps: 25, Sampler: DPM++ SDE Karras, CFG scale: 5, Clip skip: 2, Model hash: 5efb10a9e1, Hires steps: 10, Hires upscale: 2, AddNet Enabled: True, AddNet Model 1: xrs2.0-000016(97413ad0d80d), Hires upscaler: SwinIR_4x, AddNet Module 1: LoRA, AddNet Weight A 1: 0.9, AddNet Weight B 1: 0.9, Denoising strength: 0.45


((best quality)), ((masterpiece)), (detailed), multiple boys, battle, outdoors, fighting stance,amy,horse
Negative prompt: easynegative bad_prompt_version2 ng_deepnegative_v1_75t
ENSD: 31337, Size: 960x640, Seed: 67430860, Steps: 30, Sampler: DPM++ SDE Karras, CFG scale: 6, Clip skip: 2, Model hash: fc2511737a, Hires steps: 10, Hires upscale: 2, AddNet Enabled: True, AddNet Model 1: xrs2.0-000016(97413ad0d80d), Hires upscaler: SwinIR_4x, AddNet Module 1: LoRA, AddNet Weight A 1: 0.9, AddNet Weight B 1: 0.9, Denoising strength: 0.4






藏丹阁-NovelAI模型大全分享-第一层:
https://docs.qq.com/doc/DY0lFeWZuVXRCdUJU

藏丹阁-NovelAI模型大全分享-第二层:
https://docs.qq.com/doc/DY1hydmRGTENGTXdo

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/86374.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

PyTorch翻译官网教程-LANGUAGE MODELING WITH NN.TRANSFORMER AND TORCHTEXT

官网链接 Language Modeling with nn.Transformer and torchtext — PyTorch Tutorials 2.0.1cu117 documentation 使用 NN.TRANSFORMER 和 TORCHTEXT进行语言建模 这是一个关于训练模型使用nn.Transformer来预测序列中的下一个单词的教程。 PyTorch 1.2版本包含了一个基于论…

Flink源码之JobMaster启动流程

Flink中Graph转换流程如下&#xff1a; Flink Job提交时各种类型Graph转换流程中&#xff0c;JobGraph是Client端形成StreamGraph后经过Operator Chain优化后形成的&#xff0c;然后提交给JobManager的Restserver&#xff0c;最终转发给JobManager的Dispatcher处理。 Completa…

Jmeter —— jmeter设置HTTP信息头管理器模拟请求头

HTTP信息头管理器 HTTP信息头管理器是在有需要模拟请求头部的时候进行设置的&#xff0c;添加方式 是 右击线程组 -- 配置元件 -- HTTP信息头管理器 可以通过抓包工具或者F12获取http请求的header头部信息&#xff1b;如下图&#xff1a; 复制并点击jmeter中的从剪贴板添加&am…

文盘 Rust -- tokio 绑定 cpu 实践

tokio 是 rust 生态中流行的异步运行时框架。在实际生产中我们如果希望 tokio 应用程序与特定的 cpu core 绑定该怎么处理呢&#xff1f;这次我们来聊聊这个话题。 首先我们先写一段简单的多任务程序。 use tokio::runtime; pub fn main() {let rt runtime::Builder::new_mu…

ffplay数据结构分析(一)

本文为相关课程的学习记录&#xff0c;相关分析均来源于课程的讲解&#xff0c;主要学习音视频相关的操作&#xff0c;对字幕的处理不做分析 下面我们对ffplay的相关数据结构进行分析&#xff0c;本章主要是对PacketQueue的讲解 struct MyAVPacketList和PacketQueue队列 ffp…

11-数据结构-栈和队列的应用(C语言)

栈和队列的应用 目录 栈和队列的应用 一、括号匹配&#xff08;栈&#xff09; 二、表达式的各种转换 (1)中缀转后缀(手工) (2)后缀转中缀表达式(手工) (3)中缀转后缀(栈) (4)中缀转后缀&#xff08;树&#xff09; (5)后缀表达式求值 (6)中缀表达式求值&#xff08;栈…

阻抗是什么?什么时候要考虑阻抗匹配?

在电路设计中&#xff0c;我们常常碰到跟阻抗有关的问题&#xff0c;那么到底什么是阻抗&#xff1f; 在具有电阻、电感和电容的电路里&#xff0c;对电路中电流所起的阻碍作用叫做阻抗。常用Z来表示&#xff0c;它的值由交流电的频率、电阻R、电感L、电容C相互作用来决定。由…

【黑马头条之xxl-Job分布式任务调度】

本笔记内容为黑马头条项目的分布式任务调度热点文章部分 目录 一、今日内容 1、需求分析 2、实现思路 3、定时计算 4、定时任务框架-xxljob 二、分布式任务调度 1、什么是分布式任务调度 2、xxl-Job简介 3、XXL-Job-环境搭建 4、配置部署调度中心-docker安装 5、xx…

系统学习Linux-Redis集群

目录 一、Redis主从复制 概念 作用 缺点 流程 二、Reids哨兵模式&#xff08;sentinel&#xff09; 概念 作用 缺点 结构 搭建 三、redis集群 概述 原理 架构细节 选举过程 实验环境模拟 一、Redis主从复制 概念 是指将一台Redis服务器的数据&#xff0c;复制…

安防监控视频汇聚平台EasyCVR分发的FLV视频流在VLC中无法播放是什么原因?

众所周知&#xff0c;TSINGSEE青犀视频汇聚平台EasyCVR可支持多协议方式接入&#xff0c;包括主流标准协议国标GB28181、RTSP/Onvif、RTMP等&#xff0c;以及厂家私有协议与SDK接入&#xff0c;包括海康Ehome、海大宇等设备的SDK等。在视频流的处理与分发上&#xff0c;视频监控…

java之junit Test

JUnit测试简介 1.什么是单元测试 单元测试是针对最小的功能单元编写测试代码Java程序最小的功能单元是方法单元测试就是针对单个Java方法的测试 2.测试驱动开发 3.单元测试的好处 确保单个方法运行正常如果修改了方法代码&#xff0c;只需确保其对应的单元测试通过测试代码…

佛祖保佑,永不宕机,永无bug

当我们的程序编译通过&#xff0c;能预防的bug也都预防了&#xff0c;其它的就只能交给天意了。当然请求佛祖的保佑也是必不可少的。 下面是一些常用的保佑图&#xff1a; 佛祖保佑图 ——————————————————————————————————————————…

【uniapp】uniapp设置安全区域:

文章目录 一、效果图:二、实现代码: 一、效果图: 二、实现代码: {"path": "pages/index/index","style": {"navigationStyle": "custom","navigationBarTextStyle": "white","navigationBarTitle…

List list=new ArrayList()抛出的ArrayIndexOutOfBoundsException异常

1.应用场景&#xff0c;今天生产日志监控到一组new ArrayList() 进行add 异常&#xff0c;具体日志如下&#xff1a; eptionHandler.handler(178): TXXYBUSSINESS|执行异常 java.util.concurrent.CompletionException: java.lang.ArrayIndexOutOfBoundsException: Index 1 out…

PyTorch翻译官网教程-NLP FROM SCRATCH: GENERATING NAMES WITH A CHARACTER-LEVEL RNN

官网链接 NLP From Scratch: Generating Names with a Character-Level RNN — PyTorch Tutorials 2.0.1cu117 documentation 使用字符级RNN生成名字 这是我们关于“NLP From Scratch”的三篇教程中的第二篇。在第一个教程中</intermediate/char_rnn_classification_tutor…

MongoDB的下载和安装

一、MongoD下载 下载地址&#xff1a;https://www.mongodb.com/try/download/community 二、安装 因为选择下载的是 .zip 文件&#xff0c;直接跳过安装&#xff0c;一步到位。 选择在任一磁盘创建空文件夹&#xff08;不要使用中文路径&#xff09;&#xff0c;解压之后把文…

android 如何分析应用的内存(十七)——使用MAT查看Android堆

android 如何分析应用的内存&#xff08;十七&#xff09;——使用MAT查看Android堆 前一篇文章&#xff0c;介绍了使用Android profiler中的memory profiler来查看Android的堆情况。 如Android 堆中有哪些对象&#xff0c;这些对象的引用情况是什么样子的。 可是我们依然面临…

flink kafka消费者如何处理kafka主题的rebalance

背景&#xff1a; 我们日常使用kafka客户端消费kafka主题的消息时&#xff0c;当消费者退出/加入消费者组&#xff0c;kafka主题分区数有变等事件发生时&#xff0c;都会导致rebalance的发生&#xff0c;此时一般情况下&#xff0c;如果我们不自己处理offset&#xff0c;我们不…

深入理解PyTorch中的NoamOpt优化器

深入理解PyTorch中的NoamOpt优化器 作者&#xff1a;安静到无声 个人主页 今天&#xff0c;我们将深入探讨一个在自然语言处理领域广泛使用的优化器——NoamOpt。这个优化器是基于PyTorch实现的&#xff0c;并且在"Attention is All You Need"这篇论文中首次提出。…

c++11-14-17_内存管理(RAII)_多线程

文章目录 前言&#xff1a;什么是RAII&#xff1f;指针/智能指针&#xff1a;使用智能指针管理内存资源&#xff1a;unique_ptr的使用&#xff1a;自定义删除器&#xff1a; shared_ptr的使用&#xff1a;shared_ptr指向同一个对象的不同成员&#xff1a;自定义删除函数&#x…