Commit 0a1d4c58 authored by Patrick von Platen's avatar Patrick von Platen
Browse files

allow loading pipe from normal repo

parent 7f6a36c3
......@@ -118,7 +118,10 @@ class DiffusionPipeline(ConfigMixin):
load_method = getattr(class_obj, load_method_name)
loaded_sub_model = load_method(os.path.join(cached_folder, name))
if os.path.dir(os.path.join(cached_folder, name)):
loaded_sub_model = load_method(os.path.join(cached_folder, name))
else:
loaded_sub_model = load_method(cached_folder)
init_kwargs[name] = loaded_sub_model # UNet(...), # DiffusionSchedule(...)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment