Skip to content

Commit ec85c73

Browse files
committed
fix
1 parent 2cd908e commit ec85c73

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/diffusers/utils/dummy_pt_objects.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def apply_layer_skip(*args, **kwargs):
242242
def apply_pyramid_attention_broadcast(*args, **kwargs):
243243
requires_backends(apply_pyramid_attention_broadcast, ["torch"])
244244

245+
245246
class AllegroTransformer3DModel(metaclass=DummyObject):
246247
_backends = ["torch"]
247248

@@ -527,6 +528,21 @@ def from_pretrained(cls, *args, **kwargs):
527528
requires_backends(cls, ["torch"])
528529

529530

531+
class BriaTransformer2DModel(metaclass=DummyObject):
532+
_backends = ["torch"]
533+
534+
def __init__(self, *args, **kwargs):
535+
requires_backends(self, ["torch"])
536+
537+
@classmethod
538+
def from_config(cls, *args, **kwargs):
539+
requires_backends(cls, ["torch"])
540+
541+
@classmethod
542+
def from_pretrained(cls, *args, **kwargs):
543+
requires_backends(cls, ["torch"])
544+
545+
530546
class CacheMixin(metaclass=DummyObject):
531547
_backends = ["torch"]
532548

@@ -1067,6 +1083,36 @@ def from_pretrained(cls, *args, **kwargs):
10671083
requires_backends(cls, ["torch"])
10681084

10691085

1086+
class QwenImageControlNetModel(metaclass=DummyObject):
1087+
_backends = ["torch"]
1088+
1089+
def __init__(self, *args, **kwargs):
1090+
requires_backends(self, ["torch"])
1091+
1092+
@classmethod
1093+
def from_config(cls, *args, **kwargs):
1094+
requires_backends(cls, ["torch"])
1095+
1096+
@classmethod
1097+
def from_pretrained(cls, *args, **kwargs):
1098+
requires_backends(cls, ["torch"])
1099+
1100+
1101+
class QwenImageMultiControlNetModel(metaclass=DummyObject):
1102+
_backends = ["torch"]
1103+
1104+
def __init__(self, *args, **kwargs):
1105+
requires_backends(self, ["torch"])
1106+
1107+
@classmethod
1108+
def from_config(cls, *args, **kwargs):
1109+
requires_backends(cls, ["torch"])
1110+
1111+
@classmethod
1112+
def from_pretrained(cls, *args, **kwargs):
1113+
requires_backends(cls, ["torch"])
1114+
1115+
10701116
class QwenImageTransformer2DModel(metaclass=DummyObject):
10711117
_backends = ["torch"]
10721118

0 commit comments

Comments
 (0)