Skip to content

Commit 8b61c52

Browse files
committed
fix cli tests
1 parent 6f1ef82 commit 8b61c52

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

optimum/intel/openvino/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"audio-classification": "OVModelForAudioClassification",
116116
"stable-diffusion": "OVStableDiffusionPipeline",
117117
"stable-diffusion-xl": "OVStableDiffusionXLPipeline",
118+
"stable-diffusion-3": "OVStableDiffusion3Pipeline",
118119
"pix2struct": "OVModelForPix2Struct",
119120
"latent-consistency": "OVLatentConsistencyModelPipeline",
120121
"open_clip_text": "OVModelOpenCLIPText",

tests/openvino/test_diffusion.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_height_width_properties(self, model_arch: str):
316316

317317
self.assertFalse(ov_pipeline.is_dynamic)
318318
expected_batch = batch_size * num_images_per_prompt
319-
if ov_pipeline.unet is not None and "timestep_cond" not in {
319+
if ov_pipeline.unet is None or "timestep_cond" not in {
320320
inputs.get_any_name() for inputs in ov_pipeline.unet.model.inputs
321321
}:
322322
expected_batch *= 2
@@ -542,7 +542,7 @@ def test_height_width_properties(self, model_arch: str):
542542

543543
self.assertFalse(ov_pipeline.is_dynamic)
544544
expected_batch = batch_size * num_images_per_prompt
545-
if ov_pipeline.unet is not None and "timestep_cond" not in {
545+
if ov_pipeline.unet is None or "timestep_cond" not in {
546546
inputs.get_any_name() for inputs in ov_pipeline.unet.model.inputs
547547
}:
548548
expected_batch *= 2
@@ -770,7 +770,7 @@ def test_height_width_properties(self, model_arch: str):
770770

771771
self.assertFalse(ov_pipeline.is_dynamic)
772772
expected_batch = batch_size * num_images_per_prompt
773-
if ov_pipeline.unet is not None and "timestep_cond" not in {
773+
if ov_pipeline.unet is None or "timestep_cond" not in {
774774
inputs.get_any_name() for inputs in ov_pipeline.unet.model.inputs
775775
}:
776776
expected_batch *= 2

tests/openvino/test_exporters_cli.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
OVModelOpenCLIPText,
4141
OVModelOpenCLIPVisual,
4242
OVSentenceTransformer,
43+
OVStableDiffusion3Pipeline,
4344
OVStableDiffusionPipeline,
4445
OVStableDiffusionXLPipeline,
4546
)

tests/openvino/utils_tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"stable-diffusion-openvino": "hf-internal-testing/tiny-stable-diffusion-openvino",
119119
"stable-diffusion-xl": "echarlaix/tiny-random-stable-diffusion-xl",
120120
"stable-diffusion-xl-refiner": "echarlaix/tiny-random-stable-diffusion-xl-refiner",
121-
"stable-diffusion-3": "katuni4ka/tiny-random-stable-diffusion-3",
121+
"stable-diffusion-3": "yujiepan/stable-diffusion-3-tiny-random",
122122
"stablelm": "hf-internal-testing/tiny-random-StableLmForCausalLM",
123123
"starcoder2": "hf-internal-testing/tiny-random-Starcoder2ForCausalLM",
124124
"latent-consistency": "echarlaix/tiny-random-latent-consistency",

0 commit comments

Comments
 (0)