fix: use Path for ip_adapter_ckpt_path instead of str

This commit is contained in:
blessedcoolant
2024-04-03 20:21:03 +05:30
parent 14a9f74b17
commit 2dcbb7223b
2 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ class IPAdapterInvokeAILoader(ModelLoader):
raise ValueError("There are no submodels in an IP-Adapter model.")
model_path = Path(config.path)
model: RawModel = build_ip_adapter(
ip_adapter_ckpt_path=str(model_path),
ip_adapter_ckpt_path=model_path,
device=torch.device("cpu"),
dtype=self._torch_dtype,
)