This commit is contained in:
wailovet
2024-06-30 20:22:01 +08:00
parent e6b5d0d49a
commit 81d44d6414
+10 -1
View File
@@ -851,7 +851,16 @@ def MZ_HYDiTSimpleT2I_call(args={}):
if HYDiT_tool_dir not in sys.path:
sys.path.append(HYDiT_tool_dir)
import hydit.inference
try:
import hydit
except ImportError:
sys.path.append(HYDiT_tool_dir)
from hydit.inference import SAMPLER_FACTORY, HUNYUAN_DIT_CONFIG, get_fill_resize_and_crop, get_2d_rotary_pos_embed
from hydit.modules.text_encoder import MT5Embedder
from hydit.utils.tools import set_seeds