"ci/install_dependencies_python2.sh" did not exist on "2ad4126fcba61ed039a21c19e73713d33716243f"
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): ...@@ -118,7 +118,10 @@ class DiffusionPipeline(ConfigMixin):
load_method = getattr(class_obj, load_method_name) load_method = getattr(class_obj, load_method_name)
if os.path.dir(os.path.join(cached_folder, name)):
loaded_sub_model = load_method(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(...) 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