From 4b238731a0fdaed851afc8e3f64379192b830202 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 16 Sep 2024 10:59:51 +0200 Subject: [PATCH] vault backup: 2024-09-16 10:59:50 Affected files: .obsidian/workspace.json ComfyUI.md --- .obsidian/workspace.json | 26 +++++++++++----- ComfyUI.md | 67 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 7 deletions(-) create mode 100644 ComfyUI.md diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 9ba38cd..11d005b 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -138,9 +138,21 @@ "source": false } } + }, + { + "id": "2a4d0c3c49688a62", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "ComfyUI.md", + "mode": "source", + "source": false + } + } } ], - "currentTab": 10 + "currentTab": 11 } ], "direction": "vertical" @@ -206,7 +218,7 @@ "state": { "type": "backlink", "state": { - "file": "Untitled 2.md", + "file": "ComfyUI.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -223,7 +235,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "Untitled 2.md", + "file": "ComfyUI.md", "linksCollapsed": false, "unlinkedCollapsed": true } @@ -246,7 +258,7 @@ "state": { "type": "outline", "state": { - "file": "Untitled 2.md" + "file": "ComfyUI.md" } } }, @@ -289,12 +301,13 @@ "copilot:Copilot Chat": false } }, - "active": "ff72156437e12b62", + "active": "2a4d0c3c49688a62", "lastOpenFiles": [ + "ComfyUI.md", + "Untitled 2.md", "Untitled 3.md", "Untitled 1.md", "nocoDB.md", - "Untitled 2.md", "Alpine - How to....md", "Alpine.js DOCS.md", "Python FastAPI.md", @@ -316,7 +329,6 @@ "Debian.md", "GNU-Linux.md", "Linux.md", - "Rust.md", "Untitled", "Taylor Swift", "GNU" diff --git a/ComfyUI.md b/ComfyUI.md new file mode 100644 index 0000000..e03b01d --- /dev/null +++ b/ComfyUI.md @@ -0,0 +1,67 @@ + + +## Manual Install on Linux with NVIDIA GPU + +#### Clone the repo + +``` +git clone git@github.com:comfyanonymous/ComfyUI.git +``` + +#### Install dependencies + +Make sure you have cuda12+ installed. + +Follow instruction on [NVIDIA's website](https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Debian&target_version=11&target_type=deb_local) + +``` +wget https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda-repo-debian11-12-6-local_12.6.1-560.35.03-1_amd64.deb +``` + +``` +sudo dpkg -i cuda-repo-debian11-12-6-local_12.6.1-560.35.03-1_amd64.deb +``` + +``` +sudo cp /var/cuda-repo-debian11-12-6-local/cuda-*-keyring.gpg /usr/share/keyrings/ +``` + +``` +sudo add-apt-repository contrib +``` + +``` +sudo apt-get update +``` + +``` +sudo apt-get -y install cuda-toolkit-12-6 +``` + +And install the driver + +``` +sudo apt-get install -y cuda-drivers +``` + + +[Install Miniconda](https://docs.anaconda.com/free/miniconda/index.html#latest-miniconda-installer-links). This will help you install the correct versions of Python and other libraries needed by ComfyUI. + +Create an environment with Conda. + +``` +conda create -n comfyenv +``` + +And activate it + +``` +conda activate comfyenv +``` + +Install python dependencies + +``` +conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia +``` +