【ComfyUI的API接口调用示例】


ComfyUI的API接口调用示例


本文目的

本文调用接口示例主要指导需要调用ComfyUI的开发者如何调用ComfyUI官方的API接口提交任务、查询历史、获取绘画视频结果等。

阅读本文的前提是你本地已经安装了ComfyUI,并且对工作流绘画和生成视频已经有所了解。注意如图右边栏目保存API格式的工作流。
在这里插入图片描述

ComfyUI的测试地址

本地comfyui测试地址:http://127.0.0.1:8188

POST /upload/mask

POST /upload/mask

上传蒙版图片接口,一般用于局部重绘

Body 请求参数

image: file://C:\Users\dourungeng\Pictures\640.png
type: input
subfolder: clipspace
original_ref: "{“filename”:”640.png”,”type”:”input”,”subfolder”:”clipspace”}"

请求参数

名称位置类型必选说明
bodybodyobjectnone
» imagebodystring(binary)图片将以二进制格式发送到服务器
» typebodystring上传图片的目标文件夹
» subfolderbodystring上传图片的目标子文件夹
» original_refbodystringnone

返回成功示例

{"name": "640.png","subfolder": "clipspace","type": "input"
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» namestringtruenonenone
» subfolderstringtruenonenone
» typestringtruenonenone

POST /upload/image

POST /upload/image

上传图片接口

Body 请求参数

image: string

请求参数

名称位置类型必选说明
bodybodyobjectnone
» imagebodystring(binary)图片将以二进制格式发送到服务器

返回成功示例

{"name": "0e9f-hiixpup5792613.jpg","subfolder": "","type": "input"
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» namestringtruenonenone
» subfolderstringtruenonenone
» typestringtruenonenone

POST /prompt

POST /prompt

绘图任务的下发接口,此接口只做任务下发,返回任务ID信息。

Body 请求参数

{"client_id": "533ef3a3-39c0-4e39-9ced-37d290f371f8","prompt": {"3": {"inputs": {"seed": 0,"steps": 20,"cfg": 2.5,"sampler_name": "euler","scheduler": "karras","denoise": 1,"model": ["14",0],"positive": ["12",0],"negative": ["12",1],"latent_image": ["12",2]},"class_type": "KSampler","_meta": {"title": "K采样器"}},"8": {"inputs": {"samples": ["3",0],"vae": ["15",2]},"class_type": "VAEDecode","_meta": {"title": "VAE解码"}},"12": {"inputs": {"width": 1024,"height": 576,"video_frames": 14,"motion_bucket_id": 32,"fps": 6,"augmentation_level": 0,"clip_vision": ["15",1],"init_image": ["23",0],"vae": ["15",2]},"class_type": "SVD_img2vid_Conditioning","_meta": {"title": "SVD_图像到视频_条件"}},"14": {"inputs": {"min_cfg": 1,"model": ["15",0]},"class_type": "VideoLinearCFGGuidance","_meta": {"title": "线性CFG引导"}},"15": {"inputs": {"ckpt_name": "svd_xt_1_1.safetensors"},"class_type": "ImageOnlyCheckpointLoader","_meta": {"title": "Checkpoint加载器(仅图像)"}},"23": {"inputs": {"image": "C:\\Users\\dourungeng\\Pictures\\elephant1.png [input]","upload": "image"},"class_type": "LoadImage","_meta": {"title": "加载图像"}},"24": {"inputs": {"frame_rate": 6,"loop_count": 0,"filename_prefix": "SVD_img2vid","format": "image/gif","pingpong": false,"save_output": true,"images": ["8",0]},"class_type": "VHS_VideoCombine","_meta": {"title": "合并为视频"}}}
}

请求参数

名称位置类型必选说明
bodybodyobjectnone
» client_idbodystringnone
» promptbodyobjectnone

返回成功示例

{"prompt_id": "3604be44-eb6b-4d54-b82d-62d31a6c0b36","number": 8,"node_errors": {}
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» prompt_idstringtruenonenone
» numberintegertruenonenone
» node_errorsobjecttruenonenone

GET /prompt

GET /prompt

获取服务器当前剩余任务列队的数量

返回成功示例

{"exec_info": {"queue_remaining": 0}
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» exec_infoobjecttruenonenone
»» queue_remainingintegertruenonenone

GET /view

GET /view

图片的在线预览接口(上传图像,生图图像,蒙蔽图像,均通过该接口预览)

请求参数

名称位置类型必选说明
filenamequerystring图片名称
typequerystring图片存放位置的文件夹(input为长传图片,output为生成的图片)
subfolderquerystring子文件夹(没有可不填)
previewquerystring预览
channelquerystringnone

返回示例

成功

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

GET /queue

GET /queue

获取任务队列数量

返回示例

成功

{"queue_running": [],"queue_pending": []
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» queue_running[string]truenonenone
» queue_pending[string]truenonenone

POST /queue

POST /queue

清除列队/无返回信息则为成功

Body 请求参数

{"clear": true
}

请求参数

名称位置类型必选说明
bodybodyobjectnone

返回示例

200 Response

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

POST /interrupt

POST /interrupt

取消当前任务/不需任何参数

返回示例

200 Response

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

GET /history/{prompt_id}

GET /history/39d61fa4-58a4-4f61-a547-caab0f4c3a53

获取历史任务数据(根据任务prompt_id获取历史数据)

返回成功示例

{"39d61fa4-58a4-4f61-a547-caab0f4c3a53": {"prompt": [10,"39d61fa4-58a4-4f61-a547-caab0f4c3a53",{"3": {"inputs": {"seed": 687973405480854,"steps": 30,"cfg": 8,"sampler_name": "dpmpp_2m","scheduler": "karras","denoise": 1,"model": ["4",0],"positive": ["6",0],"negative": ["7",0],"latent_image": ["5",0]},"class_type": "KSampler","_meta": {"title": "K采样器"}},"4": {"inputs": {"ckpt_name": "sdxl-动漫二次元_2.0.safetensors"},"class_type": "CheckpointLoaderSimple","_meta": {"title": "Checkpoint加载器(简易)"}},"5": {"inputs": {"width": 512,"height": 512,"batch_size": 1},"class_type": "EmptyLatentImage","_meta": {"title": "空Latent"}},"6": {"inputs": {"text": "1girl,flower,outdoors,solo,dress,long hair,closed eyes,sky,holding,smile,cloud,open mouth,field,blush,day,blue sky,white flower,holding flower,flower field,short sleeves,teeth,blue dress,petals,:d,facing viewer,grey hair,floating hair,wind,happy,^_^,daisy,upper teeth only,white dress,","clip": ["4",1]},"class_type": "CLIPTextEncode","_meta": {"title": "CLIP文本编码器"}},"7": {"inputs": {"text": "(worst quality, low quality),deformed,distorted,disfigured,doll,poorly drawn,bad anatomy,wrong anatomy,","clip": ["4",1]},"class_type": "CLIPTextEncode","_meta": {"title": "CLIP文本编码器"}},"8": {"inputs": {"samples": ["3",0],"vae": ["4",2]},"class_type": "VAEDecode","_meta": {"title": "VAE解码"}},"9": {"inputs": {"filename_prefix": "ComfyUI","images": ["8",0]},"class_type": "SaveImage","_meta": {"title": "保存图像"}}},{"client_id": "533ef3a3-39c0-4e39-9ced-37d290f371f8"},["9"]],"outputs": {"9": {"images": [{"filename": "ComfyUI_00138_.png","subfolder": "","type": "output"}]}},"status": {"status_str": "success","completed": true,"messages": [["execution_start",{"prompt_id": "39d61fa4-58a4-4f61-a547-caab0f4c3a53"}],["execution_cached",{"nodes": [],"prompt_id": "39d61fa4-58a4-4f61-a547-caab0f4c3a53"}]]}}
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» 39d61fa4-58a4-4f61-a547-caab0f4c3a53objecttruenone下发任务prompt_id
»» prompt[object]truenone下发任务的api工作流的原始提交参数
»» outputs[object]truenone输出的结果
»» status[object]truenone任务状态

GET /history

GET /history

获取历史任务列表

返回成功示例

{"d40751e8-3e96-472f-a818-90d36d06faf1": {"prompt": [0,"d40751e8-3e96-472f-a818-90d36d06faf1", {"3": {"inputs": {"seed": 0,"steps": 30,"cfg": 8,"sampler_name": "dpmpp_2m","scheduler": "karras","denoise": 1,"model": ["4",0],"positive": ["6",0],"negative": ["7",0],"latent_image": ["5",0]},"class_type": "KSampler","_meta": {"title": "K采样器"}},"4": {"inputs": {"ckpt_name": "sdxl-动漫二次元_2.0.safetensors"},"class_type": "CheckpointLoaderSimple","_meta": {"title": "Checkpoint加载器(简易)"}},"5": {"inputs": {"width": 512,"height": 512,"batch_size": 1},"class_type": "EmptyLatentImage","_meta": {"title": "空Latent"}},"6": {"inputs": {"text": "1girl,flower,outdoors,solo,dress,long hair,closed eyes,sky,holding,smile,cloud,open mouth,field,blush,day,blue sky,white flower,holding flower,flower field,short sleeves,teeth,blue dress,petals,:d,facing viewer,grey hair,floating hair,wind,happy,^_^,daisy,upper teeth only,white dress,","clip": ["4",1]},"class_type": "CLIPTextEncode","_meta": {"title": "CLIP文本编码器"}},"7": {"inputs": {"text": "(worst quality, low quality),deformed,distorted,disfigured,doll,poorly drawn,bad anatomy,wrong anatomy,","clip": ["4",1]},"class_type": "CLIPTextEncode","_meta": {"title": "CLIP文本编码器"}},"8": {"inputs": {"samples": ["3",0],"vae": ["4",2]},"class_type": "VAEDecode","_meta": {"title": "VAE解码"}},"9": {"inputs": {"filename_prefix": "ComfyUI","images": ["8",0]},"class_type": "SaveImage","_meta": {"title": "保存图像"}}}, {"extra_pnginfo": {"workflow": {"last_node_id": 9,"last_link_id": 9,"nodes": [{"id": 5,"type": "EmptyLatentImage","pos": [473,609],"size": {"0": 315,"1": 106},"flags": {},"order": 0,"mode": 0,"outputs": [{"name": "LATENT","type": "LATENT","links": "[Object]","slot_index": 0,"label": "Latent"}],"properties": {"Node name for S&R": "EmptyLatentImage"},"widgets_values": [512,512,1]}, {"id": 8,"type": "VAEDecode","pos": [1209,188],"size": {"0": 210,"1": 46},"flags": {},"order": 5,"mode": 0,"inputs": [{"name": "samples","type": "LATENT","link": 7,"label": "Latent"}, {"name": "vae","type": "VAE","link": 8,"label": "VAE"}],"outputs": [{"name": "IMAGE","type": "IMAGE","links": "[Object]","slot_index": 0,"label": "图像"}],"properties": {"Node name for S&R": "VAEDecode"}}, {"id": 9,"type": "SaveImage","pos": [1451,189],"size": {"0": 210,"1": 58},"flags": {},"order": 6,"mode": 0,"inputs": [{"name": "images","type": "IMAGE","link": 9,"label": "图像"}],"properties": {},"widgets_values": ["ComfyUI"]}, {"id": 4,"type": "CheckpointLoaderSimple","pos": [26,474],"size": {"0": 315,"1": 98},"flags": {},"order": 1,"mode": 0,"outputs": [{"name": "MODEL","type": "MODEL","links": "[Object]","slot_index": 0,"label": "模型"}, {"name": "CLIP","type": "CLIP","links": "[Object]","slot_index": 1,"label": "CLIP"}, {"name": "VAE","type": "VAE","links": "[Object]","slot_index": 2,"label": "VAE"}],"properties": {"Node name for S&R": "CheckpointLoaderSimple"},"widgets_values": ["sdxl-动漫二次元_2.0.safetensors"]}, {"id": 6,"type": "CLIPTextEncode","pos": [250,70],"size": {"0": 422.84503173828125,"1": 164.31304931640625},"flags": {},"order": 2,"mode": 0,"inputs": [{"name": "clip","type": "CLIP","link": 3,"label": "CLIP"}],"outputs": [{"name": "CONDITIONING","type": "CONDITIONING","links": "[Object]","slot_index": 0,"label": "条件"}],"properties": {"Node name for S&R": "CLIPTextEncode"},"widgets_values": ["1girl,flower,outdoors,solo,dress,long hair,closed eyes,sky,holding,smile,cloud,open mouth,field,blush,day,blue sky,white flower,holding flower,flower field,short sleeves,teeth,blue dress,petals,:d,facing viewer,grey hair,floating hair,wind,happy,^_^,daisy,upper teeth only,white dress,"]}, {"id": 7,"type": "CLIPTextEncode","pos": [340,290],"size": {"0": 425.27801513671875,"1": 180.6060791015625},"flags": {},"order": 3,"mode": 0,"inputs": [{"name": "clip","type": "CLIP","link": 5,"label": "CLIP"}],"outputs": [{"name": "CONDITIONING","type": "CONDITIONING","links": "[Object]","slot_index": 0,"label": "条件"}],"properties": {"Node name for S&R": "CLIPTextEncode"},"widgets_values": ["(worst quality, low quality),deformed,distorted,disfigured,doll,poorly drawn,bad anatomy,wrong anatomy,"]}, {"id": 3,"type": "KSampler","pos": [863,186],"size": {"0": 315,"1": 262},"flags": {},"order": 4,"mode": 0,"inputs": [{"name": "model","type": "MODEL","link": 1,"label": "模型"}, {"name": "positive","type": "CONDITIONING","link": 4,"label": "正面条件"}, {"name": "negative","type": "CONDITIONING","link": 6,"label": "负面条件"}, {"name": "latent_image","type": "LATENT","link": 2,"label": "Latent"}],"outputs": [{"name": "LATENT","type": "LATENT","links": "[Object]","slot_index": 0,"label": "Latent"}],"properties": {"Node name for S&R": "KSampler"},"widgets_values": [0,"randomize",30,8,"dpmpp_2m","karras",1]}],"links": [[1,4,0,3,0,"MODEL"],[2,5,0,3,3,"LATENT"],[3,4,1,6,0,"CLIP"],[4,6,0,3,1,"CONDITIONING"],[5,4,1,7,0,"CLIP"],[6,7,0,3,2,"CONDITIONING"],[7,3,0,8,0,"LATENT"],[8,4,2,8,1,"VAE"],[9,8,0,9,0,"IMAGE"]],"groups": [],"config": {},"extra": {"ds": {"scale": 1,"offset": {"0": 858,"1": 196}}},"version": 0.4,"widget_idx_map": {"3": {"seed": 0,"sampler_name": 4,"scheduler": 5}}}},"client_id": "a4ff6051dabe4c7d994460b62c6c8f14"},["9"]],"outputs": {"9": {"images": [{"filename": "ComfyUI_00131_.png","subfolder": "","type": "output"}]}},"status": {"status_str": "success","completed": true,"messages": [["execution_start", {"prompt_id": "d40751e8-3e96-472f-a818-90d36d06faf1"}],["execution_cached", {"nodes": [],"prompt_id": "d40751e8-3e96-472f-a818-90d36d06faf1"}]]}}
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» d40751e8-3e96-472f-a818-90d36d06faf1objecttruenonenone
»» prompt[object]truenonenone
»» outputs[object]truenonenone
»» status[object]truenonenone

GET /system_stats

GET /system_stats

系统统计信息接口

返回成功示例

{"system": {"os": "nt","python_version": "3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]","embedded_python": false},"devices": [{"name": "cuda:0 NVIDIA GeForce RTX 4070 Ti SUPER : cudaMallocAsync","type": "cuda","index": 0,"vram_total": 17170956288,"vram_free": 15702425600,"torch_vram_total": 67108864,"torch_vram_free": 33554432}]
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» systemobjecttruenonenone
»» osstringtruenonenone
»» python_versionstringtruenonenone
»» embedded_pythonbooleantruenonenone
» devices[object]truenonenone
»» namestringfalsenonenone
»» typestringfalsenonenone
»» indexintegerfalsenonenone
»» vram_totalintegerfalsenonenone
»» vram_freeintegerfalsenonenone
»» torch_vram_totalintegerfalsenonenone
»» torch_vram_freeintegerfalsenonenone

GET /object_info/{node_class}

GET /object_info/KSampler

根据组件名称获取系统中组件参数

返回示例
成功

{"KSampler": {"input": {"required": {"model": ["MODEL"],"seed": ["INT",{"default": 0,"min": 0,"max": 18446744073709552000}],"steps": ["INT",{"default": 20,"min": 1,"max": 10000}],"cfg": ["FLOAT",{"default": 8,"min": 0,"max": 100,"step": 0.1,"round": 0.01}],"sampler_name": [["euler","euler_ancestral","heun","heunpp2","dpm_2","dpm_2_ancestral","lms","dpm_fast","dpm_adaptive","dpmpp_2s_ancestral","dpmpp_sde","dpmpp_sde_gpu","dpmpp_2m","dpmpp_2m_sde","dpmpp_2m_sde_gpu","dpmpp_3m_sde","dpmpp_3m_sde_gpu","ddpm","lcm","ddim","uni_pc","uni_pc_bh2"]],"scheduler": [["normal","karras","exponential","sgm_uniform","simple","ddim_uniform"]],"positive": ["CONDITIONING"],"negative": ["CONDITIONING"],"latent_image": ["LATENT"],"denoise": ["FLOAT",{"default": 1,"min": 0,"max": 1,"step": 0.01}]}},"output": ["LATENT"],"output_is_list": [false],"output_name": ["LATENT"],"name": "KSampler","display_name": "KSampler","description": "","category": "sampling","output_node": false}
}

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» KSamplerobjecttruenonenone
»» inputobjecttruenonenone
»»» requiredobjecttruenonenone
»»»» model[string]truenonenone
»»»» seed[object]truenonenone

关注我,分享更多精彩内容。###

您也可以看我用apifox发布生成的api调用示例链接。

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

如若内容造成侵权/违法违规/事实不符,请联系瞎胡闹网进行投诉反馈,一经查实,立即删除!

相关文章

Unity 打包的安卓APK在模拟器运行一会卡死

Unity 安卓APK模拟器运行一会卡死 如题,unity在模拟器上运行安卓apk挂机一会就卡死,在真机上没问题。因为打包时勾选了这个帧率优化选项,2019.2之后的功能,最坑的时打包时默认勾选,所以使用这个版本打包时&#xff0c…

MySQL安全值守常用语句

一、用户权限设置 1、Mysql中用户是如何定义的 用户名主机域 10.0.0.5110.0.0.%%10.0.0.0/255.255.255.0Db01Localhost127.0.0.1 2、用户创建 create user xinjing% identified by 123 3、用户删除 drop user username;username 是要删除的用户名:如 drop user root…

机器学习和AI智能写作对未来文案编辑的影响

欢迎关注小知:知孤云出岫 目录 机器学习和AI智能写作对未来文案编辑的影响1. 简介2. AI智能写作工具的现状3. AI智能写作的优势3.1 提高效率3.2 降低成本3.3 数据驱动的个性化 4. AI智能写作的挑战4.1 创造力和独创性4.2 道德和伦理问题4.3 技术限制 5. 行业变化5.…

最受老板欢迎的监控员工电脑软件推荐!(6款真实测评)

你有没有遇到以下这种情况: 早晨刚到公司打开电脑,老板对着旁边同事大发雷霆突然发问: 小丽,你昨天上班期间刷抖音了? 你吓得瑟瑟发抖,老板咋知道的呢? 跟其他同事讨论才晓得,原…

Python实现的深度学习技术在水文水质领域应用

当前,深度学习作为人工智能的热门技术发展迅速,以其强大的非线性和不确定性处理能力在图像识别、语音识别、自然语言处理等领域取得了显著的成效。它是一种端到端的处理方法,在训练算法的指导下,深层神经网络自发地从原始数据中进…

在2018.3没有找到对应的器件库,需要

图中的器件在vivado中没有找到 一、添加器件 发现所有的2018.3的所有器件库,其实都已经安装了,那么意味着2018.3没有办法对该器件进行综合。 二、安装更新版本的vivado 重新安装的2022.2,在选择器件的时候,把所有的器件全部勾选…

vulnhub-NOOB-1

确认靶机 扫描靶机发现ftp Anonymous 的A大小写都可以 查看文件 解密 登录网页 点击about us会下载一个压缩包 使用工具提取 steghide info 目标文件 //查看隐藏信息 steghide extract -sf 目标文件 //提取隐藏的文件 steghide embed -cf 隐藏信息的文件 -ef…

使用Vue3、Pinia和Vite5打造高度还原的抖音仿制项目

douyin-vue 是一个模仿 抖音|TikTok 的移动端短视频项目。Vue 在移动端的"最佳实践",媲美原生 App 丝滑流畅的使用体验。使用了最新的 Vue 技术栈,基于 Vue3、Vite5 、Pinia实现。数据保存在项目本地,通过 axios-mock-adapter 库拦…

网络安全----防御----防火墙安全策略组网

防火墙组网 要求: 1,DMz区内的服务器,办公区仅能在办公时间内(9:00-18:00)可以访问,生产区的设备全天可以访问。 2,生产区不允许访问互联网,办公区和游客区允许访问互联网 3,办公区设备10.0.…

【银河麒麟高级服务器操作系统】数据中心系统异常卡死分析处理建议

了解银河麒麟操作系统更多全新产品,请点击访问:https://product.kylinos.cn 1.服务器环境以及配置 【机型】浪潮NF5280M5 处理器: Intel 内存: 1T 【内核版本】 4.19.90-24.4.v2101.ky10.x86_64 【OS镜像版本】 银河麒麟…

C++初学者指南-5.标准库(第一部分)--顺序容器

C初学者指南-5.标准库(第一部分)–顺序容器 文章目录 C初学者指南-5.标准库(第一部分)--顺序容器标准顺序容器常见特点规律性&#xff1a;复制&#xff0c;分配&#xff0c;比较类型推导(C17)常用接口部分 array<T,size>vector\<T>C 的默认容器快速回顾迭代器范围插…

ZFT9-7VE8043-Z同期脉冲发送装置100V JOSEF约瑟 柜内安装

ZFT9(PIG)同期脉冲发送装置 系列型号 ZFT9(PIG) 7VE8033同期脉冲发送装置; ZFT9(PIG) 7VE8043同期脉冲发送装置; ZFT9 7VE8033同期脉冲发送装置; ZFT9 7VE8043同期脉冲发送装置; 用途&#xff1a; ZFT9同期脉冲发送装置用于船舶的三相系统&#xff0c;根据发电机和电力系…

985研究生8年终毕业,学位证颁发11天后被作废?

“正常是学校颁证给学院&#xff0c;但学院就没告诉我&#xff0c;还把学校颁发的证书给撤销了&#xff0c;这中间学院并没有书面或电话告知我本人。”34岁读研&#xff0c;如今已42岁的内蒙古任女士回想起求学不易&#xff0c;很是心酸。 2015年3月&#xff0c;任女士考取2015…

用微信服务号支付门诊缴费

时间上午10刚过&#xff0c;医院里计价收费处排起了长龙&#xff0c;放眼望去&#xff0c;左边的窗口六条队。右边在原来发药的位置也开辟了收费窗口&#xff0c;数了一下有四条队。一共十条排队付费的长龙&#xff0c;每一条队伍的人数不下20人&#xff0c;也即超过200人在排队…

第一关:Linux基础知识

Linux基础知识目录 前言LinuxInternStudio 关卡1. InternStudio开发机介绍2. SSH及端口映射2.1 什么是SSH&#xff1f;2.2 如何使用SSH远程连接开发机&#xff1f;2.2.1 使用密码进行SSH远程连接2.2.2 配置SSH密钥进行SSH远程连接2.2.3 使用VScode进行SSH远程连接 2.3. 端口映射…

SpringCloudAlibaba Nacos配置中心与服务发现

目录 1.配置 1.1配置的特点 只读 伴随应用的整个生命周期 多种加载方式 配置需要治理 1.2配置中心 2.Nacos简介 2.1特性 服务发现与服务健康检查 动态配置管理 动态DNS服务 服务和元数据管理 3.服务发现 1.配置 应用程序在启动和运行的时候往往需要读取一些配置信…

Stable Diffusion【ControlNet】:tile模型预处理器详解

今天我们重点对tile模型的预处理器进行一个详细的讲解。 一. Tile模型预处理器介绍 点击ControlNet插件Tile模型下的预处理下拉菜单&#xff0c;会看到Tile模型对应的预处理器有几个选项。 blur_gaussian&#xff1a;高斯模糊&#xff0c;主要用于调整景深用的 tile_colorfi…

什么是源代码加密?如何给源代码加密?

在软件开发领域&#xff0c;源代码的安全问题也日益凸显。源代码一旦泄露&#xff0c;不仅可能导致企业的技术优势丧失&#xff0c;还可能引发法律纠纷和财务损失。我们在了解源代码加密时&#xff0c;首先要了解什么是源代码加密&#xff1f; 什么是源代码加密&#xff1f; 源…

DFT: Parameter-Efficient Fine-Tuning with Discrete Fourier Transform

文章汇总 动机 相比LoRA&#xff0c;进一步压缩可训练参数以进行微调LFMs。 效果如下&#xff1a; 解决办法 相比LoRA&#xff0c;这里的 Δ W \Delta W ΔW为 E ∈ R 2 n E\in \mathbb R^{2\times n} E∈R2n和 c ∈ R n c\in \mathbb R^n c∈Rn。对于所有 L L L个适应层&…

JAVASE进阶day08(Map双列集合)

HashMap 1.HashMap基本使用 package com.lu.day08.map;import java.util.HashMap; import java.util.Map; import java.util.Set;public class MapDome {public static void main(String[] args) {HashMap<String , String> map new HashMap<>();//添加后者修改-…