This commit is contained in:
kk8bit
2025-04-06 22:20:37 +08:00
parent 255ccc91b4
commit abae90cd3f
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "kaytool"
description ="KayTool boosts ComfyUI workflow efficiency with powerful tools like: image processing (resize, color, blur, expand, merge, crop), background/mask tasks via BiRefNet/RemBG, wireless data transfer (Get & Out), AI translation (Tencent/Baidu), Professional high-precision resource monitoring, dynamic math operations, flexible text handling, precision sliders, metadata/color profile-supported image saving, batch processing via folder loading, canvas node map export as PNG with metadata, quick Run options via right-click, node alignment toolbar with custom styles, and custom ComfyUI logo integration."
version = "0.60.1"
version = "0.60.2"
license = {file = "LICENSE"}
dependencies = ["rembg, timm, opencv-python, requests, py-cpuinfo, pynvml"]
+4 -3
View File
@@ -1,6 +1,7 @@
import { app } from "../../../scripts/app.js";
import { api } from "../../scripts/api.js";
class PromptExecution {
class KayPromptExecution {
constructor(id) {
this.promptApi = null;
this.executedNodeIds = [];
@@ -312,7 +313,7 @@ const KayResourceMonitor = {
getOrMakePrompt(id) {
let prompt = this.promptsMap.get(id);
if (!prompt) {
prompt = new PromptExecution(id);
prompt = new KayPromptExecution(id);
this.promptsMap.set(id, prompt);
}
return prompt;
@@ -373,7 +374,7 @@ const KayResourceMonitor = {
if (currentNode === "Idle") {
displayText = "Workflow: Idle"; barPercentage = 0;
} else {
displayPercentage = isProgressUnknown ? "??%" : `${Math.min(Math.max(this.currentWorkflow.percentage, 0), 100).toFixed(1)}%`;
displayPercentage = isProgressUnknown ? "Loading" : `${Math.min(Math.max(this.currentWorkflow.percentage, 0), 100).toFixed(1)}%`;
barPercentage = isProgressUnknown ? 0 : Math.min(Math.max(this.currentWorkflow.percentage, 0), 100);
if (queueCount > 1) { displayPercentage += ` (${queueCount})`;
}