ComfyUI预处理器ControlNet简单介绍与使用(附件工作流)
简介
ControlNet 是一个很强的插件,提供了很多种图片的控制方式,有的可以控制画面的结构,有的可以控制人物的姿势,还有的可以控制图片的画风,这对于提高AI绘画的质量特别有用。接下来就演示几种热门常用的控制方式
1.OpenPose(姿态控制预处理器)
姿态控制预处理器可以根据提供的图像将人物的骨骼脸部手部的姿态展示处理,通过这个预处理器可以很好的控制出图人物的姿态
2.Depth(深度预处理器)
深度预处理器可以将图片的空间的远近以黑白的形式展示出来,白近黑远,当我们上传一张图片通过OpenPose识别到手的位置,但骨骼图并不能描述手在身前还是身后的时候,那个深度预处理器就可以提现出作用了,当然还可以运用在一些建筑、室内等情况
3.LineArt(线条预处理器)
线条预处理器可以将图片用线条的形式描绘出来,可以很好的控制图片的细节
4.HED Soft-Edge(模糊线条预处理器)
模糊线条预处理器与线条预处理器类型也是用线条描绘图片,但仅大概描绘轮廓,更利于出图的随机性
接下来演示一下这四个预处理器效果,不同的预处理器之间是可以搭配使用的,根据不同的需求选择不用的预处理器来解决问题
附件工作流
复制Json内容到ComfyUI中即可
{"last_node_id": 46,"last_link_id": 65,"nodes": [{"id": 31,"type": "PreviewImage","pos": [1110,-1000],"size": {"0": 210,"1": 310},"flags": {},"order": 15,"mode": 0,"inputs": [{"name": "images","type": "IMAGE","link": 31,"label": "图像"}],"properties": {"Node name for S&R": "PreviewImage"}},{"id": 29,"type": "PreviewImage","pos": [760,-1000],"size": {"0": 210,"1": 310},"flags": {},"order": 14,"mode": 0,"inputs": [{"name": "images","type": "IMAGE","link": 30,"label": "图像","slot_index": 0}],"properties": {"Node name for S&R": "PreviewImage"}},{"id": 34,"type": "HEDPreprocessor","pos": [1050,-500],"size": {"0": 315,"1": 82},"flags": {},"order": 10,"mode": 0,"inputs": [{"name": "image","type": "IMAGE","link": 34,"label": "图像"}],"outputs": [{"name": "IMAGE","type": "IMAGE","links": [31,54],"shape": 3,"label": "图像","slot_index": 0}],"properties": {"Node name for S&R": "HEDPreprocessor"},"widgets_values": ["enable",512]},{"id": 32,"type": "ControlNetLoader","pos": [1060,-640],"size": {"0": 315,"1": 58},"flags": {},"order": 0,"mode": 0,"outputs": [{"name": "CONTROL_NET","type": "CONTROL_NET","links": [53],"shape": 3,"label": "ControlNet","slot_index": 0}],"properties": {"Node name for S&R": "ControlNetLoader"},"widgets_values": ["control_v11p_sd15_softedge.pth"]},{"id": 25,"type": "PreviewImage","pos": [420,-1000],"size": {"0": 210,"1": 310},"flags": {},"order": 13,"mode": 0,"inputs": [{"name": "images","type": "IMAGE","link": 29,"label": "图像"}],"properties": {"Node name for S&R": "PreviewImage"}},{"id": 12,"type": "ControlNetLoader","pos": [30,-640],"size": {"0": 320,"1": 60},"flags": {},"order": 1,"mode": 0,"outputs": [{"name": "CONTROL_NET","type": "CONTROL_NET","links": [47],"slot_index": 0,"label": "ControlNet"}],"properties": {"Node name for S&R": "ControlNetLoader"},"widgets_values": ["control_v11p_sd15_openpose.pth"]},{"id": 16,"type": "OpenposePreprocessor","pos": [30,-540],"size": {"0": 315,"1": 150},"flags": {},"order": 7,"mode": 0,"inputs": [{"name": "image","type": "IMAGE","link": 22,"label": "图像"}],"outputs": [{"name": "IMAGE","type": "IMAGE","links": [24,48],"shape": 3,"label": "图像","slot_index": 0},{"name": "POSE_KEYPOINT","type": "POSE_KEYPOINT","links": null,"shape": 3,"label": "姿态关键点"}],"properties": {"Node name for S&R": "OpenposePreprocessor"},"widgets_values": ["enable","enable","enable",512]},{"id": 23,"type": "ControlNetLoader","pos": [380,-640],"size": {"0": 315,"1": 58},"flags": {},"order": 2,"mode": 0,"outputs": [{"name": "CONTROL_NET","type": "CONTROL_NET","links": [49],"shape": 3,"label": "ControlNet","slot_index": 0}],"properties": {"Node name for S&R": "ControlNetLoader"},"widgets_values": ["control_v11f1p_sd15_depth.pth"]},{"id": 21,"type": "Zoe_DepthAnythingPreprocessor","pos": [370,-500],"size": {"0": 315,"1": 82},"flags": {},"order": 8,"mode": 0,"inputs": [{"name": "image","type": "IMAGE","link": 32,"label": "图像","slot_index": 0}],"outputs": [{"name": "IMAGE","type": "IMAGE","links": [29,50],"shape": 3,"label": "图像","slot_index": 0}],"properties": {"Node name for S&R": "Zoe_DepthAnythingPreprocessor"},"widgets_values": ["indoor",512]},{"id": 30,"type": "ControlNetLoader","pos": [710,-640],"size": {"0": 315,"1": 58},"flags": {},"order": 3,"mode": 0,"outputs": [{"name": "CONTROL_NET","type": "CONTROL_NET","links": [51],"shape": 3,"label": "ControlNet","slot_index": 0}],"properties": {"Node name for S&R": "ControlNetLoader"},"widgets_values": ["control_v11p_sd15_lineart.pth"]},{"id": 33,"type": "LineArtPreprocessor","pos": [710,-500],"size": {"0": 315,"1": 82},"flags": {},"order": 9,"mode": 0,"inputs": [{"name": "image","type": "IMAGE","link": 33,"label": "图像"}],"outputs": [{"name": "IMAGE","type": "IMAGE","links": [30,52],"shape": 3,"label": "图像","slot_index": 0}],"properties": {"Node name for S&R": "LineArtPreprocessor"},"widgets_values": ["disable",512]},{"id": 35,"type": "Efficient Loader","pos": [2130,690],"size": {"0": 400,"1": 462},"flags": {},"order": 6,"mode": 0,"inputs": [{"name": "lora_stack","type": "LORA_STACK","link": null,"label": "LoRA堆"},{"name": "cnet_stack","type": "CONTROL_NET_STACK","link": 55,"label": "ControlNet堆","slot_index": 1}],"outputs": [{"name": "MODEL","type": "MODEL","links": null,"shape": 3,"label": "模型"},{"name": "CONDITIONING+","type": "CONDITIONING","links": null,"shape": 3,"label": "正面条件"},{"name": "CONDITIONING-","type": "CONDITIONING","links": null,"shape": 3,"label": "负面条件"},{"name": "LATENT","type": "LATENT","links": null,"shape": 3,"label": "Latent"},{"name": "VAE","type": "VAE","links": null,"shape": 3,"label": "VAE"},{"name": "CLIP","type": "CLIP","links": null,"shape": 3,"label": "CLIP"},{"name": "DEPENDENCIES","type": "DEPENDENCIES","links": null,"shape": 3,"label": "依赖"}],"properties": {"Node name for S&R": "Efficient Loader"},"widgets_values": ["AWPainting_v1.3.safetensors","Baked VAE",-1,"None",1,1,"CLIP_POSITIVE","CLIP_NEGATIVE","none","comfy",512,512,1],"color": "#2a363b","bgcolor": "#3f5159","shape": 1},{"id": 41,"type": "Control Net Stacker","pos": [1720,650],"size": {"0": 315,"1": 146},"flags": {},"order": 4,"mode": 0,"inputs": [{"name": "control_net","type": "CONTROL_NET","link": null,"label": "ControlNet"},{"name": "image","type": "IMAGE","link": null,"label": "图像"},{"name": "cnet_stack","type": "CONTROL_NET_STACK","link": null,"label": "ControlNet堆"}],"outputs": [{"name": "CNET_STACK","type": "CONTROL_NET_STACK","links": [55],"shape": 3,"label": "ControlNet堆"}],"properties": {"Node name for S&R": "Control Net Stacker"},"widgets_values": [1,0,1],"color": "#223322","bgcolor": "#335533","shape": 1},{"id": 17,"type": "PreviewImage","pos": [70,-1000],"size": {"0": 210,"1": 310},"flags": {},"order": 11,"mode": 0,"inputs": [{"name": "images","type": "IMAGE","link": 24,"label": "图像"}],"properties": {"Node name for S&R": "PreviewImage"}},{"id": 37,"type": "Control Net Stacker","pos": [30,-340],"size": {"0": 315,"1": 146},"flags": {},"order": 12,"mode": 0,"inputs": [{"name": "control_net","type": "CONTROL_NET","link": 47,"label": "ControlNet"},{"name": "image","type": "IMAGE","link": 48,"label": "图像"},{"name": "cnet_stack","type": "CONTROL_NET_STACK","link": null,"label": "ControlNet堆"}],"outputs": [{"name": "CNET_STACK","type": "CONTROL_NET_STACK","links": [62],"shape": 3,"label": "ControlNet堆","slot_index": 0}],"properties": {"Node name for S&R": "Control Net Stacker"},"widgets_values": [1,0,1],"color": "#223322","bgcolor": "#335533","shape": 1},{"id": 38,"type": "Control Net Stacker","pos": [370,-340],"size": {"0": 315,"1": 146},"flags": {},"order": 16,"mode": 0,"inputs": [{"name": "control_net","type": "CONTROL_NET","link": 49,"label": "ControlNet"},{"name": "image","type": "IMAGE","link": 50,"label": "图像"},{"name": "cnet_stack","type": "CONTROL_NET_STACK","link": 62,"label": "ControlNet堆"}],"outputs": [{"name": "CNET_STACK","type": "CONTROL_NET_STACK","links": [63],"shape": 3,"label": "ControlNet堆","slot_index": 0}],"properties": {"Node name for S&R": "Control Net Stacker"},"widgets_values": [0.2,0,1],"color": "#223322","bgcolor": "#335533","shape": 1},{"id": 39,"type": "Control Net Stacker","pos": [710,-340],"size": {"0": 315,"1": 146},"flags": {},"order": 17,"mode": 0,"inputs": [{"name": "control_net","type": "CONTROL_NET","link": 51,"label": "ControlNet"},{"name": "image","type": "IMAGE","link": 52,"label": "图像"},{"name": "cnet_stack","type": "CONTROL_NET_STACK","link": 63,"label": "ControlNet堆"}],"outputs": [{"name": "CNET_STACK","type": "CONTROL_NET_STACK","links": [64],"shape": 3,"label": "ControlNet堆","slot_index": 0}],"properties": {"Node name for S&R": "Control Net Stacker"},"widgets_values": [0.5,0,1],"color": "#223322","bgcolor": "#335533","shape": 1},{"id": 40,"type": "Control Net Stacker","pos": [1050,-340],"size": {"0": 315,"1": 146},"flags": {},"order": 18,"mode": 0,"inputs": [{"name": "control_net","type": "CONTROL_NET","link": 53,"label": "ControlNet","slot_index": 0},{"name": "image","type": "IMAGE","link": 54,"label": "图像","slot_index": 1},{"name": "cnet_stack","type": "CONTROL_NET_STACK","link": 64,"label": "ControlNet堆"}],"outputs": [{"name": "CNET_STACK","type": "CONTROL_NET_STACK","links": [65],"shape": 3,"label": "ControlNet堆","slot_index": 0}],"properties": {"Node name for S&R": "Control Net Stacker"},"widgets_values": [0.5,0,1],"color": "#223322","bgcolor": "#335533","shape": 1},{"id": 44,"type": "SaveImage","pos": [2220,-630],"size": {"0": 320,"1": 270},"flags": {},"order": 21,"mode": 0,"inputs": [{"name": "images","type": "IMAGE","link": 61,"label": "图像"}],"properties": {},"widgets_values": ["ComfyUI"]},{"id": 43,"type": "KSampler (Efficient)","pos": [1860,-750],"size": {"0": 330,"1": 560},"flags": {},"order": 20,"mode": 0,"inputs": [{"name": "model","type": "MODEL","link": 56,"label": "模型"},{"name": "positive","type": "CONDITIONING","link": 57,"label": "正面条件"},{"name": "negative","type": "CONDITIONING","link": 58,"label": "负面条件"},{"name": "latent_image","type": "LATENT","link": 59,"label": "Latent"},{"name": "optional_vae","type": "VAE","link": 60,"label": "VAE(可选)"},{"name": "script","type": "SCRIPT","link": null,"label": "脚本"}],"outputs": [{"name": "MODEL","type": "MODEL","links": null,"shape": 3,"label": "模型"},{"name": "CONDITIONING+","type": "CONDITIONING","links": null,"shape": 3,"label": "正面条件"},{"name": "CONDITIONING-","type": "CONDITIONING","links": null,"shape": 3,"label": "负面条件"},{"name": "LATENT","type": "LATENT","links": null,"shape": 3,"label": "Latent"},{"name": "VAE","type": "VAE","links": null,"shape": 3,"label": "VAE"},{"name": "IMAGE","type": "IMAGE","links": [61],"shape": 3,"label": "图像","slot_index": 5}],"properties": {"Node name for S&R": "KSampler (Efficient)"},"widgets_values": [248390093388796,null,20,10,"dpmpp_2m","karras",1,"auto","true"],"color": "#222233","bgcolor": "#333355","shape": 1},{"id": 42,"type": "Efficient Loader","pos": [1420,-650],"size": {"0": 400,"1": 462.0000305175781},"flags": {},"order": 19,"mode": 0,"inputs": [{"name": "lora_stack","type": "LORA_STACK","link": null,"label": "LoRA堆"},{"name": "cnet_stack","type": "CONTROL_NET_STACK","link": 65,"label": "ControlNet堆"}],"outputs": [{"name": "MODEL","type": "MODEL","links": [56],"shape": 3,"label": "模型","slot_index": 0},{"name": "CONDITIONING+","type": "CONDITIONING","links": [57],"shape": 3,"label": "正面条件","slot_index": 1},{"name": "CONDITIONING-","type": "CONDITIONING","links": [58],"shape": 3,"label": "负面条件","slot_index": 2},{"name": "LATENT","type": "LATENT","links": [59],"shape": 3,"label": "Latent","slot_index": 3},{"name": "VAE","type": "VAE","links": [60],"shape": 3,"label": "VAE","slot_index": 4},{"name": "CLIP","type": "CLIP","links": null,"shape": 3,"label": "CLIP"},{"name": "DEPENDENCIES","type": "DEPENDENCIES","links": null,"shape": 3,"label": "依赖"}],"properties": {"Node name for S&R": "Efficient Loader"},"widgets_values": ["AWPainting_v1.3.safetensors","Baked VAE",-2,"None",1,1,"masterpiece, best quality, highres, 1girl, bare shoulders, brown hair, long hair, (orange dress:1.2), looking at viewer, forest, maple leaves,outdoors, wild, plants, cinematic lights, lightrays,depth of field, blurry_background, blurry_foreground, shiny luminious,","(hands), text, error, cropped, (worst quality:1.2), (low quality:1.2), normal quality, (jpeg artifacts:1.3), signature, watermark, username, blurry, artist name, monochrome, sketch, censorship, censor, (copyright:1.2), extra legs, (forehead mark) (depth of field) (emotionless) (penis), embedding:EasyNegative, embedding:badhandv4, ","none","comfy++",768,1152,1],"color": "#443322","bgcolor": "#665533","shape": 1},{"id": 11,"type": "LoadImage","pos": [-250,-800],"size": [220,314],"flags": {},"order": 5,"mode": 0,"outputs": [{"name": "IMAGE","type": "IMAGE","links": [22,32,33,34],"slot_index": 0,"label": "图像"},{"name": "MASK","type": "MASK","links": null,"label": "遮罩"}],"properties": {"Node name for S&R": "LoadImage"},"widgets_values": ["aimake_Example_1713001562048_49 (1) (3).jpg","image"]}],"links": [[22,11,0,16,0,"IMAGE"],[24,16,0,17,0,"IMAGE"],[29,21,0,25,0,"IMAGE"],[30,33,0,29,0,"IMAGE"],[31,34,0,31,0,"IMAGE"],[32,11,0,21,0,"IMAGE"],[33,11,0,33,0,"IMAGE"],[34,11,0,34,0,"IMAGE"],[47,12,0,37,0,"CONTROL_NET"],[48,16,0,37,1,"IMAGE"],[49,23,0,38,0,"CONTROL_NET"],[50,21,0,38,1,"IMAGE"],[51,30,0,39,0,"CONTROL_NET"],[52,33,0,39,1,"IMAGE"],[53,32,0,40,0,"CONTROL_NET"],[54,34,0,40,1,"IMAGE"],[55,41,0,35,1,"CONTROL_NET_STACK"],[56,42,0,43,0,"MODEL"],[57,42,1,43,1,"CONDITIONING"],[58,42,2,43,2,"CONDITIONING"],[59,42,3,43,3,"LATENT"],[60,42,4,43,4,"VAE"],[61,43,5,44,0,"IMAGE"],[62,37,0,38,2,"CONTROL_NET_STACK"],[63,38,0,39,2,"CONTROL_NET_STACK"],[64,39,0,40,2,"CONTROL_NET_STACK"],[65,40,0,42,1,"CONTROL_NET_STACK"]],"groups": [],"config": {},"extra": {"0246.VERSION": [0,0,4]},"version": 0.4
}
测试图片
相关文章:

