Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
DynamicAudioGenerationNode,
DynamicImageEditorNode,
GaussianBlurUpscaleNode,
BatchBoxImageAnnotator,
create_dynamic_node
)
from .config_manager import config_manager
Expand All @@ -33,6 +34,7 @@
DynamicAudioGenerationNode = None
DynamicImageEditorNode = None
GaussianBlurUpscaleNode = None
BatchBoxImageAnnotator = None
create_dynamic_node = None
config_manager = None

Expand All @@ -54,6 +56,7 @@
"DynamicAudioGeneration": DynamicAudioGenerationNode,
"DynamicImageEditor": DynamicImageEditorNode,
"GaussianBlurUpscale": GaussianBlurUpscaleNode,
"BatchBoxImageAnnotator": BatchBoxImageAnnotator,
}

NODE_DISPLAY_NAME_MAPPINGS = {
Expand All @@ -64,6 +67,7 @@
"DynamicAudioGeneration": "🎵 Dynamic Audio Generation (Beta)",
"DynamicImageEditor": "🔧 Dynamic Image Editor",
"GaussianBlurUpscale": "🔍 Gaussian Blur Upscale (高斯模糊放大)",
"BatchBoxImageAnnotator": "✏️ Image Annotator (编辑图像)",
}

# ==========================================
Expand Down Expand Up @@ -1127,7 +1131,7 @@ async def on_batch_complete(batch_idx, total, batch_previews):
})

import time as _time
_usage_t0 = _time.time()
_usage_t0 = _time.monotonic()
_batch_count = min(int(data.get("batch_count", 1)), 20)

result = await generator.generate(
Expand All @@ -1141,7 +1145,7 @@ async def on_batch_complete(batch_idx, total, batch_previews):
on_batch_complete=on_batch_complete
)

_usage_duration = _time.time() - _usage_t0
_usage_duration = _time.monotonic() - _usage_t0

# --- Usage Tracking ---
try:
Expand Down
Loading
Loading