Problem loading model

#3
by DeimosApollon - opened

I followed the installation instructions, but when i tried to run example code, i got the following error: "ImportError: cannot import name 'FromOriginalControlNetMixin' from 'diffusers.loaders' (/home/deimos/Documents/AIProductHack/.venv/lib/python3.11/site-packages/diffusers/loaders/init.py)"

I would be grateful if you could help with this question🙏

Environment:
accelerate==0.30.1
asttokens==2.4.1
certifi==2024.6.2
charset-normalizer==3.3.2
comm==0.2.2
debugpy==1.8.1
decorator==5.1.1
diffusers==0.28.2
executing==2.0.1
filelock==3.14.0
fsspec==2024.6.0
huggingface-hub==0.23.3
idna==3.7
imageio==2.34.1
importlib_metadata==7.1.0
ipykernel==6.29.4
ipython==8.25.0
jedi==0.19.1
Jinja2==3.1.4
jupyter_client==8.6.2
jupyter_core==5.7.2
lazy_loader==0.4
MarkupSafe==2.1.5
matplotlib-inline==0.1.7
mpmath==1.3.0
nest-asyncio==1.6.0
networkx==3.3
numpy==1.26.4
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.5.40
nvidia-nvtx-cu12==12.1.105
packaging==24.0
parso==0.8.4
pexpect==4.9.0
pillow==10.3.0
platformdirs==4.2.2
prompt_toolkit==3.0.46
psutil==5.9.8
ptyprocess==0.7.0
pure-eval==0.2.2
Pygments==2.18.0
python-dateutil==2.9.0.post0
PyYAML==6.0.1
pyzmq==26.0.3
regex==2024.5.15
requests==2.32.3
safetensors==0.4.3
scikit-image==0.23.2
scipy==1.13.1
six==1.16.0
stack-data==0.6.3
sympy==1.12.1
tifffile==2024.5.22
tokenizers==0.19.1
torch==2.3.0
torchvision==0.18.0
tornado==6.4
tqdm==4.66.4
traitlets==5.14.3
transformers==4.41.2
triton==2.3.0
typing==3.7.4.3
typing_extensions==4.12.1
urllib3==2.2.1
wcwidth==0.2.13
zipp==3.19.2

Seems like downgrading to diffusers==0.26.2 helped
UPD: Yes, after getting access to Bria-2.3, i confirm that downgrading diffusers helped.

Seems like downgrading to diffusers==0.26.2 helped


it not work for me, mabay diffusers is not work on apple m Series

===== Application Startup at 2024-06-11 01:51:01 =====

The cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.


0it [00:00, ?it/s]
0it [00:00, ?it/s]
Traceback (most recent call last):
  File "/home/user/app/app.py", line 9, in <module>
    from replace_bg.model.pipeline_controlnet_sd_xl import StableDiffusionXLControlNetPipeline
  File "/home/user/app/replace_bg/model/pipeline_controlnet_sd_xl.py", line 41, in <module>
    from .controlnet import ControlNetModel
  File "/home/user/app/replace_bg/model/controlnet.py", line 22, in <module>
    from diffusers.loaders import FromOriginalControlNetMixin
ImportError: cannot import name 'FromOriginalControlNetMixin' from 'diffusers.loaders' (/usr/local/lib/python3.10/site-packages/diffusers/loaders/__init__.py)

When I copy this space to my personal space, I get the same error.

image.png

Hi @DeimosApollon can you please let me know - How did you get the access to Bria-2.3 model?

Hi @satya7 , you need to visit page https://huggingface.co/briaai/BRIA-2.3 and fill the form for access request below the "Model card" element. Also, check your email, model's authors may contact you

image.png

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment