mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-23 21:00:16 +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
|
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:
|
**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
|
```shell
|
||||||
# You will need wheel, which isn't included in Python 3.11 or later
|
# You will need wheel, which isn't included in Python 3.11 or later
|
||||||
pip install wheel
|
pip install wheel
|
||||||
pip install --no-build-isolation comfyui@git+https://github.com/hiddenswitch/ComfyUI.git
|
pip install --no-build-isolation comfyui@git+https://github.com/hiddenswitch/ComfyUI.git
|
||||||
```
|
```
|
||||||
This will use your pre-installed torch.
|
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:
|
4. Create the directories you can fill with checkpoints:
|
||||||
```shell
|
```shell
|
||||||
comfyui --create-directories
|
comfyui --create-directories
|
||||||
|
|||||||
@ -64,19 +64,7 @@ async def send_socket_catch_exception(function, message):
|
|||||||
|
|
||||||
|
|
||||||
def get_comfyui_version():
|
def get_comfyui_version():
|
||||||
comfyui_version = "unknown"
|
return "0.2.3"
|
||||||
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()
|
|
||||||
|
|
||||||
|
|
||||||
@web.middleware
|
@web.middleware
|
||||||
|
|||||||
1
setup.py
1
setup.py
@ -213,6 +213,7 @@ setup(
|
|||||||
tests_require=dev_dependencies,
|
tests_require=dev_dependencies,
|
||||||
extras_require={
|
extras_require={
|
||||||
'withtorch': dependencies(install_torch_for_system=True),
|
'withtorch': dependencies(install_torch_for_system=True),
|
||||||
|
'withtorchnightly': dependencies(install_torch_for_system=True, force_nightly=True),
|
||||||
'dev': dev_dependencies
|
'dev': dev_dependencies
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user