lllyasviel / lllyasviel/stable-diffusion-webui-forge
clip error
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Sadly my SSD died and I had to reinstall forge. Now when I start the tool, it states that it can not install clip.
I downloaded this file: [Forge with CUDA 12.1 + Pytorch 2.3.1](https://github.com/lllyasviel/stable-diffusion-webui-forge/releases/download/latest/webui_forge_cu121_torch231.7z)
and unpacked it into a folder "forge" (like I did in the past) and ran update.bat then run.bat.
```cmd
Installing clip
Traceback (most recent call last):
File "G:\aitools\forge\webui\launch.py", line 54, in
main()
File "G:\aitools\forge\webui\launch.py", line 42, in main
prepare_environment()
File "G:\aitools\forge\webui\modules\launch_utils.py", line 443, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "G:\aitools\forge\webui\modules\launch_utils.py", line 153, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "G:\aitools\forge\webui\modules\launch_utils.py", line 125, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "G:\aitools\forge\system\python\python.exe" -m pip install https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip --prefer-binary
Error code: 2
stdout: Collecting https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip
Using cached https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip (4.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
```
My workaround is to uncomment the clip check in launch_utils.py
```python
# if not is_installed("clip"):
# run_pip(f"install {clip_package}", "clip")
# startup_timer.record("install clip")
# if not is_installed("open_clip"):
# run_pip(f"install {openclip_package}", "open_clip")
# startup_timer.record("install open_clip")
```
But this does not look right for me..
**System:**
intel 12900k cpu
nvidia 3080ti
Windows11
_dunno if this is even important :D_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in modules/launch_utils.py at prepare_environment() and the run_pip() call that installs clip, then compare the reported command with the bundled Python environment launched by launch.py and run.bat. Reproduce the failure on the listed Windows setup if possible; done means a fresh installation handles the clip dependency without manually commenting out the checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100