From ac2f0523cac112a071de43217ecc741d75e74e53 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Sat, 7 Dec 2024 14:51:20 -0500 Subject: [PATCH] Set env vars to disable telemetry in libs used by some custom nodes. --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index c2c2ff8c..5535622d 100644 --- a/main.py +++ b/main.py @@ -8,6 +8,11 @@ import time from comfy.cli_args import args from app.logger import setup_logger +if __name__ == "__main__": + #NOTE: These do not do anything on core ComfyUI which should already have no communication with the internet, they are for custom nodes. + os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1' + os.environ['DO_NOT_TRACK'] = '1' + setup_logger(log_level=args.verbose)