mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
[Fooocus 2.0.60] Fooocus Inpaint or Outpaint (Midjourney Left/Right/Top/Bottom) (#402)
[Fooocus 2.0.60] Fooocus Inpaint or Outpaint (Midjourney Left/Right/Top/Bottom) (#402)
This commit is contained in:
@@ -5,7 +5,7 @@ import modules.path
|
||||
import modules.virtual_memory as virtual_memory
|
||||
|
||||
from comfy.model_base import SDXL, SDXLRefiner
|
||||
from modules.patch import cfg_patched
|
||||
from modules.patch import cfg_patched, patched_model_function
|
||||
from modules.expansion import FooocusExpansion
|
||||
|
||||
|
||||
@@ -201,10 +201,14 @@ def patch_all_models():
|
||||
assert xl_base_patched is not None
|
||||
|
||||
xl_base.unet.model_options['sampler_cfg_function'] = cfg_patched
|
||||
xl_base.unet.model_options['model_function_wrapper'] = patched_model_function
|
||||
|
||||
xl_base_patched.unet.model_options['sampler_cfg_function'] = cfg_patched
|
||||
xl_base_patched.unet.model_options['model_function_wrapper'] = patched_model_function
|
||||
|
||||
if xl_refiner is not None:
|
||||
xl_refiner.unet.model_options['sampler_cfg_function'] = cfg_patched
|
||||
xl_refiner.unet.model_options['model_function_wrapper'] = patched_model_function
|
||||
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user