Skip to content

Commit

Permalink
why wouldn't this be fine?
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Aug 1, 2023
1 parent 26c7549 commit b52ac54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/source/onnxruntime/package_reference/modeling_ort.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ The following ORT classes are available for the following custom tasks.
#### ORTStableDiffusionPipeline

[[autodoc]] onnxruntime.ORTStableDiffusionPipeline
- __call__

#### ORTStableDiffusionImg2ImgPipeline

Expand All @@ -129,4 +130,4 @@ The following ORT classes are available for the following custom tasks.

#### ORTStableDiffusionXLImg2ImgPipeline

[[autodoc]] onnxruntime.ORTStableDiffusionXLImg2ImgPipeline
[[autodoc]] onnxruntime.ORTStableDiffusionXLImg2ImgPipeline
5 changes: 2 additions & 3 deletions optimum/onnxruntime/modeling_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,8 @@ def forward(self, sample: np.ndarray):
return outputs


class ORTStableDiffusionPipeline(ORTStableDiffusionPipelineBase, StableDiffusionPipelineMixin):
def __call__(self, *args, **kwargs):
return StableDiffusionPipelineMixin.__call__(self, *args, **kwargs)
class ORTStableDiffusionPipeline(StableDiffusionPipelineMixin, ORTStableDiffusionPipelineBase):
pass


class ORTStableDiffusionImg2ImgPipeline(ORTStableDiffusionPipelineBase, StableDiffusionImg2ImgPipelineMixin):
Expand Down

0 comments on commit b52ac54

Please sign in to comment.