Skip to content

Commit da170f5

Browse files
committed
style
1 parent 3d2ec4c commit da170f5

5 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_i2i.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import html
16-
from typing import Callable, Dict, List, Optional, Union, Tuple
16+
from typing import Callable, Dict, List, Optional, Union
1717

1818
import numpy as np
1919
import regex as re

‎src/diffusers/pipelines/kandinsky5/pipeline_kandinsky_t2i.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import html
16-
from typing import Callable, Dict, List, Optional, Union, Tuple
16+
from typing import Callable, Dict, List, Optional, Union
1717

1818
import numpy as np
1919
import regex as re

‎tests/pipelines/kandinsky5/test_kandinsky5_i2i.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,10 @@ def test_inference(self):
192192

193193
self.assertEqual(image.shape, (1, 3, 64, 64))
194194

195-
196195
@unittest.skip("TODO: Test does not work")
197196
def test_encode_prompt_works_in_isolation(self):
198197
pass
199198

200-
201199
@unittest.skip("TODO: revisit, Batch isnot yet supported in this pipeline")
202200
def test_num_images_per_prompt(self):
203201
pass

‎tests/pipelines/kandinsky5/test_kandinsky5_i2v.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def get_dummy_components(self):
119119
text_encoder = Qwen2_5_VLForConditionalGeneration(qwen_config)
120120
tokenizer = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-Qwen2VLForConditionalGeneration")
121121

122-
123122
clip_hidden_size = 16
124123
torch.manual_seed(0)
125124
clip_config = CLIPTextConfig(
@@ -199,7 +198,6 @@ def test_inference(self):
199198
# 17 frames, RGB, 32×32
200199
self.assertEqual(video.shape, (17, 3, 32, 32))
201200

202-
203201
@unittest.skip("TODO:Test does not work")
204202
def test_encode_prompt_works_in_isolation(self):
205203
pass

‎tests/pipelines/kandinsky5/test_kandinsky5_t2i.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_inference(self):
185185
output = pipe(**inputs)
186186
image = output.image
187187

188-
self.assertEqual(image.shape, (1, 3, 16,16))
188+
self.assertEqual(image.shape, (1, 3, 16, 16))
189189

190190
def test_inference_batch_single_identical(self):
191191
super().test_inference_batch_single_identical(expected_max_diff=5e-3)

0 commit comments

Comments
 (0)