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
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,18 @@ It has the following use cases:
48
48
49
49
## Installation
50
50
### With ComfyUI
51
-
Install [ComfyUI](https://github.com/comfyanonymous/ComfyUI#installing) first. And then run the following commands:
51
+
Install ComfyUI first, see [Installing](https://github.com/comfyanonymous/ComfyUI#installing) or use [Comfy-Cli](https://github.com/Comfy-Org/comfy-cli) to install:
52
+
```sh
53
+
python -m pip install comfy-cli
54
+
comfy --here install
55
+
```
56
+
And then run the following commands to install ComfyScript:
(If you see `ERROR: File "setup.py" or "setup.cfg" not found`, run `python -m pip install -U pip` first.)
59
63
60
64
Update:
61
65
```sh
@@ -64,6 +68,8 @@ git pull
64
68
python -m pip install -e ".[default]"
65
69
```
66
70
71
+
`[default]` is necessary to install common dependencies. See [`pyproject.toml`](pyproject.toml) for other options. If no option is specified, ComfyScript will be installed without any dependencies.
`[default]` is necessary to install common dependencies. See [`pyproject.toml`](pyproject.toml) for other options. If no option is specified, `comfy-script` will be installed without any dependencies.
87
-
88
92
If there are problems with the latest ComfyUI package, one can use the last tested version:
-[Modal](examples/modal.py) by @the-dream-machine (ComfyUI + Comfy-Cli)
99
+
93
100
### Others
94
101
See [troubleshooting](docs/README.md#troubleshooting) if you encountered any problems. To use ComfyScript without installed ComfyUI, see [only ComfyScript package](docs/README.md#only-comfyscript-package) for details. To uninstall, see [uninstallation](docs/README.md#uninstallation).
95
102
@@ -164,7 +171,7 @@ with Workflow():
164
171
SaveImage(image, 'ComfyUI')
165
172
```
166
173
167
-
A Jupyter Notebook example is available at [`examples/runtime.ipynb`](examples/runtime.ipynb). (Files under `examples` directory will be ignored by Git and you can put your personal notebooks there.)
174
+
A Jupyter Notebook example is available at [`examples/runtime.ipynb`](examples/runtime.ipynb).
168
175
169
176
-[Type stubs](https://typing.readthedocs.io/en/latest/source/stubs.html) will be generated at `comfy_script/runtime/nodes.pyi` after loading. Mainstream code editors (e.g. [VS Code](https://code.visualstudio.com/docs/languages/python)) can use them to help with coding:
An example script for setting up and running ComfyUI and ComfyScript with Modal.
3
+
4
+
Be careful if you want to replace the official ComfyUI with the comfyui package, Modal does not work well with it: https://github.com/Chaoses-Ib/ComfyScript/issues/69
5
+
6
+
Author: @the-dream-machine
7
+
'''
8
+
9
+
importsubprocess
10
+
importmodal
11
+
12
+
image= (
13
+
modal.Image.debian_slim(python_version="3.12.5")
14
+
.apt_install("git")
15
+
.pip_install("comfy-cli==1.1.6")
16
+
# use comfy-cli to install the ComfyUI repo and its dependencies
0 commit comments