Skip to content

Commit 15fb54d

Browse files
committed
update
1 parent 2078475 commit 15fb54d

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

tests/modular_pipelines/flux/test_modular_pipeline_flux.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class TestFluxModularPipelineFast(ModularPipelineTesterMixin):
3737
pipeline_class = FluxModularPipeline
3838
pipeline_blocks_class = FluxAutoBlocks
39-
repo = "hf-internal-testing/tiny-flux-modular"
39+
pretrained_model_name_or_path = "hf-internal-testing/tiny-flux-modular"
4040

4141
params = frozenset(["prompt", "height", "width", "guidance_scale"])
4242
batch_params = frozenset(["prompt"])
@@ -62,7 +62,7 @@ def test_float16_inference(self):
6262
class TestFluxImg2ImgModularPipelineFast(ModularPipelineTesterMixin):
6363
pipeline_class = FluxModularPipeline
6464
pipeline_blocks_class = FluxAutoBlocks
65-
repo = "hf-internal-testing/tiny-flux-modular"
65+
pretrained_model_name_or_path = "hf-internal-testing/tiny-flux-modular"
6666

6767
params = frozenset(["prompt", "height", "width", "guidance_scale", "image"])
6868
batch_params = frozenset(["prompt", "image"])
@@ -128,7 +128,7 @@ def test_float16_inference(self):
128128
class TestFluxKontextModularPipelineFast(ModularPipelineTesterMixin):
129129
pipeline_class = FluxKontextModularPipeline
130130
pipeline_blocks_class = FluxKontextAutoBlocks
131-
repo = "hf-internal-testing/tiny-flux-kontext-pipe"
131+
pretrained_model_name_or_path = "hf-internal-testing/tiny-flux-kontext-pipe"
132132

133133
params = frozenset(["prompt", "height", "width", "guidance_scale", "image"])
134134
batch_params = frozenset(["prompt", "image"])

tests/modular_pipelines/qwen/test_modular_pipeline_qwenimage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
class TestQwenImageModularPipelineFast(ModularPipelineTesterMixin, ModularGuiderTesterMixin):
3333
pipeline_class = QwenImageModularPipeline
3434
pipeline_blocks_class = QwenImageAutoBlocks
35-
repo = "hf-internal-testing/tiny-qwenimage-modular"
35+
pretrained_model_name_or_path = "hf-internal-testing/tiny-qwenimage-modular"
3636

3737
params = frozenset(["prompt", "height", "width", "negative_prompt", "attention_kwargs", "image", "mask_image"])
3838
batch_params = frozenset(["prompt", "negative_prompt", "image", "mask_image"])
@@ -58,7 +58,7 @@ def test_inference_batch_single_identical(self):
5858
class TestQwenImageEditModularPipelineFast(ModularPipelineTesterMixin, ModularGuiderTesterMixin):
5959
pipeline_class = QwenImageEditModularPipeline
6060
pipeline_blocks_class = QwenImageEditAutoBlocks
61-
repo = "hf-internal-testing/tiny-qwenimage-edit-modular"
61+
pretrained_model_name_or_path = "hf-internal-testing/tiny-qwenimage-edit-modular"
6262

6363
params = frozenset(["prompt", "height", "width", "negative_prompt", "attention_kwargs", "image", "mask_image"])
6464
batch_params = frozenset(["prompt", "negative_prompt", "image", "mask_image"])
@@ -84,7 +84,7 @@ def test_guider_cfg(self):
8484
class TestQwenImageEditPlusModularPipelineFast(ModularPipelineTesterMixin, ModularGuiderTesterMixin):
8585
pipeline_class = QwenImageEditPlusModularPipeline
8686
pipeline_blocks_class = QwenImageEditPlusAutoBlocks
87-
repo = "hf-internal-testing/tiny-qwenimage-edit-plus-modular"
87+
pretrained_model_name_or_path = "hf-internal-testing/tiny-qwenimage-edit-plus-modular"
8888

8989
# No `mask_image` yet.
9090
params = frozenset(["prompt", "height", "width", "negative_prompt", "attention_kwargs", "image"])

tests/modular_pipelines/test_modular_pipelines_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def pipeline_class(self) -> Union[Callable, ModularPipeline]:
4545
@property
4646
def pretrained_model_name_or_path(self) -> str:
4747
raise NotImplementedError(
48-
"You need to set the attribute `repo` in the child test class. See existing pipeline tests for reference."
48+
"You need to set the attribute `pretrained_model_name_or_path` in the child test class. See existing pipeline tests for reference."
4949
)
5050

5151
@property

0 commit comments

Comments
 (0)