Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
4cfb2164
Unverified
Commit
4cfb2164
authored
Aug 26, 2024
by
Álvaro Somoza
Committed by
GitHub
Aug 26, 2024
Browse files
[IP Adapter] Fix `cache_dir` and `local_files_only` for image encoder (#9272)
initial fix
parent
c9779665
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/diffusers/loaders/ip_adapter.py
src/diffusers/loaders/ip_adapter.py
+2
-0
No files found.
src/diffusers/loaders/ip_adapter.py
View file @
4cfb2164
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment