Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JingyaHuang committed Oct 9, 2024
1 parent c07a68e commit 8d41e5a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions optimum/neuron/modeling_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@
StableDiffusionXLInpaintPipeline,
StableDiffusionXLPipeline,
)
from diffusers.configuration_utils import ConfigMixin, FrozenDict
from diffusers.configuration_utils import FrozenDict
from diffusers.image_processor import VaeImageProcessor
from diffusers.models.autoencoders.vae import DecoderOutput, DiagonalGaussianDistribution
from diffusers.models.controlnet import ControlNetOutput
from diffusers.models.modeling_outputs import AutoencoderKLOutput
from diffusers.pipelines.controlnet import MultiControlNetModel
from diffusers.pipelines.pipeline_utils import DiffusionPipeline
from diffusers.schedulers import SchedulerMixin
from diffusers.schedulers.scheduling_utils import SCHEDULER_CONFIG_NAME
from diffusers.utils import CONFIG_NAME
Expand All @@ -112,8 +113,8 @@
logger = logging.getLogger(__name__)


class NeuronDiffusionPipelineBase(NeuronTracedModel, ConfigMixin):
auto_model_class = StableDiffusionPipeline
class NeuronDiffusionPipelineBase(NeuronTracedModel):
auto_model_class = DiffusionPipeline
task = None
library_name = "diffusers"
base_model_prefix = "neuron_model"
Expand Down

0 comments on commit 8d41e5a

Please sign in to comment.