diff --git a/README.md b/README.md index ab1fae807..f9d680820 100644 --- a/README.md +++ b/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 diff --git a/comfy/cmd/server.py b/comfy/cmd/server.py index a8621e950..d2a21c43e 100644 --- a/comfy/cmd/server.py +++ b/comfy/cmd/server.py @@ -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 diff --git a/setup.py b/setup.py index 0704f1d7d..3d12f6a47 100644 --- a/setup.py +++ b/setup.py @@ -213,6 +213,7 @@ setup( tests_require=dev_dependencies, extras_require={ 'withtorch': dependencies(install_torch_for_system=True), + 'withtorchnightly': dependencies(install_torch_for_system=True, force_nightly=True), 'dev': dev_dependencies }, )