1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[IP Adapter] Fix cache_dir and local_files_only for image encoder (#9272)

initial fix
This commit is contained in:
Álvaro Somoza
2024-08-26 15:03:08 -04:00
committed by GitHub
parent c977966502
commit 4cfb2164fb

View File

@@ -208,6 +208,8 @@ class IPAdapterMixin:
pretrained_model_name_or_path_or_dict,
subfolder=image_encoder_subfolder,
low_cpu_mem_usage=low_cpu_mem_usage,
cache_dir=cache_dir,
local_files_only=local_files_only,
).to(self.device, dtype=self.dtype)
self.register_modules(image_encoder=image_encoder)
else: