Skip to content

ModuleNotFoundError: No module named 'diffusers.models.unet_2d_condition' #31

@lousiming

Description

@lousiming

ModuleNotFoundError Traceback (most recent call last)
Cell In[2], line 3
1 import torch
----> 3 from distrifuser.pipelines import DistriSDXLPipeline
4 from distrifuser.utils import DistriConfig
6 distri_config = DistriConfig(height=1024, width=1024, warmup_steps=4)

File ~/miniconda3/envs/by/lib/python3.10/site-packages/distrifuser/pipelines.py:4
1 import torch
2 from diffusers import StableDiffusionPipeline, StableDiffusionXLPipeline, UNet2DConditionModel
----> 4 from .models.distri_sdxl_unet_pp import DistriUNetPP
5 from .models.distri_sdxl_unet_tp import DistriUNetTP
6 from .models.naive_patch_sdxl import NaivePatchUNet

File ~/miniconda3/envs/by/lib/python3.10/site-packages/distrifuser/models/distri_sdxl_unet_pp.py:4
2 from diffusers import UNet2DConditionModel
3 from diffusers.models.attention_processor import Attention
----> 4 from diffusers.models.unet_2d_condition import UNet2DConditionOutput
5 from torch import distributed as dist, nn
7 from .base_model import BaseModel

ModuleNotFoundError: No module named 'diffusers.models.unet_2d_condition'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions