From 30ab81b6bbab2956f58d0bd6e48b9799a6c61bc3 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Tue, 5 Sep 2023 13:50:21 +1200 Subject: [PATCH] fix: Update paths so they are serializable in the nodes --- invokeai/app/invocations/control_adapter.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/invokeai/app/invocations/control_adapter.py b/invokeai/app/invocations/control_adapter.py index b1391e3857..34561623d5 100644 --- a/invokeai/app/invocations/control_adapter.py +++ b/invokeai/app/invocations/control_adapter.py @@ -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,