This commit is contained in:
lllyasviel
2024-01-31 09:46:24 -08:00
parent 8a0dcd09c9
commit 071be046d2
15 changed files with 153 additions and 561 deletions

View File

@@ -24,22 +24,9 @@ def initialize_forge():
torch.zeros((1, 1)).to(device, torch.float32)
model_management.soft_empty_cache()
import modules_forge.patch_clip
modules_forge.patch_clip.patch_all_clip()
import modules_forge.patch_precision
modules_forge.patch_precision.patch_all_precision()
import modules_forge.patch_basic
modules_forge.patch_basic.patch_all_basics()
import modules_forge.unet_patcher
modules_forge.unet_patcher.patch_all()
if model_management.directml_enabled:
model_management.lowvram_available = True
model_management.OOM_EXCEPTION = Exception
from modules_forge import supported_preprocessor
from modules_forge import supported_controlnet