造福Mac用户的功能——为无限画布增加 Draw Things gRPCServerCLI 支持 - #181
Open
Rayen21 wants to merge 20 commits into
Open
Conversation
更新gPRCServerCLI安装说明
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为无限画布增加 Draw Things gRPCServerCLI 支持,并修复异步节点刷新和日志中删除记录的问题。
让 Mac 用户直接在无限画布中不开启 Draw Things 软件而使用它的能力,同时保留现有的 ComfyUI 和其他 API 平台支持。
Draw Things 简介
Draw Things 是一款面向 Apple 平台的本地 AI 生图软件,支持 macOS 等系统。
它主要使用 Apple Silicon、Metal 等 Mac 原生硬件加速能力在本地运行图像生成模型。Draw Things 同时提供了 gRPCServerCLI,使外部应用可以通过程序接口调用 Draw Things 的生图能力。
相较于在 macOS 上搭建和维护一套完整的 ComfyUI 环境,Draw Things 对部分 Mac 用户具有以下实际优势:
ComfyUI 仍然保留并继续支持。本 PR 只是为无限画布增加 Draw Things 作为另一个可选的本地生图后端,并不是替代 ComfyUI。
gRPCServerCLI 功能
grpcAPI 协议类型。智能画布节点刷新修复
本 PR 同时修复了智能画布中的异步节点刷新问题。
之前,当一个生图节点仍在运行时,如果用户选中了画布中的其他节点,前一个节点完成后,当前选中的节点可能会被错误地刷新为前一个运行节点的参数,包括:
本次修改:
兼容性
概要
本 PR 恢复无限画布生成日志中的删除功能。
日志面板重新支持以下操作:
实现内容
恢复普通画布日志面板中的删除操作。
恢复智能画布日志面板中的删除操作。
增加后端接口:
POST /api/canvases/{canvas_id}/logs/delete使用
base_updated_at进行画布版本冲突检查。只删除没有被其他内容引用的生成文件。
对仍被其他节点或日志引用的文件进行保护。
删除完成后广播画布更新,使其他已打开的画布视图能够同步刷新。
修改动机
随着画布使用时间增加,生成日志和图片文件会持续累积。恢复日志删除功能可以帮助用户管理画布历史,并清理不再使用的生成内容。
本 PR 只恢复日志管理能力,不改变现有的生图流程。