i
This commit is contained in:
parent
e4c33940b1
commit
d9e797cc51
2
fooocus_version.py
Normal file
2
fooocus_version.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
version = '1.0.1'
|
||||||
|
|
@ -1,8 +1,9 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import platform
|
import platform
|
||||||
|
import fooocus_version
|
||||||
|
|
||||||
from modules.launch_util import fooocus_tag, is_installed, run, python, \
|
from modules.launch_util import is_installed, run, python, \
|
||||||
run_pip, repo_dir, git_clone, requirements_met, script_path, dir_repos
|
run_pip, repo_dir, git_clone, requirements_met, script_path, dir_repos
|
||||||
from modules.model_loader import load_file_from_url
|
from modules.model_loader import load_file_from_url
|
||||||
from modules.path import modelfile_path, lorafile_path
|
from modules.path import modelfile_path, lorafile_path
|
||||||
@ -21,10 +22,8 @@ def prepare_environment():
|
|||||||
comfy_repo = os.environ.get('COMFY_REPO', "https://github.com/comfyanonymous/ComfyUI")
|
comfy_repo = os.environ.get('COMFY_REPO', "https://github.com/comfyanonymous/ComfyUI")
|
||||||
comfy_commit_hash = os.environ.get('COMFY_COMMIT_HASH', "2bc12d3d22efb5c63ae3a7fc342bb2dd16b31735")
|
comfy_commit_hash = os.environ.get('COMFY_COMMIT_HASH', "2bc12d3d22efb5c63ae3a7fc342bb2dd16b31735")
|
||||||
|
|
||||||
tag = fooocus_tag
|
|
||||||
|
|
||||||
print(f"Python {sys.version}")
|
print(f"Python {sys.version}")
|
||||||
print(f"Version: {tag}")
|
print(f"Fooocus version: {fooocus_version.version}")
|
||||||
|
|
||||||
comfyui_name = 'ComfyUI-from-StabilityAI-Official'
|
comfyui_name = 'ComfyUI-from-StabilityAI-Official'
|
||||||
git_clone(comfy_repo, repo_dir(comfyui_name), "Inference Engine", comfy_commit_hash)
|
git_clone(comfy_repo, repo_dir(comfyui_name), "Inference Engine", comfy_commit_hash)
|
||||||
|
@ -20,8 +20,6 @@ modules_path = os.path.dirname(os.path.realpath(__file__))
|
|||||||
script_path = os.path.dirname(modules_path)
|
script_path = os.path.dirname(modules_path)
|
||||||
dir_repos = "repositories"
|
dir_repos = "repositories"
|
||||||
|
|
||||||
fooocus_tag = '1.0.0'
|
|
||||||
|
|
||||||
|
|
||||||
def git_clone(url, dir, name, hash=None):
|
def git_clone(url, dir, name, hash=None):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user