ComfyUI预处理器ControlNet简单介绍与使用(附件工作流)
简介 ControlNet 是一个很强的插件,提供了很多种图片的控制方式,有的可以控制画面的结构,有的可以控制人物的姿势,还有的可以控制图片的画风,这对于提高AI绘画的质量特别有用。接下来就演示几种热门常用的控制方式 1…...
【篇三】在vue3上实现阿里云oss文件直传
之前写了两篇关于文件上传的文章 【篇一】使用springbootvue实现阿里云oss上传 【篇二】使用springbootvue实现阿里云oss文件直传,解决大文件分片上传问题 今天介绍一下在vue3中实现阿里云oss文件直传,主要是基于篇二中的源码进行修改,看具体…...
OceanBase v4.2 特性解析:对Json与Xml的扩展支持
1. 背景 OceanBase的Oracle模式当前已实现对XMLType类型的支持,不仅包含了基本的构造、查询、更新以及格式转换功能,还支持使用Xpath查询从XML数据中提取特定值。在V 4.2.2 版本中,我们进一步扩展了Oracle模式下对XMLType的支持,…...
《框架封装 · 统一异常处理和返回值包装》
📢 大家好,我是 【战神刘玉栋】,有10多年的研发经验,致力于前后端技术栈的知识沉淀和传播。 💗 🌻 CSDN入驻不久,希望大家多多支持,后续会继续提升文章质量,绝不滥竽充数…...
深入WebKit:揭秘复杂文档的高效渲染之道
深入WebKit:揭秘复杂文档的高效渲染之道 在当今信息爆炸的时代,网页不再仅仅是简单的文本和图片的集合,而是充满了复杂布局和丰富媒体内容的交互式平台。WebKit 作为众多流行浏览器的心脏,其布局引擎承担着将 HTML、CSS 代码转换…...

进程的控制-孤儿进程和僵尸进程
孤儿进程 : 一个父进程退出,而它的一个或多个子进程还在运行,那么那些子进程将成为孤儿进程。孤儿进程将被 init 进程( 进程号为 1) 所收养,并由 init 进程对它们完成状态收集工作 为了释放子进程的占用的系统资源: …...

【Unity navigation面板】
【Unity navigation面板】 Unity的Navigation面板是一个集成在Unity编辑器中的界面,它允许开发者对导航网格(NavMesh)进行配置和管理。 Unity Navigation面板的一些关键特性和功能: 导航网格代理(NavMesh Agent&…...
二刷算法训练营Day53 | 动态规划(14/17)
目录 详细布置: 1. 392. 判断子序列 2. 115. 不同的子序列 详细布置: 1. 392. 判断子序列 给定字符串 s 和 t ,判断 s 是否为 t 的子序列。 字符串的一个子序列是原始字符串删除一些(也可以不删除)字符而不改变剩余…...
将缓冲文件写到磁盘中的命令sync
将缓冲文件写到磁盘中的命令sync There is no nutrition in the blog content. After reading it, you will not only suffer from malnutrition, but also impotence. The blog content is all parallel goods. Those who are worried about being cheated should leave quick…...

灵活视图变换器:为扩散模型设计的革新图像生成架构
在自然界中,图像的分辨率是无限的,而现有的图像生成模型在跨任意分辨率泛化方面存在困难。虽然扩散变换器(DiT)在特定分辨率范围内表现出色,但在处理不同分辨率的图像时却力不从心。为了克服这一限制,来自上…...
[终端安全]-1 总体介绍
有朋友一直在和笔者研讨智驾安全这个热门话题,笔者十多年工作从不离终端安全这个核心话题(芯片安全、操作系统安全、应用安全),近来也一直在梳理终端安全体系;手机、汽车皆是我们生活中应用最普遍的智能终端࿰…...

Mysql5.7并发插入死锁问题
死锁的产生条件 互斥、请求和保持、不可剥夺、循环等待 MySQL锁类型 死锁复现 环境:Mysql 5.7版本,Innodb引擎,可重复度隔离级别 并发场景下使用duplicate key update插入或更新数据可能会造成死锁,下面就产生死锁的条件进行模…...
网络“ping不通”,如何排查和解决呢?
网络问题往往复杂且难以预测,其中“ping不通”是常见的网络故障之一。 1. 确认问题现象 首先,明确问题是完全无法ping通(无响应)还是ping通但有高延迟或丢包。这有助于缩小问题范围。 2. 本地检查 网络接口状态:使用ifconfig(Linux)或ipc…...
日常学习--20240706
1、udp协议的特点有哪些? a、无连接,发送和接收数据不需要建立连接,开销小,实时性好 b、不可靠传输,不保证数据包能够到达目的地,也不保证数据包的顺序 c、面向数据报的,以数据报形式发送数据…...

入门PHP就来我这(高级)12 ~ 获取数据
有胆量你就来跟着路老师卷起来! -- 纯干货,技术知识分享 路老师给大家分享PHP语言的知识了,旨在想让大家入门PHP,并深入了解PHP语言。 1 从结果集中获取一行作为对象 表中数据行如下: 利用mysqli_fetch_array()函数获…...

AIGC专栏12——EasyAnimateV3发布详解 支持图文生视频 最大支持960x960x144帧视频生成
AIGC专栏12——EasyAnimateV3发布详解 支持图&文生视频 最大支持960x960x144帧视频生成 学习前言项目特点生成效果相关地址汇总项目主页Huggingface体验地址Modelscope体验地址源码下载地址 EasyAnimate V3详解技术储备Diffusion Transformer (DiT)Hybrid Motion ModuleU-V…...

【python】python猫眼电影数据抓取分析可视化(源码+数据集+论文)【独一无二】
👉博__主👈:米码收割机 👉技__能👈:C/Python语言 👉公众号👈:测试开发自动化【获取源码商业合作】 👉荣__誉👈:阿里云博客专家博主、5…...

Android 四大组件
1. Activity 应用程序中,一个Activity通常是一个单独的屏幕,它上面可以显示一些控件,也可以监听并对用户的事件做出响应。 Activity之间通过Intent进行通信,在Intent 的描述结构中,有两个最重要的部分:动…...

【Python】已解决:ModuleNotFoundError: No module named ‘nltk’
文章目录 一、分析问题背景二、可能出错的原因三、错误代码示例四、正确代码示例五、注意事项 已解决:ModuleNotFoundError: No module named ‘nltk’ 一、分析问题背景 在使用Python进行自然语言处理或文本分析时,我们经常会用到各种库来辅助我们的工…...

【Docker系列】Docker 命令行输出格式化指南
💝💝💝欢迎来到我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。 推荐:kwan 的首页,持续学…...

盘古信息PCB行业解决方案:以全域场景重构,激活智造新未来
一、破局:PCB行业的时代之问 在数字经济蓬勃发展的浪潮中,PCB(印制电路板)作为 “电子产品之母”,其重要性愈发凸显。随着 5G、人工智能等新兴技术的加速渗透,PCB行业面临着前所未有的挑战与机遇。产品迭代…...
AI编程--插件对比分析:CodeRider、GitHub Copilot及其他
AI编程插件对比分析:CodeRider、GitHub Copilot及其他 随着人工智能技术的快速发展,AI编程插件已成为提升开发者生产力的重要工具。CodeRider和GitHub Copilot作为市场上的领先者,分别以其独特的特性和生态系统吸引了大量开发者。本文将从功…...

k8s业务程序联调工具-KtConnect
概述 原理 工具作用是建立了一个从本地到集群的单向VPN,根据VPN原理,打通两个内网必然需要借助一个公共中继节点,ktconnect工具巧妙的利用k8s原生的portforward能力,简化了建立连接的过程,apiserver间接起到了中继节…...

tree 树组件大数据卡顿问题优化
问题背景 项目中有用到树组件用来做文件目录,但是由于这个树组件的节点越来越多,导致页面在滚动这个树组件的时候浏览器就很容易卡死。这种问题基本上都是因为dom节点太多,导致的浏览器卡顿,这里很明显就需要用到虚拟列表的技术&…...

Yolov8 目标检测蒸馏学习记录
yolov8系列模型蒸馏基本流程,代码下载:这里本人提交了一个demo:djdll/Yolov8_Distillation: Yolov8轻量化_蒸馏代码实现 在轻量化模型设计中,**知识蒸馏(Knowledge Distillation)**被广泛应用,作为提升模型…...

免费PDF转图片工具
免费PDF转图片工具 一款简单易用的PDF转图片工具,可以将PDF文件快速转换为高质量PNG图片。无需安装复杂的软件,也不需要在线上传文件,保护您的隐私。 工具截图 主要特点 🚀 快速转换:本地转换,无需等待上…...

Selenium常用函数介绍
目录 一,元素定位 1.1 cssSeector 1.2 xpath 二,操作测试对象 三,窗口 3.1 案例 3.2 窗口切换 3.3 窗口大小 3.4 屏幕截图 3.5 关闭窗口 四,弹窗 五,等待 六,导航 七,文件上传 …...
JS手写代码篇----使用Promise封装AJAX请求
15、使用Promise封装AJAX请求 promise就有reject和resolve了,就不必写成功和失败的回调函数了 const BASEURL ./手写ajax/test.jsonfunction promiseAjax() {return new Promise((resolve, reject) > {const xhr new XMLHttpRequest();xhr.open("get&quo…...

解读《网络安全法》最新修订,把握网络安全新趋势
《网络安全法》自2017年施行以来,在维护网络空间安全方面发挥了重要作用。但随着网络环境的日益复杂,网络攻击、数据泄露等事件频发,现行法律已难以完全适应新的风险挑战。 2025年3月28日,国家网信办会同相关部门起草了《网络安全…...

逻辑回归暴力训练预测金融欺诈
简述 「使用逻辑回归暴力预测金融欺诈,并不断增加特征维度持续测试」的做法,体现了一种逐步建模与迭代验证的实验思路,在金融欺诈检测中非常有价值,本文作为一篇回顾性记录了早年间公司给某行做反欺诈预测用到的技术和思路。百度…...