mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
Improve installation instructions with non-deprecated messaging. 0.2.3 is now directly written as the server version.
This commit is contained in:
parent
23537df3e8
commit
b0d606a282
15
README.md
15
README.md
@ -136,12 +136,15 @@ When using Windows, open the **Windows Powershell** app. Then observe you are at
|
||||
pip install torchaudio==2.4.1+cu121 --index-url https://download.pytorch.org/whl/cu121
|
||||
```
|
||||
**Advanced**: If you are running in Google Collab or another environment which has already installed `torch` for you; or, if you are an application developer:
|
||||
```shell
|
||||
# You will need wheel, which isn't included in Python 3.11 or later
|
||||
pip install wheel
|
||||
pip install --no-build-isolation comfyui@git+https://github.com/hiddenswitch/ComfyUI.git
|
||||
```
|
||||
This will use your pre-installed torch.
|
||||
```shell
|
||||
# You will need wheel, which isn't included in Python 3.11 or later
|
||||
pip install wheel
|
||||
pip install --no-build-isolation comfyui@git+https://github.com/hiddenswitch/ComfyUI.git
|
||||
```
|
||||
This will use your pre-installed torch. This is also the appropriate dependency for packages, and is the one published to `pypi`. To automatically install with `torch` nightlies, use:
|
||||
```shell
|
||||
pip install comfyui[withtorchnightlies]@git+https://github.com/hiddenswitch/ComfyUI.git
|
||||
```
|
||||
4. Create the directories you can fill with checkpoints:
|
||||
```shell
|
||||
comfyui --create-directories
|
||||
|
||||
@ -64,19 +64,7 @@ async def send_socket_catch_exception(function, message):
|
||||
|
||||
|
||||
def get_comfyui_version():
|
||||
comfyui_version = "unknown"
|
||||
repo_path = os.path.dirname(os.path.realpath(__file__))
|
||||
try:
|
||||
import pygit2 # pylint: disable=import-error
|
||||
repo = pygit2.Repository(repo_path)
|
||||
comfyui_version = repo.describe(describe_strategy=pygit2.GIT_DESCRIBE_TAGS)
|
||||
except Exception:
|
||||
try:
|
||||
import subprocess
|
||||
comfyui_version = subprocess.check_output(["git", "describe", "--tags"], cwd=repo_path).decode('utf-8')
|
||||
except Exception as e:
|
||||
logging.warning(f"Failed to get ComfyUI version: {e}")
|
||||
return comfyui_version.strip()
|
||||
return "0.2.3"
|
||||
|
||||
|
||||
@web.middleware
|
||||
|
||||
Loading…
Reference in New Issue
Block a user