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

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

相关文章:

stable-diffusion 模型效果+prompt

摘自个人印象笔记&#xff0c;图不完整可查看原笔记&#xff1a;https://app.yinxiang.com/fx/55cda0c6-2af5-4d66-bd86-85da79c5574ePrompt运用规则及技巧 &#xff1a; 1. https://publicprompts.art/&#xff08;最适用于OpenArt 线上模型 https://openart.ai/&#xff09;…...

uniapp 小兔鲜儿 - 首页模块(1)

目录 自定义导航栏 静态结构 安全区域​ 通用轮播组件 静态结构 自动导入全局组件 全局组件类型声明 .d.ts文件 注册组件 vue/runtime-core 首页 – 轮播图指示点 首页 – 获取轮播图数据 首页 – 轮播图数据类型并渲染 首页 – 轮播图总结 首页分类 首页 – 前…...

selenium.webdriver Python爬虫教程

文章目录 selenium安装和使用 selenium安装和使用 pip install selenium 下载对应的浏览器驱动 实例化浏览器 from selenium import webdriverbrowser webdriver.Chrome()元素定位 控制浏览器...

USB-SC-09编程电缆驱动程序安装说明

USB-SC-09编程电缆驱动程序安装说明 概述 USB编程电缆是通过将电脑的USB口模拟成传统的串行口&#xff08;通常为COM3&#xff09;&#xff0c;从而使编程软件SWOPC-FXGP/WIN和GPP通过USB-SC-09编程电缆与FX系列PLC进行通信。 功能 ● 支持的操作系统Windows XP/ Windows2000 …...

ONVIF对讲功能漫谈

ONVIF对讲功能漫谈 前言一、onvif对讲功能和onvif协议关系大吗?二、如何上报设备支持onvif对讲功能呢?三、onvif协议中哪个接口上报音频解码配置?四、献上抓包报文:前言 本篇文章尝试使用提问的方式来分享onvif对讲功能那点事。 一、onvif对讲功能和onvif协议关系大吗? on…...

计算文本相似度

目录 Python中的difflib模块模块用法报告涉及的符号实现文本对比普通文本对比文本对比生成HTML报告 余弦相似度sklearn安装使用sklearn的余弦相似度词袋模型 Jaccard相似度编辑距离&#xff08;Levenshtein距离&#xff09;TF-IDFWord2VecDoc2VecBERT结论 Python中的difflib模块…...

oracle 增加控制文件

oracle 增加控制文件 1、看control_file路径 SQL> show parameter controlNAME TYPE VALUE ------------------------------------ ----------- ------------------------------ control_file_record_keep_time integer …...

OpenFeign超时时间设置不生效问题排查

最近升级springboot 3&#xff0c;突然发现配置文件中的openFeign的超时时间设置不生效了 之前配置如下&#xff1a; feign: client: config: default: connectTimeout: 3000 readTimeout: 5000 查资料都是说ribbon或者hystrix的超时时间设置问…...

Go和Java实现原型模式

Go和Java实现原型模式 下面将通过一个克隆的示例来说明原型模式的使用。 1、原型模式 原型模式是用于创建重复的对象&#xff0c;同时又能保证性能。这种类型的设计模式属于创建型模式&#xff0c;它提供了一种创建对 象的最佳方式之一。 这种模式是实现了一个原型接口&am…...

linux I/O性能优化

Linux 文件系统 磁盘和文件系统的关系&#xff1a; 磁盘为系统提供了最基本的持久化存储。 文件系统则在磁盘的基础上&#xff0c;提供了一个用来管理文件的树状结构。 文件系统工作原理 索引节点和目录项 文件系统&#xff0c;本身是对存储设备上的文件&#xff0c;进行组织…...

PHP最简单自定义自己的框架model使用(七)

1、实现model使用效果 2、自动加载model,KJ.php //自动加载文件public static function _autoload($className){switch ($className){//自动model类case substr($className,-5)Model:$path MODEL./.$className..php;if(is_file($path)) include $path;break;//自动加载控制器…...

