Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation working #23

Open
tranquan687 opened this issue Mar 25, 2024 · 3 comments
Open

installation working #23

tranquan687 opened this issue Mar 25, 2024 · 3 comments

Comments

@tranquan687
Copy link

# Clone the Repository
git clone https://github.com/zhuang2002/PowerPaint.git

# Navigate to the Repository
cd projects/powerpaint

# Create Virtual Environment with Conda
conda create --name PowerPaint python=3.9
conda activate PowerPaint
conda install cuda -c nvidia
python -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
python -m pip install mmcv==2.0.0 -f https://download.openmmlab.com/mmcv/dist/cu117/torch1.13/index.html
python -m pip install mmengine==0.8.5
python -m pip install mmagic==1.1.0
python -m pip install gradio==3.41.0
python -m pip uninstall transformers -y  
python -m pip install transformers==4.25.1 # or 4.27.4 ( i didn't check)
  1. edit requirments.txt
diffusers==0.23.1
opencv-python
gradio==3.41.0
# torch
# torchvision
controlnet-aux==0.0.3
#transformers==4.28.0
# mmengine==0.8.5
# mmagic==1.1.0
  1. edit line 38, 47 in gradio_PowerPaint.py
load_model(pipe.text_encoder, "./models/text_encoder/text_encoder.safetensors") #line 38

hed = HEDdetector.from_pretrained('lllyasviel/Annotators') # line 47
pip install -r requirements.txt
@danielscos
Copy link

i get this error: Traceback (most recent call last):
File "C:\Users\danie\PowerPaint\gradio_PowerPaint_BrushNet.py", line 13, in
from pipeline.pipeline_PowerPaint_Brushnet_CA import StableDiffusionPowerPaintBrushNetPipeline
File "C:\Users\danie\PowerPaint\pipeline\pipeline_PowerPaint_Brushnet_CA.py", line 15, in
from diffusers.loaders import FromSingleFileMixin, IPAdapterMixin, LoraLoaderMixin, TextualInversionLoaderMixin
ImportError: cannot import name 'IPAdapterMixin' from 'diffusers.loaders' (C:\Users\danie\anaconda3\envs\PowerPaint\lib\site-packages\diffusers\loaders.py)

i did all your steps, im losing my mind i have no idea what to do ive been trying to run powerpaint for like 2 weeks no matter what i do it doesnt work bro

@tranquan687
Copy link
Author

i get this error: Traceback (most recent call last): File "C:\Users\danie\PowerPaint\gradio_PowerPaint_BrushNet.py", line 13, in from pipeline.pipeline_PowerPaint_Brushnet_CA import StableDiffusionPowerPaintBrushNetPipeline File "C:\Users\danie\PowerPaint\pipeline\pipeline_PowerPaint_Brushnet_CA.py", line 15, in from diffusers.loaders import FromSingleFileMixin, IPAdapterMixin, LoraLoaderMixin, and TextualInversionLoaderMixin ImportError: cannot import name 'IPAdapterMixin' from 'diffusers.loaders' (C:\Users\danie\anaconda3\envs\PowerPaint\lib\site-packages\diffusers\loaders.py)

i did all your steps, im losing my mind i have no idea what to do ive been trying to run powerpaint for like 2 weeks no matter what i do it doesnt work bro

which Powerpaint version you installed? i just check the authors've updated version 2. Maybe my instruction isn't compatible anymore.
About the error, the error says that Class 'IPAdapterMixin' isn't in loaders.py, please try to check the file detail and see what've changed.

@danielscos
Copy link

i get this error: Traceback (most recent call last): File "C:\Users\danie\PowerPaint\gradio_PowerPaint_BrushNet.py", line 13, in from pipeline.pipeline_PowerPaint_Brushnet_CA import StableDiffusionPowerPaintBrushNetPipeline File "C:\Users\danie\PowerPaint\pipeline\pipeline_PowerPaint_Brushnet_CA.py", line 15, in from diffusers.loaders import FromSingleFileMixin, IPAdapterMixin, LoraLoaderMixin, and TextualInversionLoaderMixin ImportError: cannot import name 'IPAdapterMixin' from 'diffusers.loaders' (C:\Users\danie\anaconda3\envs\PowerPaint\lib\site-packages\diffusers\loaders.py)

i did all your steps, im losing my mind i have no idea what to do ive been trying to run powerpaint for like 2 weeks no matter what i do it doesnt work bro

which Powerpaint version you installed? i just check the authors've updated version 2. Maybe my instruction isn't compatible anymore.
About the error, the error says that Class 'IPAdapterMixin' isn't in loaders.py, please try to check the file detail and see what've changed.

Yea I guess your right, it's probably not compatible anymore.
Did you try to run the V2 powerpaint? It never worked for me in the end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants