also launch from launch.py
This commit is contained in:
parent
2165114876
commit
933da40735
@ -1 +1 @@
|
||||
version = '2.1.779'
|
||||
version = '2.1.780'
|
||||
|
14
launch.py
14
launch.py
@ -1,6 +1,16 @@
|
||||
from python_hijack import *
|
||||
|
||||
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', 'headless')
|
||||
if backend_path not in sys.path:
|
||||
sys.path.append(backend_path)
|
||||
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
||||
|
||||
|
||||
import platform
|
||||
import fooocus_version
|
||||
|
||||
|
@ -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', 'headless')
|
||||
if backend_path not in sys.path:
|
||||
sys.path.append(backend_path)
|
||||
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
Loading…
Reference in New Issue
Block a user