fix: Update paths so they are serializable in the nodes

This commit is contained in:
blessedcoolant 2023-09-05 13:50:21 +12:00
parent 78195491bc
commit 30ab81b6bb

View File

@ -164,8 +164,12 @@ class IPAdapterInvocation(BaseInvocation):
# control_model is currently optional
# must be either a control_model or ip_adapter_model
# control_model=None,
ip_adapter_model=context.services.configuration.get_config().root_dir / self.ip_adapter_model,
image_encoder_model=context.services.configuration.get_config().root_dir / self.image_encoder_model,
ip_adapter_model=(
context.services.configuration.get_config().root_dir / self.ip_adapter_model
).as_posix(),
image_encoder_model=(
context.services.configuration.get_config().root_dir / self.image_encoder_model
).as_posix(),
control_weight=self.control_weight,
# rest are currently ignored
# begin_step_percent=self.begin_step_percent,