diff --git a/src/diffusers/utils/dummy_transformers_objects.py b/src/diffusers/utils/dummy_transformers_objects.py index 753e3fdb..4c216b62 100644 --- a/src/diffusers/utils/dummy_transformers_objects.py +++ b/src/diffusers/utils/dummy_transformers_objects.py @@ -1,3 +1,31 @@ # This file is autogenerated by the command `make fix-copies`, do not edit. # flake8: noqa from ..utils import DummyObject, requires_backends + + +class LDMTextToImagePipeline(metaclass=DummyObject): + _backends = ["transformers"] + + def __init__(self, *args, **kwargs): + requires_backends(self, ["transformers"]) + + +class StableDiffusionImg2ImgPipeline(metaclass=DummyObject): + _backends = ["transformers"] + + def __init__(self, *args, **kwargs): + requires_backends(self, ["transformers"]) + + +class StableDiffusionInpaintPipeline(metaclass=DummyObject): + _backends = ["transformers"] + + def __init__(self, *args, **kwargs): + requires_backends(self, ["transformers"]) + + +class StableDiffusionPipeline(metaclass=DummyObject): + _backends = ["transformers"] + + def __init__(self, *args, **kwargs): + requires_backends(self, ["transformers"]) diff --git a/utils/check_dummies.py b/utils/check_dummies.py index f9a45284..928f9ac1 100644 --- a/utils/check_dummies.py +++ b/utils/check_dummies.py @@ -77,8 +77,8 @@ def read_init(): single_line_import_search = _re_single_line_import.search(line) if single_line_import_search is not None: objects.extend(single_line_import_search.groups()[0].split(", ")) - elif line.startswith(" " * 12): - objects.append(line[12:-2]) + elif line.startswith(" " * 8): + objects.append(line[8:-2]) line_index += 1 backend_specific_objects[backend] = objects