Skip to content

Commit 6ad9ff0

Browse files
committed
Merge branch 'main' into moonride-main
2 parents 5c9ba3a + fe093c4 commit 6ad9ff0

22 files changed

+150582
-125
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __pycache__
33
**/*.safetensors
44
**/*.pth
55
**/*.pt
6+
**/*.bin
67
**/*.yaml
78
**/*.png
89
!taesdxl_decoder.pth

fooocus_version.py

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

launch.py

+17-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from modules.launch_util import is_installed, run, python, \
88
run_pip, repo_dir, git_clone, requirements_met, script_path, dir_repos
99
from modules.model_loader import load_file_from_url
10-
from modules.path import modelfile_path, lorafile_path, clip_vision_path, controlnet_path
10+
from modules.path import modelfile_path, lorafile_path, clip_vision_path, controlnet_path, vae_approx_path, fooocus_expansion_path
11+
1112

1213
REINSTALL_ALL = False
1314
DEFAULT_ARGS = ['--disable-smart-memory']
@@ -22,7 +23,7 @@ def prepare_environment():
2223
xformers_package = os.environ.get('XFORMERS_PACKAGE', 'xformers==0.0.21')
2324

2425
comfy_repo = os.environ.get('COMFY_REPO', "https://github.com/comfyanonymous/ComfyUI")
25-
comfy_commit_hash = os.environ.get('COMFY_COMMIT_HASH', "07691e80c3bf9be16c629169e259105ca5327bf0")
26+
comfy_commit_hash = os.environ.get('COMFY_COMMIT_HASH', "9261587d8975bb0c3f929433345e9918bf659460")
2627

2728
print(f"Python {sys.version}")
2829
print(f"Fooocus version: {fooocus_version.version}")
@@ -81,6 +82,11 @@ def prepare_environment():
8182
'https://huggingface.co/stabilityai/control-lora/resolve/main/control-LoRAs-rank256/control-lora-depth-rank256.safetensors')
8283
]
8384

85+
vae_approx_filenames = [
86+
('taesdxl_decoder.pth',
87+
'https://huggingface.co/lllyasviel/misc/resolve/main/taesdxl_decoder.pth')
88+
]
89+
8490

8591
def download_models():
8692
for file_name, url in model_filenames:
@@ -91,6 +97,15 @@ def download_models():
9197
load_file_from_url(url=url, model_dir=clip_vision_path, file_name=file_name)
9298
for file_name, url in controlnet_filenames:
9399
load_file_from_url(url=url, model_dir=controlnet_path, file_name=file_name)
100+
for file_name, url in vae_approx_filenames:
101+
load_file_from_url(url=url, model_dir=vae_approx_path, file_name=file_name)
102+
103+
load_file_from_url(
104+
url='https://huggingface.co/lllyasviel/misc/resolve/main/fooocus_expansion.bin',
105+
model_dir=fooocus_expansion_path,
106+
file_name='pytorch_model.bin'
107+
)
108+
94109
return
95110

96111

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"_name_or_path": "gpt2",
3+
"activation_function": "gelu_new",
4+
"architectures": [
5+
"GPT2LMHeadModel"
6+
],
7+
"attn_pdrop": 0.1,
8+
"bos_token_id": 50256,
9+
"embd_pdrop": 0.1,
10+
"eos_token_id": 50256,
11+
"initializer_range": 0.02,
12+
"layer_norm_epsilon": 1e-05,
13+
"model_type": "gpt2",
14+
"n_ctx": 1024,
15+
"n_embd": 768,
16+
"n_head": 12,
17+
"n_inner": null,
18+
"n_layer": 12,
19+
"n_positions": 1024,
20+
"reorder_and_upcast_attn": false,
21+
"resid_pdrop": 0.1,
22+
"scale_attn_by_inverse_layer_idx": false,
23+
"scale_attn_weights": true,
24+
"summary_activation": null,
25+
"summary_first_dropout": 0.1,
26+
"summary_proj_to_labels": true,
27+
"summary_type": "cls_index",
28+
"summary_use_proj": true,
29+
"task_specific_params": {
30+
"text-generation": {
31+
"do_sample": true,
32+
"max_length": 50
33+
}
34+
},
35+
"torch_dtype": "float32",
36+
"transformers_version": "4.23.0.dev0",
37+
"use_cache": true,
38+
"vocab_size": 50257
39+
}

0 commit comments

Comments
 (0)