1 import os 2 import subprocess 3 import importlib.util 4 import folder_paths 5 import shutil 6 import sys 7 import traceback 8
13 from importlib import import_module 14 import os 15 import sys 16 import copy 17 import subprocess 18 import json 19 import psutil 20
108 109 is_edit_model = False 110 111 conds_list, tensor = cond 112 assert not is_edit_model or all(len(conds) == 1 for conds in conds_list), "AND is not supported for InstructPix2Pix checkpoint (unless using Image CFG scale = 1.0)" 113 114 if self.mask_before_denoising and self.mask is not None: 115 x = self.init_latent * self.mask + self.nmask * x
92 2 * self.out_channels if use_scale_shift_norm else self.out_channels 93 ) 94 if self.skip_t_emb: 95 print(f"Skipping timestep embedding in {self.__class__.__name__}") 96 assert not self.use_scale_shift_norm 97 self.emb_layers = None 98 self.exchange_temb_dims = False 99 else: