mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
[Fooocus 2.0.50] Variation/Upscale (Midjourney Toolbar) (#389)
This commit is contained in:
@@ -9,7 +9,7 @@ import fooocus_version
|
||||
from modules.launch_util import is_installed, run, python, \
|
||||
run_pip, repo_dir, git_clone, requirements_met, script_path, dir_repos
|
||||
from modules.model_loader import load_file_from_url
|
||||
from modules.path import modelfile_path, lorafile_path, vae_approx_path, fooocus_expansion_path
|
||||
from modules.path import modelfile_path, lorafile_path, vae_approx_path, fooocus_expansion_path, upscale_models_path
|
||||
|
||||
REINSTALL_ALL = False
|
||||
|
||||
@@ -67,8 +67,14 @@ lora_filenames = [
|
||||
]
|
||||
|
||||
vae_approx_filenames = [
|
||||
('taesdxl_decoder.pth',
|
||||
'https://huggingface.co/lllyasviel/misc/resolve/main/taesdxl_decoder.pth')
|
||||
('xlvaeapp.pth',
|
||||
'https://huggingface.co/lllyasviel/misc/resolve/main/xlvaeapp.pth')
|
||||
]
|
||||
|
||||
|
||||
upscaler_filenames = [
|
||||
('fooocus_upscaler_s409985e5.bin',
|
||||
'https://huggingface.co/lllyasviel/misc/resolve/main/fooocus_upscaler_s409985e5.bin')
|
||||
]
|
||||
|
||||
|
||||
@@ -79,6 +85,8 @@ def download_models():
|
||||
load_file_from_url(url=url, model_dir=lorafile_path, file_name=file_name)
|
||||
for file_name, url in vae_approx_filenames:
|
||||
load_file_from_url(url=url, model_dir=vae_approx_path, file_name=file_name)
|
||||
for file_name, url in upscaler_filenames:
|
||||
load_file_from_url(url=url, model_dir=upscale_models_path, file_name=file_name)
|
||||
|
||||
load_file_from_url(
|
||||
url='https://huggingface.co/lllyasviel/misc/resolve/main/fooocus_expansion.bin',
|
||||
|
||||
Reference in New Issue
Block a user