Revert "another way to use backend (#636)" (#637)

This reverts commit df34b640a8.
This commit is contained in:
lllyasviel
2023-10-10 18:55:32 -07:00
committed by GitHub
parent df34b640a8
commit a0bc991e38
135 changed files with 13 additions and 134574 deletions
-11
View File
@@ -1,11 +0,0 @@
import os
import sys
root = os.path.dirname(os.path.abspath(__file__))
sys.path.append(root)
os.chdir(root)
backend_path = os.path.join(root, 'backend', 'comfy_core')
if backend_path not in sys.path:
sys.path.append(backend_path)
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"