程序猿成长之路之密码学篇-分组密码加密模式及IV(偏移量)的详解

Cipher.getInstance("AES/ECB/PKCS5Padding"); Cipher cipher Cipher.getInstance("AES/CBC/PKCS5Padding"); 在进行加解密编程的时候应该有很多小伙伴接触过以上的语句&#xff0c;但是大伙儿在编码过程中是否了解过ECB/CBC的含义、区别以及PKCS5Padding…...

Windows下批处理删除文件

最近我使用Maven的时候会出现下载jar包不成功的现象&#xff0c;然后需要把它删除然后重新下载&#xff0c;但是有时候文件过多&#xff0c;一个个删除太花费时间&#xff0c;所以用bat的批处理会很舒服。 bat的语法我之前没遇到过&#xff0c;然后我是边学习边试验&#xff0…...

html中文件上传储存到本地路径

第一步:写html文件 <form action"/uplode" method"post" enctype"multipart/form-data">姓名:<input type"text" name"username"><br>年龄:<input type"text" name"age"><…...

第九章 SpringBoot 自动配置原理 入门

1. 引导加载自动配置类 SpringBootApplication -- SpringBootConfiguration -- EnableAutoConfiguration -- ComponentScan //SpringBootApplicationSpringBootConfiguration EnableAutoConfiguration ComponentScan(excludeFilters { Filter(type FilterType.CUSTOM, cl…...

String str=new String(“tango“) 创建了几个对象?

面试回答 创建的对象数 应该是1个或者2个。 首先要清楚什么是对象&#xff1f; Java 是一种面向对象的语言&#xff0c;而 Java 对象在 JVM 中的存储也是有一定的结构的&#xff0c;在 HotSpot 虚拟机中&#xff0c;存储的形式就是 oop-klass model&#xff0c;即 Java 对象模型…...

引入三阶失真的非线性放大器的模拟输出及使用中值滤波器去除峰值研究(Matlab代码实现)

&#x1f4a5;&#x1f4a5;&#x1f49e;&#x1f49e;欢迎来到本博客❤️❤️&#x1f4a5;&#x1f4a5; &#x1f3c6;博主优势&#xff1a;&#x1f31e;&#x1f31e;&#x1f31e;博客内容尽量做到思维缜密&#xff0c;逻辑清晰&#xff0c;为了方便读者。 ⛳️座右铭&a…...

【观察者设计模式详解】C/Java/JS/Go/Python/TS不同语言实现

简介 观察者模式&#xff08;Observer Pattern&#xff09;是一种行为型模式。它定义对象间的一种一对多的依赖关系&#xff0c;当一个对象的状态发生改变时&#xff0c;所有依赖于它的对象都得到通知并被自动更新。 观察者模式使用三个类Subject、Observer和Client。Subject…...

精细解析中文公司名称:智能分词工具助力地名、品牌名、行业词和后缀提取

精细解析中文公司名称&#xff1a;智能分词工具助力地名、品牌名、行业词和后缀提取 中文公司名称分词工具&#xff0c;支持公司名称中的地名&#xff0c;品牌名&#xff08;主词&#xff09;&#xff0c;行业词&#xff0c;公司名后缀提取。 对公司名文本解析&#xff0c;识…...

网络编程(JavaEE初阶系列10)

目录 前言&#xff1a; 1.网络编程的基础 1.1为什么需要网络编程 1.2什么是网络编程 1.3网络编程中的基本概念 1.3.1发送端和接收端 1.3.2请求和响应 1.3.3客户端和服务端 2.Socket套接字 2.1概念 2.2分类 3.UDP数据报套接字编程 3.1DataGramSocket API 3.2Datagr…...

c++ 面试题(1)-----深度优先搜索(DFS)实现

操作系统&#xff1a;ubuntu22.04 IDE:Visual Studio Code 编程语言&#xff1a;C11 题目描述 地上有一个 m 行 n 列的方格&#xff0c;从坐标 [0,0] 起始。一个机器人可以从某一格移动到上下左右四个格子&#xff0c;但不能进入行坐标和列坐标的数位之和大于 k 的格子。 例…...

