The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Cleanup.
comfyanonymous935ae153e154
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex 4147989e0..59dce4dac 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -45,6 +45,7 @@ cpu_state = CPUState.GPUtotal_vram = 0xpu_available = False+torch_version = ""try:torch_version = torch.version.__version__xpu_available = (int(torch_version[0]) < 2 or (int(torch_version[0]) == 2 and int(torch_version[2]) <= 4)) and torch.xpu.is_available()diff --git a/server.py b/server.pyindex 26bfcdd96..3611880da 100644--- a/server.py+++ b/server.py@@ -30,7 +30,6 @@ from app.user_manager import UserManagerfrom model_filemanager import download_model, DownloadModelStatusfrom typing import Optionalfrom api_server.routes.internal.internal_routes import InternalRoutes-import torchclass BinaryEventTypes:PREVIEW_IMAGE = 1@@ -52,7 +51,7 @@ def get_comfyui_version():except Exception:try:import subprocess- comfyui_version = subprocess.check_output(["git", "describe", "--tags"], cwd=repo_path)+ comfyui_version = subprocess.check_output(["git", "describe", "--tags"], cwd=repo_path).decode('utf-8')except Exception as e:logging.warning(f"Failed to get ComfyUI version: {e}")return comfyui_version.strip()@@ -427,7 +426,7 @@ class PromptServer():"os": os.name,"comfyui_version": get_comfyui_version(),"python_version": sys.version,- "pytorch_version": torch.version.__version__,+ "pytorch_version": comfy.model_management.torch_version,"embedded_python": os.path.split(os.path.split(sys.executable)[0])[1] == "python_embeded","argv": sys.argv},