Skip to content

Commit f95f086

Browse files
committed
Merge branch 'main' into testing
2 parents ef762d4 + c9ec6e2 commit f95f086

22 files changed

+1619
-265
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @lllyasviel

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ __pycache__
44
**/*.pth
55
**/*.pt
66
**/*.bin
7+
**/*.patch
78
**/*.yaml
89
**/*.png
9-
!taesdxl_decoder.pth
10+
user_path_config.txt
1011
/repositories
1112
/venv
1213
/tmp

fooocus_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = '2.0.19 MRE'
1+
version = '2.0.73 MRE'
22
full_version = 'Fooocus ' + version

launch.py

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
33

4-
54
import sys
65
import platform
76
import fooocus_version
@@ -10,13 +9,12 @@
109
from modules.launch_util import is_installed, run, python, \
1110
run_pip, repo_dir, git_clone, requirements_met, script_path, dir_repos
1211
from modules.model_loader import load_file_from_url
13-
from modules.path import modelfile_path, lorafile_path, clip_vision_path, controlnet_path, vae_approx_path, fooocus_expansion_path
12+
from modules.path import modelfile_path, lorafile_path, clip_vision_path, controlnet_path, vae_approx_path, fooocus_expansion_path, upscale_models_path
1413

1514

1615
REINSTALL_ALL = False
1716
DEFAULT_ARGS = ['--disable-smart-memory', '--disable-cuda-malloc']
1817

19-
2018
def prepare_environment():
2119
torch_index_url = os.environ.get('TORCH_INDEX_URL', "https://download.pytorch.org/whl/cu118")
2220
torch_command = os.environ.get('TORCH_COMMAND',
@@ -86,8 +84,14 @@ def prepare_environment():
8684
]
8785

8886
vae_approx_filenames = [
89-
('taesdxl_decoder.pth',
90-
'https://huggingface.co/lllyasviel/misc/resolve/main/taesdxl_decoder.pth')
87+
('xlvaeapp.pth',
88+
'https://huggingface.co/lllyasviel/misc/resolve/main/xlvaeapp.pth')
89+
]
90+
91+
92+
upscaler_filenames = [
93+
('fooocus_upscaler_s409985e5.bin',
94+
'https://huggingface.co/lllyasviel/misc/resolve/main/fooocus_upscaler_s409985e5.bin')
9195
]
9296

9397

@@ -102,6 +106,8 @@ def download_models():
102106
load_file_from_url(url=url, model_dir=controlnet_path, file_name=file_name)
103107
for file_name, url in vae_approx_filenames:
104108
load_file_from_url(url=url, model_dir=vae_approx_path, file_name=file_name)
109+
for file_name, url in upscaler_filenames:
110+
load_file_from_url(url=url, model_dir=upscale_models_path, file_name=file_name)
105111

106112
load_file_from_url(
107113
url='https://huggingface.co/lllyasviel/misc/resolve/main/fooocus_expansion.bin',

models/vae_approx/taesdxl_decoder.pth

-4.69 MB
Binary file not shown.

0 commit comments

Comments
 (0)