CMake 从 GitHub 下载第三方库并使用

有时我们希望直接使用 GitHub 上的开源库,而不想手动下载、编译和安装。 可以利用 CMake 提供的 FetchContent 模块来实现自动下载、构建和链接第三方库。 FetchContent 命令官方文档✅ 示例代码 我们将以 fmt 这个流行的格式化库为例,演示如何: 使用 FetchContent 从 GitH…...

MySQL用户和授权

开放MySQL白名单 可以通过iptables-save命令确认对应客户端ip是否可以访问MySQL服务&#xff1a; test: # iptables-save | grep 3306 -A mp_srv_whitelist -s 172.16.14.102/32 -p tcp -m tcp --dport 3306 -j ACCEPT -A mp_srv_whitelist -s 172.16.4.16/32 -p tcp -m tcp -…...

【Oracle】分区表

个人主页&#xff1a;Guiat 归属专栏&#xff1a;Oracle 文章目录 1. 分区表基础概述1.1 分区表的概念与优势1.2 分区类型概览1.3 分区表的工作原理 2. 范围分区 (RANGE Partitioning)2.1 基础范围分区2.1.1 按日期范围分区2.1.2 按数值范围分区 2.2 间隔分区 (INTERVAL Partit…...

有限自动机到正规文法转换器v1.0

1 项目简介 这是一个功能强大的有限自动机&#xff08;Finite Automaton, FA&#xff09;到正规文法&#xff08;Regular Grammar&#xff09;转换器&#xff0c;它配备了一个直观且完整的图形用户界面&#xff0c;使用户能够轻松地进行操作和观察。该程序基于编译原理中的经典…...

在web-view 加载的本地及远程HTML中调用uniapp的API及网页和vue页面是如何通讯的?

uni-app 中 Web-view 与 Vue 页面的通讯机制详解 一、Web-view 简介 Web-view 是 uni-app 提供的一个重要组件&#xff0c;用于在原生应用中加载 HTML 页面&#xff1a; 支持加载本地 HTML 文件支持加载远程 HTML 页面实现 Web 与原生的双向通讯可用于嵌入第三方网页或 H5 应…...

SiFli 52把Imagie图片,Font字体资源放在指定位置,编译成指定img.bin和font.bin的问题

分区配置 (ptab.json) img 属性介绍&#xff1a; img 属性指定分区存放的 image 名称&#xff0c;指定的 image 名称必须是当前工程生成的 binary 。 如果 binary 有多个文件&#xff0c;则以 proj_name:binary_name 格式指定文件名&#xff0c; proj_name 为工程 名&…...

Linux 内存管理实战精讲:核心原理与面试常考点全解析

Linux 内存管理实战精讲&#xff1a;核心原理与面试常考点全解析 Linux 内核内存管理是系统设计中最复杂但也最核心的模块之一。它不仅支撑着虚拟内存机制、物理内存分配、进程隔离与资源复用&#xff0c;还直接决定系统运行的性能与稳定性。无论你是嵌入式开发者、内核调试工…...

认识CMake并使用CMake构建自己的第一个项目

1.CMake的作用和优势 跨平台支持&#xff1a;CMake支持多种操作系统和编译器&#xff0c;使用同一份构建配置可以在不同的环境中使用 简化配置&#xff1a;通过CMakeLists.txt文件&#xff0c;用户可以定义项目结构、依赖项、编译选项等&#xff0c;无需手动编写复杂的构建脚本…...

MFE(微前端) Module Federation:Webpack.config.js文件中每个属性的含义解释

以Module Federation 插件详为例&#xff0c;Webpack.config.js它可能的配置和含义如下&#xff1a; 前言 Module Federation 的Webpack.config.js核心配置包括&#xff1a; name filename&#xff08;定义应用标识&#xff09; remotes&#xff08;引用远程模块&#xff0…...