diff --git a/main.py b/main.py index d488c0f4c12b..0b1987ef405a 100644 --- a/main.py +++ b/main.py @@ -127,6 +127,9 @@ def execute_script(script_path): import cuda_malloc +if 'torch' in sys.modules: + logging.warning("WARNING: Potential Error in code: Torch already imported, torch should never be imported before this point.") + import comfy.utils import execution