Skip to content

Commit f2254f4

Browse files
committed
copies
1 parent 4cf1953 commit f2254f4

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

docs/source/en/_toctree.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,8 @@
650650
title: HunyuanVideo
651651
- local: api/pipelines/i2vgenxl
652652
title: I2VGen-XL
653+
- local: api/pipelines/kandinsky5_image
654+
title: Kandinsky 5.0 Image
653655
- local: api/pipelines/kandinsky5_video
654656
title: Kandinsky 5.0 Video
655657
- local: api/pipelines/latte
@@ -670,8 +672,6 @@
670672
title: Text2Video-Zero
671673
- local: api/pipelines/wan
672674
title: Wan
673-
- local: api/pipelines/kandinsky5_image
674-
title: Kandinsky 5.0 Image
675675
title: Video
676676
title: Pipelines
677677
- sections:

src/diffusers/utils/dummy_torch_and_transformers_objects.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,51 @@ def from_pretrained(cls, *args, **kwargs):
13221322
requires_backends(cls, ["torch", "transformers"])
13231323

13241324

1325+
class Kandinsky5I2IPipeline(metaclass=DummyObject):
1326+
_backends = ["torch", "transformers"]
1327+
1328+
def __init__(self, *args, **kwargs):
1329+
requires_backends(self, ["torch", "transformers"])
1330+
1331+
@classmethod
1332+
def from_config(cls, *args, **kwargs):
1333+
requires_backends(cls, ["torch", "transformers"])
1334+
1335+
@classmethod
1336+
def from_pretrained(cls, *args, **kwargs):
1337+
requires_backends(cls, ["torch", "transformers"])
1338+
1339+
1340+
class Kandinsky5I2VPipeline(metaclass=DummyObject):
1341+
_backends = ["torch", "transformers"]
1342+
1343+
def __init__(self, *args, **kwargs):
1344+
requires_backends(self, ["torch", "transformers"])
1345+
1346+
@classmethod
1347+
def from_config(cls, *args, **kwargs):
1348+
requires_backends(cls, ["torch", "transformers"])
1349+
1350+
@classmethod
1351+
def from_pretrained(cls, *args, **kwargs):
1352+
requires_backends(cls, ["torch", "transformers"])
1353+
1354+
1355+
class Kandinsky5T2IPipeline(metaclass=DummyObject):
1356+
_backends = ["torch", "transformers"]
1357+
1358+
def __init__(self, *args, **kwargs):
1359+
requires_backends(self, ["torch", "transformers"])
1360+
1361+
@classmethod
1362+
def from_config(cls, *args, **kwargs):
1363+
requires_backends(cls, ["torch", "transformers"])
1364+
1365+
@classmethod
1366+
def from_pretrained(cls, *args, **kwargs):
1367+
requires_backends(cls, ["torch", "transformers"])
1368+
1369+
13251370
class Kandinsky5T2VPipeline(metaclass=DummyObject):
13261371
_backends = ["torch", "transformers"]
13271372

0 commit comments

Comments
 (0)