missing scripts.xy_grid

really?
beta-dadaptation
aria1th 2023-01-25 19:30:32 +09:00
parent a62a343643
commit 0428c6e47a
1 changed files with 6 additions and 3 deletions

View File

@ -7,7 +7,6 @@ import traceback
import torch
from torch.nn.init import normal_, xavier_uniform_, zeros_, xavier_normal_, kaiming_uniform_, kaiming_normal_
import scripts.xy_grid
from modules.shared import opts
try:
from modules.hashes import sha256
@ -597,8 +596,12 @@ if hasattr(modules.hypernetworks.hypernetwork, 'apply_strength'):
modules.hypernetworks.hypernetwork.apply_strength = apply_strength
modules.hypernetworks.hypernetwork.Hypernetwork = Hypernetwork
modules.hypernetworks.hypernetwork.HypernetworkModule = HypernetworkModule
if hasattr(scripts.xy_grid, 'apply_hypernetwork_strength'):
scripts.xy_grid.apply_hypernetwork_strength = apply_hypernetwork_strength
try:
import scripts.xy_grid
if hasattr(scripts.xy_grid, 'apply_hypernetwork_strength'):
scripts.xy_grid.apply_hypernetwork_strength = apply_hypernetwork_strength
except (ModuleNotFoundError, ImportError):
pass
# Fix calculating hash for multiple hns
processing.create_infotext = create_infotext