Skip to content

Commit

Permalink
dummies
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Oct 9, 2024
1 parent a61a5c0 commit 43dff36
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions optimum/onnxruntime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
"ORTStableDiffusionInpaintPipeline",
"ORTStableDiffusionXLPipeline",
"ORTStableDiffusionXLImg2ImgPipeline",
"ORTStableDiffusionXLInpaintPipeline",
"ORTLatentConsistencyModelPipeline",
"ORTLatentConsistencyModelImg2ImgPipeline",
"ORTPipelineForImage2Image",
"ORTPipelineForInpainting",
"ORTPipelineForText2Image",
Expand All @@ -92,6 +94,8 @@
"ORTStableDiffusionInpaintPipeline",
"ORTStableDiffusionXLPipeline",
"ORTStableDiffusionXLImg2ImgPipeline",
"ORTStableDiffusionXLInpaintPipeline",
"ORTLatentConsistencyModelImg2ImgPipeline",
"ORTLatentConsistencyModelPipeline",
"ORTPipelineForImage2Image",
"ORTPipelineForInpainting",
Expand Down Expand Up @@ -148,6 +152,7 @@
except OptionalDependencyNotAvailable:
from ..utils.dummy_diffusers_objects import (
ORTDiffusionPipeline,
ORTLatentConsistencyModelImg2ImgPipeline,
ORTLatentConsistencyModelPipeline,
ORTPipelineForImage2Image,
ORTPipelineForInpainting,
Expand All @@ -156,11 +161,13 @@
ORTStableDiffusionInpaintPipeline,
ORTStableDiffusionPipeline,
ORTStableDiffusionXLImg2ImgPipeline,
ORTStableDiffusionXLInpaintPipeline,
ORTStableDiffusionXLPipeline,
)
else:
from .modeling_diffusion import (
ORTDiffusionPipeline,
ORTLatentConsistencyModelImg2ImgPipeline,
ORTLatentConsistencyModelPipeline,
ORTPipelineForImage2Image,
ORTPipelineForInpainting,
Expand All @@ -169,6 +176,7 @@
ORTStableDiffusionInpaintPipeline,
ORTStableDiffusionPipeline,
ORTStableDiffusionXLImg2ImgPipeline,
ORTStableDiffusionXLInpaintPipeline,
ORTStableDiffusionXLPipeline,
)
else:
Expand Down
5 changes: 5 additions & 0 deletions tests/onnxruntime/utils_onnxruntime_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ class ORTModelTestMixin(unittest.TestCase):
"np": np.ndarray,
}

TASK = None

ORTMODEL_CLASS = None
AUTOMODEL_CLASS = None

@classmethod
def setUpClass(cls):
cls.onnx_model_dirs = {}
Expand Down

0 comments on commit 43dff36

Please sign in to comment.