mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
also launch from launch.py
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
version = '2.1.779'
|
version = '2.1.780'
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
from python_hijack import *
|
import os
|
||||||
|
|
||||||
import sys
|
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 platform
|
||||||
import fooocus_version
|
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"
|
|
||||||
Reference in New Issue
Block a user