Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Print the frontend version in the log.

comfyanonymousc3d9cc459231
diff --git a/app/frontend_management.py b/app/frontend_management.py
index 9feb1e965..94293af1e 100644
--- a/app/frontend_management.py
+++ b/app/frontend_management.py
@@ -27,6 +27,12 @@ except ImportError:
exit(-1)
+try:
+ frontend_version = tuple(map(int, comfyui_frontend_package.__version__.split(".")))
+except:
+ frontend_version = (0,)
+ pass
+
REQUEST_TIMEOUT = 10 # seconds
diff --git a/main.py b/main.py
index f6510c90a..57fa397e6 100644
--- a/main.py
+++ b/main.py
@@ -139,6 +139,7 @@ from server import BinaryEventTypes
import nodes
import comfy.model_management
import comfyui_version
+import app.frontend_management
def cuda_malloc_warning():
@@ -295,6 +296,8 @@ def start_comfyui(asyncio_loop=None):
if __name__ == "__main__":
# Running directly, just start ComfyUI.
logging.info("ComfyUI version: {}".format(comfyui_version.__version__))
+ logging.info("ComfyUI frontend version: {}".format('.'.join(map(str, app.frontend_management.frontend_version))))
+
event_loop, _, start_all_func = start_comfyui()
try:
event_loop.run_until_complete(start_all_func())