You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-54Lines changed: 46 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
### Note: this project is still a WIP and not been released into ComFyUI package database yet
13
13
14
14
## Currently support:
15
-
- For use case please check [Example Workflows](./_Example_Workflows/). [**Last update: 09/02/2024**]
15
+
- For use case please check [Example Workflows](./_Example_Workflows/). [**Last update: 11/02/2024**]
16
16
-**Note:** you need to put [Example Inputs Files & Folders](_Example_Workflows/_Example_Inputs_Files/) under ComfyUI Root Directory\ComfyUI\input folder before you can run the example workflow
**[IMPORTANT!!!]** <br> Currently this package is only been tested in following setups:
95
-
- Windows 10/11
96
-
- Miniconda/Conda Python 3.11.7
95
+
- Windows 10/11 (Tested on my laptop) & Ubuntu 23.10 [(Tested by @watsieboi)](https://github.com/MrForExample/ComfyUI-3D-Pack/issues/16)
96
+
- Miniconda/Conda Python 3.11.x
97
97
- I tried install this package with ComfyUI embed python env first, but I can't find a way to build CUDA related libraries, e.g. diff-gaussian-rasterization, nvdiffrast, simple-knn.
98
-
- Torch version: 2.1.2+cu121/V.2.1.2+cu118
98
+
- Torch version >= 2.1.2+cu121
99
99
100
100
<br>
101
101
102
102
Assume you have already downloaded [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
103
103
104
+
### Setup Method 0: Using Miniconda (Recommend! Should works in both Windows & Linux)
105
+
104
106
First download [Miniconda](https://docs.conda.io/projects/miniconda/en/latest/) (*One of the best way to manage a clean and separated python envirments*)
105
-
- Alternatively you can check this tutorial: [Installing ComfyUI with Miniconda On Windows and Mac](https://www.comflowy.com/preparation-for-study/install#step-two-download-comfyui)
107
+
108
+
Then running following commands to setup the Miniconda environment for ComfyUI:
106
109
107
110
```bash
108
111
# Go to your Your ComfyUI root directory, for my example:
# You can using following command to installing CUDA only in the miniconda environment you just created if you don't want to donwload and install it manually & globally:
# Then go to ComfyUI-3D-Pack directory under the ComfyUI Root Directory\ComfyUI\custom_nodes for my example is:
122
131
cd C:\Users\reall\Softwares\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack
123
-
# Finally you can double click following .bat script or run it in CLI:
124
-
install.bat
125
132
```
126
133
127
-
-***Install Plan B:***
134
+
- Alternatively you can check this tutorial: [Installing ComfyUI with Miniconda On Windows and Mac](https://www.comflowy.com/preparation-for-study/install#step-two-download-comfyui)
128
135
129
-
Just in case `install.bat` may not working in your PC, you could also run the following commands under this package's root directory:
136
+
### Setup Method 1: Using Chocolatey (Windows Only!)
130
137
131
-
```bash
132
-
# First make sure the Conda env: python_miniconda_env\ComfyUI is activated, then go to ComfyUI Root Directory\ComfyUI\custom_nodes\ComfyUI-3D-Pack and:
If you have already installed ComfyUI on Windows with embed python environment and you don't want to switch to Miniconda/Conda and reinstall all your packages <br>
139
+
*(Which is ideal, but unfortunately so far it seems I'm not experienced enough in this matter, but I'll continue to looking for the better solutions and please give me some suggestions if you know better, thanks :)*
According to [@doctorpangloss](https://github.com/MrForExample/ComfyUI-3D-Pack/issues/5), you can setup the c++/cuda build environments in windows by using [chocolatey](https://chocolatey.org/) with following command:
144
142
145
-
# Install pointnet2_ops
146
-
cd tgs/models/snowflake/pointnet2_ops_lib && python setup.py install &&cd ../../../../
143
+
```bash
144
+
# using git bash for the sake of simplicity
145
+
# enable developer mode
146
+
# google this: allow os.symlink on windows by adding your username to the local security policy entry for it.
147
+
# you will have to restart your computer
148
+
# install chocolatey using powershell, then install the prereqs for compilation on Windows
Just in case `install_miniconda.bat` may not working in your OS, you could also run the following commands under the same directory: (Works with Linux & macOS)
- ***Install with ComfyUI's embed python env on Windows:***
166
+
pip install -r requirements_post.txt
167
+
```
168
+
<br>
159
169
160
-
If you have already installed ComfyUI on Windows with embed python environment and you don't want to switch to Miniconda/Conda and reinstall all your packages <br>
161
-
*(Which is ideal, but unfortunately so far it seems I'm not experienced enough in this matter, but I'll continue to looking for the better solutions and please give me some suggestions if ou know better, thanks :)*
162
-
163
-
According to [@doctorpangloss](https://github.com/MrForExample/ComfyUI-3D-Pack/issues/5), you can setup the c++/cuda build environments in windows by using [chocolatey](https://chocolatey.org/) with following command:
164
-
```bash
165
-
# using git bash for the sake of simplicity
166
-
# enable developer mode
167
-
# google this: allow os.symlink on windows by adding your username to the local security policy entry for it.
168
-
# you will have to restart your computer
169
-
# install chocolatey using powershell, then install the prereqs for compilation on Windows
# I couldn't find cuda version 12.1, you may need to install cudav12.1 manually
173
-
choco install -y cuda
174
-
```
175
-
Then just go to ComfyUI-3D-Pack directory under the ComfyUI Root Directory\ComfyUI\custom_nodes and running:
176
-
```bash
177
-
pip install -r ./ComfyUI/requirements.txt
178
-
179
-
install.bat
180
-
```
170
+
**Plus:**<br>
171
+
For those who want to run it inside Google Colab, you can check the [install instruction from @lovisdotio](https://github.com/MrForExample/ComfyUI-3D-Pack/issues/13)
181
172
182
173
## Run:
183
174
Copy the files inside folder [__New_ComfyUI_Bats](./_New_ComfyUI_Bats/) to your ComfyUI root directory, and double click run_nvidia_gpu_miniconda.bat to start ComfyUI!
184
-
- Alternatively you can just activate the Conda env: python_miniconda_env\ComfyUI, and go to your ComfyUI root directory then run command`python ./ComfyUI/main.py`
175
+
- Alternatively you can just activate the Conda env: `python_miniconda_env\ComfyUI`, and go to your ComfyUI root directory then run command `python ./ComfyUI/main.py`
185
176
186
177
## Tips
187
178
* The world & camera coordinate system is the same as OpenGL:
@@ -202,3 +193,4 @@ azimuth: in (-180, 180), from +z to +x is (0, 90)
202
193
```
203
194
204
195
* If you encounter OpenGL errors (e.g., `[F glutil.cpp:338] eglInitialize() failed`), then set `force_cuda_rasterize` to true on corresponding node
196
+
* If after the installation, your ComfyUI get stucked at starting or running, you could following the instruction in following link to solve the problem: [Code Hangs Indefinitely When Evaluating Neuron Models on GPU](https://github.com/lava-nc/lava-dl/discussions/211)
0 commit comments