Skip to content

Commit

Permalink
fix(api): update deprecated import from diffusers
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 23, 2023
1 parent f00bfe9 commit 3ffb30f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/onnx_web/diffusers/pipelines/panorama_xl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from optimum.pipelines.diffusers.pipeline_stable_diffusion_xl_img2img import (
StableDiffusionXLImg2ImgPipelineMixin,
)
from optimum.pipelines.diffusers.pipeline_utils import preprocess, rescale_noise_cfg
from optimum.pipelines.diffusers.pipeline_utils import rescale_noise_cfg
from diffusers.image_processor import VaeImageProcessor

from onnx_web.chain.tile import make_tile_mask

Expand Down Expand Up @@ -728,7 +729,8 @@ def img2img(
)

# 3. Preprocess image
image = preprocess(image)
processor = VaeImageProcessor()
image = processor.preprocess(image)

# 4. Prepare timesteps
self.scheduler.set_timesteps(num_inference_steps)
Expand Down

0 comments on commit 3ffb30f

Please sign in to comment.