From 37365817e82c3d6057fcb0a5d7f952f7376f096a Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Fri, 26 Sep 2025 12:39:39 +0300 Subject: [PATCH] Revert unicode character in warning strings Seems it may cause issues on some systems --- __init__.py | 12 ++++++------ nodes_model_loading.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/__init__.py b/__init__.py index 947823d..074c48a 100644 --- a/__init__.py +++ b/__init__.py @@ -2,7 +2,7 @@ try: from .utils import check_duplicate_nodes, log duplicate_dirs = check_duplicate_nodes() if duplicate_dirs: - warning_msg = f"⚠️ Found {len(duplicate_dirs)} other WanVideoWrapper directories: ⚠️\n" + warning_msg = f"WARNING: Found {len(duplicate_dirs)} other WanVideoWrapper directories:\n" for dir_path in duplicate_dirs: warning_msg += f" - {dir_path}\n" log.warning(warning_msg + "Please remove duplicates to avoid possible conflicts.") @@ -28,7 +28,7 @@ from .s2v.nodes import NODE_CLASS_MAPPINGS as S2V_NODE_CLASS_MAPPINGS, NODE_DISP try: from .qwen.qwen import NODE_CLASS_MAPPINGS as QWEN_NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as QWEN_NODE_DISPLAY_NAME_MAPPINGS except Exception as e: - log.warning(f"⚠️ WanVideoWrapper: Qwen nodes not available due to error in importing them: {e} ⚠️") + log.warning(f"WanVideoWrapper WARNING: Qwen nodes not available due to error in importing them: {e}") QWEN_NODE_CLASS_MAPPINGS = {} QWEN_NODE_DISPLAY_NAME_MAPPINGS = {} @@ -36,28 +36,28 @@ except Exception as e: try: from .fantasyportrait.nodes import NODE_CLASS_MAPPINGS as FANTASYPORTRAIT_NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as FANTASYPORTRAIT_NODE_DISPLAY_NAME_MAPPINGS except Exception as e: - log.warning(f"⚠️ WanVideoWrapper: FantasyPortrait nodes not available due to error in importing them: {e} ⚠️") + log.warning(f"WanVideoWrapper WARNING: FantasyPortrait nodes not available due to error in importing them: {e}") FANTASYPORTRAIT_NODE_CLASS_MAPPINGS = {} FANTASYPORTRAIT_NODE_DISPLAY_NAME_MAPPINGS = {} try: from .unianimate.nodes import NODE_CLASS_MAPPINGS as UNIANIMATE_NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as UNIANIMATE_NODE_DISPLAY_NAME_MAPPINGS except Exception as e: - log.warning(f"⚠️ WanVideoWrapper: UniAnimate nodes not available due to error in importing them: {e} ⚠️") + log.warning(f"WanVideoWrapper WARNING: UniAnimate nodes not available due to error in importing them: {e}") UNIANIMATE_NODE_CLASS_MAPPINGS = {} UNIANIMATE_NODE_DISPLAY_NAME_MAPPINGS = {} try: from .MTV.nodes import NODE_CLASS_MAPPINGS as MTV_NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as MTV_NODE_DISPLAY_NAME_MAPPINGS except Exception as e: - log.warning(f"⚠️ WanVideoWrapper: MTV nodes not available due to error in importing them: {e} ⚠️") + log.warning(f"WanVideoWrapper WARNING: MTV nodes not available due to error in importing them: {e}") MTV_NODE_CLASS_MAPPINGS = {} MTV_NODE_DISPLAY_NAME_MAPPINGS = {} try: from .HuMo.nodes import NODE_CLASS_MAPPINGS as HUMO_NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS as HUMO_NODE_DISPLAY_NAME_MAPPINGS except Exception as e: - log.warning(f"⚠️ WanVideoWrapper: HuMo nodes not available due to error in importing them: {e} ⚠️") + log.warning(f"WanVideoWrapper WARNING: HuMo nodes not available due to error in importing them: {e}") HUMO_NODE_CLASS_MAPPINGS = {} HUMO_NODE_DISPLAY_NAME_MAPPINGS = {} diff --git a/nodes_model_loading.py b/nodes_model_loading.py index 78fcb63..684c275 100644 --- a/nodes_model_loading.py +++ b/nodes_model_loading.py @@ -63,7 +63,7 @@ try: from comfy.latent_formats import Wan21, Wan22 latent_format = Wan21 except: #for backwards compatibility - log.warning("⚠️ Wan21 latent format not found, update ComfyUI for better livepreview ⚠️") + log.warning("WARNING: Wan21 latent format not found, update ComfyUI for better live video preview") from comfy.latent_formats import HunyuanVideo latent_format = HunyuanVideo @@ -1092,7 +1092,7 @@ class WanVideoModelLoader: major, minor = torch.cuda.get_device_capability(device) log.info(f"CUDA Compute Capability: {major}.{minor}") if compile_args is not None and "e4" in quantization and (major, minor) < (8, 9): - log.warning("⚠️Torch.compile with fp8_e4m3fn weights on CUDA compute capability < 8.9 is not supported. Please use fp8_e5m2, GGUF or higher precision instead.⚠️") + log.warning("WARNING: Torch.compile with fp8_e4m3fn weights on CUDA compute capability < 8.9 is not supported. Please use fp8_e5m2, GGUF or higher precision instead.") if "scaled_fp8" in sd and "scaled" not in quantization: raise ValueError("The model is a scaled fp8 model, please set quantization to '_scaled'")