TencentARC / BrushNet

[ECCV 2024] The official implementation of paper "BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion"
https://tencentarc.github.io/BrushNet/
Other
1.36k stars 114 forks source link

Try to install brushnet into my local PC, but met with clip installation problem #32

Open fatdennis opened 4 months ago

fatdennis commented 4 months ago

Just following the instruction here to install it step by step. During the pip install -r requirements.txt. It stopped when installing clip, and then the following issue appeared:

(brushnet) PS D:\brushnet\examples\brushnet> pip install -r requirements.txt Requirement already satisfied: torchvision in c:\users\dennis.conda\envs\brushnet\lib\site-packages (from -r requirements.txt (line 1)) (0.18.0+cu121) Collecting transformers>=4.25.1 (from -r requirements.txt (line 2)) Using cached transformers-4.40.2-py3-none-any.whl.metadata (137 kB) Collecting ftfy (from -r requirements.txt (line 3)) Using cached ftfy-6.2.0-py3-none-any.whl.metadata (7.3 kB) Collecting tensorboard (from -r requirements.txt (line 4)) Using cached tensorboard-2.16.2-py3-none-any.whl.metadata (1.6 kB) Collecting datasets (from -r requirements.txt (line 5)) Using cached datasets-2.19.1-py3-none-any.whl.metadata (19 kB) Collecting Pillow==9.5.0 (from -r requirements.txt (line 6)) Using cached Pillow-9.5.0-cp310-cp310-win_amd64.whl.metadata (9.7 kB) Collecting opencv-python (from -r requirements.txt (line 7)) Using cached opencv_python-4.9.0.80-cp37-abi3-win_amd64.whl.metadata (20 kB) Collecting imgaug (from -r requirements.txt (line 8)) Using cached imgaug-0.4.0-py2.py3-none-any.whl.metadata (1.8 kB) Collecting accelerate==0.20.3 (from -r requirements.txt (line 9)) Using cached accelerate-0.20.3-py3-none-any.whl.metadata (17 kB) Collecting image-reward (from -r requirements.txt (line 10)) Using cached image_reward-1.5-py3-none-any.whl.metadata (12 kB) Collecting hpsv2 (from -r requirements.txt (line 11)) Using cached hpsv2-1.2.0-py3-none-any.whl.metadata (17 kB) Collecting torchmetrics (from -r requirements.txt (line 12)) Using cached torchmetrics-1.4.0.post0-py3-none-any.whl.metadata (19 kB) Collecting open-clip-torch (from -r requirements.txt (line 13)) Using cached open_clip_torch-2.24.0-py3-none-any.whl.metadata (30 kB) Collecting gradio==3.50.0 (from -r requirements.txt (line 14)) Using cached gradio-3.50.0-py3-none-any.whl.metadata (17 kB) Collecting segment_anything (from -r requirements.txt (line 15)) Using cached segment_anything-1.0-py3-none-any.whl.metadata (487 bytes) Collecting clip (from -r requirements.txt (line 17)) Using cached clip-0.2.0.tar.gz (5.5 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\Dennis\AppData\Local\Temp\pip-install-d5yr6j82\clip_379ab9db544e420aa4978ca9d021dd6e\setup.py", line 29, in long_description=open('README.rst').read() + '\n\n' + UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 1428: illegal multibyte sequence [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details..

What can I do next step? Thank you.