jetson-examples 0.1.8__py3-none-any.whl → 0.1.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jetson_examples-0.1.8.dist-info → jetson_examples-0.1.9.dist-info}/LICENSE +21 -21
- {jetson_examples-0.1.8.dist-info → jetson_examples-0.1.9.dist-info}/METADATA +1 -1
- jetson_examples-0.1.9.dist-info/RECORD +109 -0
- reComputer/__init__.py +1 -1
- reComputer/main.py +60 -60
- reComputer/scripts/MoveNet-Lightning/clean.sh +8 -8
- reComputer/scripts/MoveNet-Lightning/getVersion.sh +59 -59
- reComputer/scripts/MoveNet-Lightning/init.sh +6 -6
- reComputer/scripts/MoveNet-Lightning/readme.md +30 -30
- reComputer/scripts/MoveNet-Lightning/run.sh +19 -19
- reComputer/scripts/MoveNet-Thunder/clean.sh +7 -7
- reComputer/scripts/MoveNet-Thunder/getVersion.sh +59 -59
- reComputer/scripts/MoveNet-Thunder/init.sh +6 -6
- reComputer/scripts/MoveNet-Thunder/readme.md +31 -31
- reComputer/scripts/MoveNet-Thunder/run.sh +18 -18
- reComputer/scripts/MoveNetJS/clean.sh +4 -4
- reComputer/scripts/MoveNetJS/readme.md +56 -56
- reComputer/scripts/MoveNetJS/run.sh +13 -13
- reComputer/scripts/Sheared-LLaMA-2.7B-ShareGPT/init.sh +16 -16
- reComputer/scripts/Sheared-LLaMA-2.7B-ShareGPT/run.sh +8 -8
- reComputer/scripts/audiocraft/README.md +35 -35
- reComputer/scripts/audiocraft/clean.sh +5 -5
- reComputer/scripts/audiocraft/init.sh +16 -16
- reComputer/scripts/audiocraft/run.sh +7 -7
- reComputer/scripts/check.sh +4 -4
- reComputer/scripts/clean.sh +33 -33
- reComputer/scripts/comfyui/LICENSE +21 -21
- reComputer/scripts/comfyui/README.md +127 -127
- reComputer/scripts/comfyui/clean.sh +9 -7
- reComputer/scripts/comfyui/config.yaml +30 -29
- reComputer/scripts/comfyui/init.sh +9 -163
- reComputer/scripts/comfyui/run.sh +30 -30
- reComputer/scripts/depth-anything/Dockerfile +5 -5
- reComputer/scripts/depth-anything/LICENSE +21 -21
- reComputer/scripts/depth-anything/README.md +135 -135
- reComputer/scripts/depth-anything/clean.sh +7 -7
- reComputer/scripts/depth-anything/config.yaml +31 -31
- reComputer/scripts/depth-anything/init.sh +164 -164
- reComputer/scripts/depth-anything/run.sh +22 -22
- reComputer/scripts/depth-anything-v2/Dockerfile +5 -5
- reComputer/scripts/depth-anything-v2/LICENSE +21 -21
- reComputer/scripts/depth-anything-v2/README.md +135 -135
- reComputer/scripts/depth-anything-v2/clean.sh +7 -7
- reComputer/scripts/depth-anything-v2/config.yaml +31 -31
- reComputer/scripts/depth-anything-v2/init.sh +164 -164
- reComputer/scripts/depth-anything-v2/run.sh +22 -22
- reComputer/scripts/live-llava/init.sh +16 -16
- reComputer/scripts/live-llava/run.sh +278 -278
- reComputer/scripts/llama-factory/README.md +68 -68
- reComputer/scripts/llama-factory/clean.sh +4 -4
- reComputer/scripts/llama-factory/init.sh +52 -52
- reComputer/scripts/llama-factory/run.sh +10 -10
- reComputer/scripts/llama3/clean.sh +22 -22
- reComputer/scripts/llama3/config.yaml +31 -0
- reComputer/scripts/llama3/init.sh +19 -16
- reComputer/scripts/llama3/run.sh +13 -13
- reComputer/scripts/llava/clean.sh +3 -3
- reComputer/scripts/llava/init.sh +16 -16
- reComputer/scripts/llava/run.sh +9 -9
- reComputer/scripts/llava-v1.5-7b/init.sh +16 -16
- reComputer/scripts/llava-v1.5-7b/run.sh +9 -9
- reComputer/scripts/llava-v1.6-vicuna-7b/init.sh +16 -16
- reComputer/scripts/llava-v1.6-vicuna-7b/run.sh +10 -10
- reComputer/scripts/nanodb/init.sh +16 -16
- reComputer/scripts/nanodb/readme.md +10 -10
- reComputer/scripts/nanodb/run.sh +90 -90
- reComputer/scripts/nanoowl/init.sh +16 -16
- reComputer/scripts/nanoowl/run.sh +7 -7
- reComputer/scripts/ollama/clean.sh +22 -22
- reComputer/scripts/ollama/config.yaml +31 -0
- reComputer/scripts/ollama/init.sh +19 -16
- reComputer/scripts/ollama/run.sh +10 -10
- reComputer/scripts/parler-tts/clean.sh +7 -7
- reComputer/scripts/parler-tts/getVersion.sh +59 -59
- reComputer/scripts/parler-tts/init.sh +8 -8
- reComputer/scripts/parler-tts/readme.md +63 -63
- reComputer/scripts/parler-tts/run.sh +17 -17
- reComputer/scripts/run.sh +48 -48
- reComputer/scripts/stable-diffusion-webui/init.sh +16 -16
- reComputer/scripts/stable-diffusion-webui/run.sh +6 -6
- reComputer/scripts/text-generation-webui/init.sh +16 -16
- reComputer/scripts/text-generation-webui/run.sh +11 -11
- reComputer/scripts/ultralytics-yolo/LICENSE +21 -21
- reComputer/scripts/ultralytics-yolo/README.md +124 -124
- reComputer/scripts/ultralytics-yolo/clean.sh +6 -6
- reComputer/scripts/ultralytics-yolo/config.yaml +31 -31
- reComputer/scripts/ultralytics-yolo/init.sh +4 -4
- reComputer/scripts/ultralytics-yolo/run.sh +26 -26
- reComputer/scripts/update.sh +26 -26
- reComputer/scripts/utils.sh +168 -166
- reComputer/scripts/whisper/init.sh +16 -16
- reComputer/scripts/whisper/run.sh +7 -7
- reComputer/scripts/yolov10/Dockerfile +13 -13
- reComputer/scripts/yolov10/README.md +71 -71
- reComputer/scripts/yolov10/clean.sh +4 -4
- reComputer/scripts/yolov10/config.yaml +31 -31
- reComputer/scripts/yolov10/init.sh +20 -20
- reComputer/scripts/yolov10/run.sh +7 -7
- reComputer/scripts/yolov8-rail-inspection/config.yaml +31 -31
- reComputer/scripts/yolov8-rail-inspection/init.sh +5 -5
- reComputer/scripts/yolov8-rail-inspection/readme.md +35 -35
- reComputer/scripts/yolov8-rail-inspection/run.sh +21 -21
- jetson_examples-0.1.8.dist-info/RECORD +0 -107
- {jetson_examples-0.1.8.dist-info → jetson_examples-0.1.9.dist-info}/WHEEL +0 -0
- {jetson_examples-0.1.8.dist-info → jetson_examples-0.1.9.dist-info}/entry_points.txt +0 -0
- {jetson_examples-0.1.8.dist-info → jetson_examples-0.1.9.dist-info}/top_level.txt +0 -0
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) [2024] [Seeed Studio]
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) [2024] [Seeed Studio]
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -1,127 +1,127 @@
|
|
1
|
-
# Jetson-Example: Run ComfyUI (Stable Diffusion GUI) on NVIDIA Jetson Orin 🚀
|
2
|
-
|
3
|
-
## One-Click Quick Deployment of Plug-and-Play Stable Diffusion GUI
|
4
|
-
<p align="center">
|
5
|
-
<img src="images/comfyui.png" alt="comfyui">
|
6
|
-
</p>
|
7
|
-
|
8
|
-
## **Introduction** 📘
|
9
|
-
[ComfyUI](https://github.com/comfyanonymous/ComfyUI) will let you design and execute advanced stable diffusion pipelines using a graph/nodes/flowchart based interface.
|
10
|
-
In this project, you can quickly deploy ComfyUI on Nvidia Jetson Orin devices with one click.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
## **Key Features**:
|
15
|
-
- **One-click installation and configuration support for Nvidia Jetson Orin devices.**
|
16
|
-
- **GPU acceleration to optimize the performance of stable diffusion pipelines.**
|
17
|
-
- Nodes/graph/flowchart interface to experiment and create complex Stable Diffusion workflows without needing to code anything.
|
18
|
-
- Fully supports SD1.x, SD2.x, [SDXL](https://comfyanonymous.github.io/ComfyUI_examples/sdxl/), [Stable Video Diffusion](https://comfyanonymous.github.io/ComfyUI_examples/video/), [Stable Cascade](https://comfyanonymous.github.io/ComfyUI_examples/stable_cascade/), [SD3](https://comfyanonymous.github.io/ComfyUI_examples/sd3/) and [Stable Audio](https://comfyanonymous.github.io/ComfyUI_examples/audio/)
|
19
|
-
- [Flux](https://comfyanonymous.github.io/ComfyUI_examples/flux/)
|
20
|
-
- Asynchronous Queue system
|
21
|
-
- Many optimizations: Only re-executes the parts of the workflow that changes between executions.
|
22
|
-
- Smart memory management: can automatically run models on GPUs with as low as 1GB vram.
|
23
|
-
|
24
|
-
For other features, please refer to the original project [ComfyUI](https://github.com/comfyanonymous/ComfyUI).
|
25
|
-
|
26
|
-
Workflow examples can be found on the [Examples page](https://comfyanonymous.github.io/ComfyUI_examples/)
|
27
|
-
|
28
|
-
|
29
|
-
### Get a Jetson Orin Device 🛒
|
30
|
-
| Device Model | Description | Link |
|
31
|
-
|--------------|-------------|------|
|
32
|
-
| Jetson Orin Nano Dev Kit, Orin Nano 8GB, 40TOPS | Developer kit for NVIDIA Jetson Orin Nano | [Buy Here](https://www.seeedstudio.com/NVIDIAr-Jetson-Orintm-Nano-Developer-Kit-p-5617.html) |
|
33
|
-
| reComputer J4012, powered by Orin NX 16GB, 100 TOPS | Embedded computer powered by Orin NX | [Buy Here](https://www.seeedstudio.com/reComputer-J4012-p-5586.html) |
|
34
|
-
|
35
|
-
## **Quickstart** ⚡
|
36
|
-
|
37
|
-
### Modify Docker Daemon Configuration (Optional)
|
38
|
-
To enhance the experience of quickly loading models in Docker, you need to add the following content to the `/etc/docker/daemon.json` file:
|
39
|
-
|
40
|
-
```json
|
41
|
-
{
|
42
|
-
"default-runtime": "nvidia",
|
43
|
-
"runtimes": {
|
44
|
-
"nvidia": {
|
45
|
-
"path": "nvidia-container-runtime",
|
46
|
-
"runtimeArgs": []
|
47
|
-
}
|
48
|
-
},
|
49
|
-
"storage-driver": "overlay2",
|
50
|
-
"data-root": "/var/lib/docker",
|
51
|
-
"log-driver": "json-file",
|
52
|
-
"log-opts": {
|
53
|
-
"max-size": "100m",
|
54
|
-
"max-file": "3"
|
55
|
-
},
|
56
|
-
"no-new-privileges": true,
|
57
|
-
"experimental": false
|
58
|
-
}
|
59
|
-
```
|
60
|
-
|
61
|
-
After modifying the `daemon.json` file, you need to restart the Docker service to apply the configuration:
|
62
|
-
|
63
|
-
```sh
|
64
|
-
sudo systemctl restart docker
|
65
|
-
```
|
66
|
-
|
67
|
-
### **Installation via PyPI (Recommended)** 🐍
|
68
|
-
1. Install the package:
|
69
|
-
```sh
|
70
|
-
pip install jetson-examples
|
71
|
-
```
|
72
|
-
|
73
|
-
2. Restart your reComputer:
|
74
|
-
```sh
|
75
|
-
sudo reboot
|
76
|
-
```
|
77
|
-
|
78
|
-
3. Run ComfyUI with one command:
|
79
|
-
```sh
|
80
|
-
reComputer run comfyui
|
81
|
-
```
|
82
|
-
- **Input Dir**: Mount the input directory in Docker to the host directory `~/ComfyUI/input`.
|
83
|
-
- **Output Dir**: Mount the output directory in Docker to the host directory `~/ComfyUI/output`.
|
84
|
-
|
85
|
-
- **Models Dir**: Mount the models directory in Docker to the host directory `~/ComfyUI/models`.
|
86
|
-
|
87
|
-
|
88
|
-
## **For more tutorials** 🔧
|
89
|
-
- [ComfyUI Basic Tutorial VN](https://comfyanonymous.github.io/ComfyUI_tutorial_vn/)
|
90
|
-
- [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
|
91
|
-
- [ComfyUI Examples](https://comfyanonymous.github.io/ComfyUI_examples/)
|
92
|
-
- [Comfy Org](https://www.comfy.org/)
|
93
|
-
|
94
|
-
|
95
|
-
## **Shortcuts**
|
96
|
-
|
97
|
-
| Keybind | Explanation |
|
98
|
-
|------------------------------------|--------------------------------------------------------------------------------------------------------------------|
|
99
|
-
| Ctrl + Enter | Queue up current graph for generation |
|
100
|
-
| Ctrl + Shift + Enter | Queue up current graph as first for generation |
|
101
|
-
| Ctrl + Z/Ctrl + Y | Undo/Redo |
|
102
|
-
| Ctrl + S | Save workflow |
|
103
|
-
| Ctrl + O | Load workflow |
|
104
|
-
| Ctrl + A | Select all nodes |
|
105
|
-
| Alt + C | Collapse/uncollapse selected nodes |
|
106
|
-
| Ctrl + M | Mute/unmute selected nodes |
|
107
|
-
| Ctrl + B | Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through) |
|
108
|
-
| Delete/Backspace | Delete selected nodes |
|
109
|
-
| Ctrl + Backspace | Delete the current graph |
|
110
|
-
| Space | Move the canvas around when held and moving the cursor |
|
111
|
-
| Ctrl/Shift + Click | Add clicked node to selection |
|
112
|
-
| Ctrl + C/Ctrl + V | Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes) |
|
113
|
-
| Ctrl + C/Ctrl + Shift + V | Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes) |
|
114
|
-
| Shift + Drag | Move multiple selected nodes at the same time |
|
115
|
-
| Ctrl + D | Load default graph |
|
116
|
-
| Alt + `+` | Canvas Zoom in |
|
117
|
-
| Alt + `-` | Canvas Zoom out |
|
118
|
-
| Ctrl + Shift + LMB + Vertical drag | Canvas Zoom in/out |
|
119
|
-
| Q | Toggle visibility of the queue |
|
120
|
-
| H | Toggle visibility of history |
|
121
|
-
| R | Refresh graph |
|
122
|
-
| Double-Click LMB | Open node quick search palette |
|
123
|
-
|
124
|
-
|
125
|
-
## License
|
126
|
-
|
127
|
-
This project is licensed under the GNU General Public License v3.0
|
1
|
+
# Jetson-Example: Run ComfyUI (Stable Diffusion GUI) on NVIDIA Jetson Orin 🚀
|
2
|
+
|
3
|
+
## One-Click Quick Deployment of Plug-and-Play Stable Diffusion GUI
|
4
|
+
<p align="center">
|
5
|
+
<img src="images/comfyui.png" alt="comfyui">
|
6
|
+
</p>
|
7
|
+
|
8
|
+
## **Introduction** 📘
|
9
|
+
[ComfyUI](https://github.com/comfyanonymous/ComfyUI) will let you design and execute advanced stable diffusion pipelines using a graph/nodes/flowchart based interface.
|
10
|
+
In this project, you can quickly deploy ComfyUI on Nvidia Jetson Orin devices with one click.
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## **Key Features**:
|
15
|
+
- **One-click installation and configuration support for Nvidia Jetson Orin devices.**
|
16
|
+
- **GPU acceleration to optimize the performance of stable diffusion pipelines.**
|
17
|
+
- Nodes/graph/flowchart interface to experiment and create complex Stable Diffusion workflows without needing to code anything.
|
18
|
+
- Fully supports SD1.x, SD2.x, [SDXL](https://comfyanonymous.github.io/ComfyUI_examples/sdxl/), [Stable Video Diffusion](https://comfyanonymous.github.io/ComfyUI_examples/video/), [Stable Cascade](https://comfyanonymous.github.io/ComfyUI_examples/stable_cascade/), [SD3](https://comfyanonymous.github.io/ComfyUI_examples/sd3/) and [Stable Audio](https://comfyanonymous.github.io/ComfyUI_examples/audio/)
|
19
|
+
- [Flux](https://comfyanonymous.github.io/ComfyUI_examples/flux/)
|
20
|
+
- Asynchronous Queue system
|
21
|
+
- Many optimizations: Only re-executes the parts of the workflow that changes between executions.
|
22
|
+
- Smart memory management: can automatically run models on GPUs with as low as 1GB vram.
|
23
|
+
|
24
|
+
For other features, please refer to the original project [ComfyUI](https://github.com/comfyanonymous/ComfyUI).
|
25
|
+
|
26
|
+
Workflow examples can be found on the [Examples page](https://comfyanonymous.github.io/ComfyUI_examples/)
|
27
|
+
|
28
|
+
|
29
|
+
### Get a Jetson Orin Device 🛒
|
30
|
+
| Device Model | Description | Link |
|
31
|
+
|--------------|-------------|------|
|
32
|
+
| Jetson Orin Nano Dev Kit, Orin Nano 8GB, 40TOPS | Developer kit for NVIDIA Jetson Orin Nano | [Buy Here](https://www.seeedstudio.com/NVIDIAr-Jetson-Orintm-Nano-Developer-Kit-p-5617.html) |
|
33
|
+
| reComputer J4012, powered by Orin NX 16GB, 100 TOPS | Embedded computer powered by Orin NX | [Buy Here](https://www.seeedstudio.com/reComputer-J4012-p-5586.html) |
|
34
|
+
|
35
|
+
## **Quickstart** ⚡
|
36
|
+
|
37
|
+
### Modify Docker Daemon Configuration (Optional)
|
38
|
+
To enhance the experience of quickly loading models in Docker, you need to add the following content to the `/etc/docker/daemon.json` file:
|
39
|
+
|
40
|
+
```json
|
41
|
+
{
|
42
|
+
"default-runtime": "nvidia",
|
43
|
+
"runtimes": {
|
44
|
+
"nvidia": {
|
45
|
+
"path": "nvidia-container-runtime",
|
46
|
+
"runtimeArgs": []
|
47
|
+
}
|
48
|
+
},
|
49
|
+
"storage-driver": "overlay2",
|
50
|
+
"data-root": "/var/lib/docker",
|
51
|
+
"log-driver": "json-file",
|
52
|
+
"log-opts": {
|
53
|
+
"max-size": "100m",
|
54
|
+
"max-file": "3"
|
55
|
+
},
|
56
|
+
"no-new-privileges": true,
|
57
|
+
"experimental": false
|
58
|
+
}
|
59
|
+
```
|
60
|
+
|
61
|
+
After modifying the `daemon.json` file, you need to restart the Docker service to apply the configuration:
|
62
|
+
|
63
|
+
```sh
|
64
|
+
sudo systemctl restart docker
|
65
|
+
```
|
66
|
+
|
67
|
+
### **Installation via PyPI (Recommended)** 🐍
|
68
|
+
1. Install the package:
|
69
|
+
```sh
|
70
|
+
pip install jetson-examples
|
71
|
+
```
|
72
|
+
|
73
|
+
2. Restart your reComputer:
|
74
|
+
```sh
|
75
|
+
sudo reboot
|
76
|
+
```
|
77
|
+
|
78
|
+
3. Run ComfyUI with one command:
|
79
|
+
```sh
|
80
|
+
reComputer run comfyui
|
81
|
+
```
|
82
|
+
- **Input Dir**: Mount the input directory in Docker to the host directory `~/ComfyUI/input`.
|
83
|
+
- **Output Dir**: Mount the output directory in Docker to the host directory `~/ComfyUI/output`.
|
84
|
+
|
85
|
+
- **Models Dir**: Mount the models directory in Docker to the host directory `~/ComfyUI/models`.
|
86
|
+
|
87
|
+
|
88
|
+
## **For more tutorials** 🔧
|
89
|
+
- [ComfyUI Basic Tutorial VN](https://comfyanonymous.github.io/ComfyUI_tutorial_vn/)
|
90
|
+
- [ComfyUI](https://github.com/comfyanonymous/ComfyUI)
|
91
|
+
- [ComfyUI Examples](https://comfyanonymous.github.io/ComfyUI_examples/)
|
92
|
+
- [Comfy Org](https://www.comfy.org/)
|
93
|
+
|
94
|
+
|
95
|
+
## **Shortcuts**
|
96
|
+
|
97
|
+
| Keybind | Explanation |
|
98
|
+
|------------------------------------|--------------------------------------------------------------------------------------------------------------------|
|
99
|
+
| Ctrl + Enter | Queue up current graph for generation |
|
100
|
+
| Ctrl + Shift + Enter | Queue up current graph as first for generation |
|
101
|
+
| Ctrl + Z/Ctrl + Y | Undo/Redo |
|
102
|
+
| Ctrl + S | Save workflow |
|
103
|
+
| Ctrl + O | Load workflow |
|
104
|
+
| Ctrl + A | Select all nodes |
|
105
|
+
| Alt + C | Collapse/uncollapse selected nodes |
|
106
|
+
| Ctrl + M | Mute/unmute selected nodes |
|
107
|
+
| Ctrl + B | Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through) |
|
108
|
+
| Delete/Backspace | Delete selected nodes |
|
109
|
+
| Ctrl + Backspace | Delete the current graph |
|
110
|
+
| Space | Move the canvas around when held and moving the cursor |
|
111
|
+
| Ctrl/Shift + Click | Add clicked node to selection |
|
112
|
+
| Ctrl + C/Ctrl + V | Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes) |
|
113
|
+
| Ctrl + C/Ctrl + Shift + V | Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes) |
|
114
|
+
| Shift + Drag | Move multiple selected nodes at the same time |
|
115
|
+
| Ctrl + D | Load default graph |
|
116
|
+
| Alt + `+` | Canvas Zoom in |
|
117
|
+
| Alt + `-` | Canvas Zoom out |
|
118
|
+
| Ctrl + Shift + LMB + Vertical drag | Canvas Zoom in/out |
|
119
|
+
| Q | Toggle visibility of the queue |
|
120
|
+
| H | Toggle visibility of history |
|
121
|
+
| R | Refresh graph |
|
122
|
+
| Double-Click LMB | Open node quick search palette |
|
123
|
+
|
124
|
+
|
125
|
+
## License
|
126
|
+
|
127
|
+
This project is licensed under the GNU General Public License v3.0
|
@@ -1,7 +1,9 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
CONTAINER_NAME="comfyui"
|
3
|
-
IMAGE_NAME="yaohui1998/comfyui"
|
4
|
-
|
5
|
-
sudo docker stop $CONTAINER_NAME
|
6
|
-
sudo docker rm $CONTAINER_NAME
|
7
|
-
sudo docker rmi $IMAGE_NAME
|
1
|
+
#!/bin/bash
|
2
|
+
CONTAINER_NAME="comfyui"
|
3
|
+
IMAGE_NAME="yaohui1998/comfyui"
|
4
|
+
|
5
|
+
sudo docker stop $CONTAINER_NAME
|
6
|
+
sudo docker rm $CONTAINER_NAME
|
7
|
+
sudo docker rmi $IMAGE_NAME
|
8
|
+
|
9
|
+
sudo rm -r /home/$USER/reComputer/ComfyUI
|
@@ -1,29 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"
|
15
|
-
|
16
|
-
|
17
|
-
"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
"
|
22
|
-
"
|
23
|
-
"log-
|
24
|
-
|
25
|
-
"max-
|
26
|
-
|
27
|
-
|
28
|
-
"
|
29
|
-
|
1
|
+
# The tested JetPack versions.
|
2
|
+
ALLOWED_L4T_VERSIONS:
|
3
|
+
- 35.3.1
|
4
|
+
- 35.4.1
|
5
|
+
- 35.5.0
|
6
|
+
REQUIRED_DISK_SPACE: 30 # in GB
|
7
|
+
REQUIRED_MEM_SPACE: 15
|
8
|
+
PACKAGES:
|
9
|
+
- nvidia-jetpack
|
10
|
+
DOCKER:
|
11
|
+
ENABLE: true
|
12
|
+
DAEMON: |
|
13
|
+
{
|
14
|
+
"default-runtime": "nvidia",
|
15
|
+
"runtimes": {
|
16
|
+
"nvidia": {
|
17
|
+
"path": "nvidia-container-runtime",
|
18
|
+
"runtimeArgs": []
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"storage-driver": "overlay2",
|
22
|
+
"data-root": "/var/lib/docker",
|
23
|
+
"log-driver": "json-file",
|
24
|
+
"log-opts": {
|
25
|
+
"max-size": "100m",
|
26
|
+
"max-file": "3"
|
27
|
+
},
|
28
|
+
"no-new-privileges": true,
|
29
|
+
"experimental": false
|
30
|
+
}
|
@@ -1,163 +1,9 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
echo "${CYAN}This script will install the necessary packages and configurations for running comfyui on a Jetson.${RESET}"
|
12
|
-
|
13
|
-
# Install yq for parsing YAML files
|
14
|
-
sudo apt-get update
|
15
|
-
sudo apt-get install -y jq
|
16
|
-
# Read configuration
|
17
|
-
CURRENT_DIR="comfyui"
|
18
|
-
CONFIG_FILE="./jetson-examples/reComputer/scripts/${CURRENT_DIR}/config.yaml"
|
19
|
-
ALLOWED_L4T_VERSIONS=$(yq -r '.allowed_l4t_versions[]' $CONFIG_FILE)
|
20
|
-
ALLOWED_L4T_VERSIONS_ARRAY=($ALLOWED_L4T_VERSIONS)
|
21
|
-
REQUIRED_DISK_SPACE=$(yq -r '.required_disk_space' $CONFIG_FILE)
|
22
|
-
MIN_MEM_GB=$(yq -r '.min_mem_gb' $CONFIG_FILE)
|
23
|
-
MIN_SWAP_GB=$(yq -r '.min_swap_gb' $CONFIG_FILE)
|
24
|
-
NVIDIA_JETSON_PACKAGE=$(yq -r '.nvidia_jetson_package' $CONFIG_FILE)
|
25
|
-
PACKAGES=$(yq -r '.packages[]' $CONFIG_FILE)
|
26
|
-
DESIRED_DAEMON_JSON=$(yq -r '.docker.desired_daemon_json' $CONFIG_FILE)
|
27
|
-
CURRENT_DISK_SPACE=$(df -BG --output=avail / | tail -1 | sed 's/[^0-9]*//g')
|
28
|
-
MEM_GB=$(free -g | awk '/^Mem:/{print $2}')
|
29
|
-
SWAP_GB=$(free -g | awk '/^Swap:/{print $2}')
|
30
|
-
|
31
|
-
echo "${MAGENTA}Allowed L4T versions:${RESET} ${GREEN}$ALLOWED_L4T_VERSIONS ${RESET}"
|
32
|
-
echo "${MAGENTA}Required disk space: ${GREEN}${REQUIRED_DISK_SPACE}G ${RESET}"
|
33
|
-
echo "${MAGENTA}Minimum memory: ${GREEN}${MIN_MEM_GB}G ${RESET}"
|
34
|
-
echo "${MAGENTA}Minimum swap: ${GREEN}${MIN_SWAP_GB}G ${RESET}"
|
35
|
-
echo "${MAGENTA}NVIDIA Jetson package:${RESET} ${GREEN}$NVIDIA_JETSON_PACKAGE ${RESET}"
|
36
|
-
echo "${MAGENTA}Additional packages: ${RESET} ${GREEN}$PACKAGES ${RESET}"
|
37
|
-
|
38
|
-
# Check if NVIDIA Jetson package is installed
|
39
|
-
if ! dpkg -l | grep -qw "$NVIDIA_JETSON_PACKAGE"; then
|
40
|
-
echo "$NVIDIA_JETSON_PACKAGE is not installed. Installing $NVIDIA_JETSON_PACKAGE..."
|
41
|
-
sudo apt-get install -y $NVIDIA_JETSON_PACKAGE
|
42
|
-
else
|
43
|
-
echo "$NVIDIA_JETSON_PACKAGE is installed: ${GREEN}OK!${RESET}"
|
44
|
-
fi
|
45
|
-
|
46
|
-
# Install additional packages
|
47
|
-
for PACKAGE in $PACKAGES; do
|
48
|
-
if ! dpkg -l | grep -qw "$PACKAGE"; then
|
49
|
-
echo "$PACKAGE is not installed. Installing $PACKAGE..."
|
50
|
-
sudo apt-get install -y $PACKAGE
|
51
|
-
else
|
52
|
-
echo "$PACKAGE is installed: ${GREEN}OK!${RESET}"
|
53
|
-
fi
|
54
|
-
done
|
55
|
-
|
56
|
-
# Get system architecture
|
57
|
-
ARCH=$(uname -i)
|
58
|
-
if [ "$ARCH" = "aarch64" ]; then
|
59
|
-
# Check for L4T version string
|
60
|
-
L4T_VERSION_STRING=$(head -n 1 /etc/nv_tegra_release)
|
61
|
-
|
62
|
-
if [ -z "$L4T_VERSION_STRING" ]; then
|
63
|
-
L4T_VERSION_STRING=$(dpkg-query --showformat='${Version}' --show nvidia-l4t-core)
|
64
|
-
fi
|
65
|
-
|
66
|
-
L4T_RELEASE=$(echo "$L4T_VERSION_STRING" | cut -f 2 -d ' ' | grep -Po '(?<=R)[^;]+')
|
67
|
-
L4T_REVISION=$(echo "$L4T_VERSION_STRING" | cut -f 2 -d ',' | grep -Po '(?<=REVISION: )[^;]+')
|
68
|
-
L4T_VERSION="$L4T_RELEASE.$L4T_REVISION"
|
69
|
-
|
70
|
-
elif [ "$ARCH" = "x86_64" ]; then
|
71
|
-
echo "${RED}Unsupported architecture: $ARCH${RESET}"
|
72
|
-
exit 1
|
73
|
-
fi
|
74
|
-
|
75
|
-
|
76
|
-
# Check L4T version
|
77
|
-
if [[ " ${ALLOWED_L4T_VERSIONS_ARRAY[@]} " =~ " ${L4T_VERSION} " ]]; then
|
78
|
-
echo "L4T VERSION ${GREEN}${L4T_VERSION}${RESET} is in the allowed: ${GREEN}OK!${RESET}"
|
79
|
-
else
|
80
|
-
echo "${RED}L4T VERSION ${GREEN}${L4T_VERSION}${RESET}${RED} is not in the allowed versions list.${RESET}"
|
81
|
-
exit 1
|
82
|
-
fi
|
83
|
-
|
84
|
-
# Check disk space
|
85
|
-
if [ "$CURRENT_DISK_SPACE" -lt "$REQUIRED_DISK_SPACE" ]; then
|
86
|
-
echo "${RED}Insufficient disk space. Required: ${REQUIRED_DISK_SPACE}G, Available: ${CURRENT_DISK_SPACE}G. ${RESET}"
|
87
|
-
exit 1
|
88
|
-
else
|
89
|
-
echo "Required ${GREEN}${REQUIRED_DISK_SPACE}${RESET} G disk space: ${GREEN}OK!${RESET}"
|
90
|
-
fi
|
91
|
-
|
92
|
-
# Check memory and swap space
|
93
|
-
if [ "$MEM_GB" -lt "$MIN_MEM_GB" ]; then
|
94
|
-
echo "${RED}Insufficient memory: $MEM_GB GB (minimum required: $MIN_MEM_GB GB).${RESET}"
|
95
|
-
exit 1
|
96
|
-
else
|
97
|
-
echo "Required ${GREEN}$MIN_MEM_GB${RESET} G memory space: ${GREEN}OK!${RESET}"
|
98
|
-
fi
|
99
|
-
|
100
|
-
if [ "$SWAP_GB" -lt "$MIN_SWAP_GB" ]; then
|
101
|
-
echo "${RED}Insufficient swap space: $SWAP_GB GB (minimum required: $MIN_SWAP_GB GB). ${RESET}"
|
102
|
-
exit 1
|
103
|
-
else
|
104
|
-
echo "Required ${GREEN}$MIN_SWAP_GB${RESET} G swap space: ${GREEN}OK!${RESET}"
|
105
|
-
fi
|
106
|
-
|
107
|
-
# Check if Docker is installed
|
108
|
-
if ! command -v docker &> /dev/null; then
|
109
|
-
echo "${BLUE}Docker is not installed. Installing Docker...${RESET}"
|
110
|
-
|
111
|
-
sudo apt-get install -y \
|
112
|
-
apt-transport-https \
|
113
|
-
ca-certificates \
|
114
|
-
curl \
|
115
|
-
software-properties-common
|
116
|
-
|
117
|
-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
118
|
-
sudo add-apt-repository \
|
119
|
-
"deb [arch=arm64] https://download.docker.com/linux/ubuntu \
|
120
|
-
$(lsb_release -cs) \
|
121
|
-
stable"
|
122
|
-
|
123
|
-
sudo apt-get update
|
124
|
-
sudo apt-get install -y docker-ce
|
125
|
-
sudo systemctl enable docker
|
126
|
-
sudo systemctl start docker
|
127
|
-
sudo usermod -aG docker $USER
|
128
|
-
sudo systemctl restart docker
|
129
|
-
newgrp docker
|
130
|
-
|
131
|
-
echo "Docker has been installed and configured."
|
132
|
-
fi
|
133
|
-
|
134
|
-
# Check if the current user has permissions to use Docker
|
135
|
-
if ! docker info &> /dev/null; then
|
136
|
-
echo "The current user does not have permissions to use Docker. Adding permissions..."
|
137
|
-
sudo usermod -aG docker $USER
|
138
|
-
sudo systemctl restart docker
|
139
|
-
newgrp docker
|
140
|
-
echo "${BLUE}Permissions added. Please log out and log back in for the changes to take effect.${RESET}"
|
141
|
-
else
|
142
|
-
echo "${GREEN}Docker is installed and the current user has permissions to use it.${RESET}"
|
143
|
-
fi
|
144
|
-
|
145
|
-
DAEMON_JSON_PATH="/etc/docker/daemon.json"
|
146
|
-
if [ ! -f "$DAEMON_JSON_PATH" ] || [ "$(cat $DAEMON_JSON_PATH)" != "$DESIRED_DAEMON_JSON" ]; then
|
147
|
-
echo "${BLUE}Creating/updating $DAEMON_JSON_PATH with the desired content...${RESET}"
|
148
|
-
echo "$DESIRED_DAEMON_JSON" | sudo tee $DAEMON_JSON_PATH > /dev/null
|
149
|
-
sudo systemctl restart docker
|
150
|
-
echo "${GREEN}$DAEMON_JSON_PATH has been created/updated.${RESET}"
|
151
|
-
else
|
152
|
-
echo "${GREEN}$DAEMON_JSON_PATH already exists and has the correct content.${RESET}"
|
153
|
-
fi
|
154
|
-
|
155
|
-
# Install additional packages
|
156
|
-
for PACKAGE in $PACKAGES; do
|
157
|
-
if ! dpkg -l | grep -qw "$PACKAGE"; then
|
158
|
-
echo "${CYAN}$PACKAGE${RESET} ${BLUE}is not installed. Installing $PACKAGE...${RESET}"
|
159
|
-
sudo apt-get install -y $PACKAGE
|
160
|
-
else
|
161
|
-
echo "${GREEN}$PACKAGE${RESET} is already installed: ${GREEN}OK!${RESET}"
|
162
|
-
fi
|
163
|
-
done
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# check the runtime environment.
|
4
|
+
source $(dirname "$(realpath "$0")")/../utils.sh
|
5
|
+
check_base_env "$(dirname "$(realpath "$0")")/config.yaml"
|
6
|
+
|
7
|
+
# create folder.
|
8
|
+
BASE_PATH=/home/$USER/reComputer
|
9
|
+
mkdir -p $BASE_PATH/
|
@@ -1,30 +1,30 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
CONTAINER_NAME="comfyui"
|
4
|
-
IMAGE_NAME="yaohui1998/comfyui"
|
5
|
-
|
6
|
-
# Pull the latest image
|
7
|
-
docker pull $IMAGE_NAME
|
8
|
-
|
9
|
-
cd
|
10
|
-
git clone https://github.com/comfyanonymous/ComfyUI.git
|
11
|
-
|
12
|
-
|
13
|
-
# Check if the container with the specified name already exists
|
14
|
-
if [ $(docker ps -a -q -f name=^/${CONTAINER_NAME}$) ]; then
|
15
|
-
echo "Container $CONTAINER_NAME already exists. Starting and attaching..."
|
16
|
-
docker start $CONTAINER_NAME
|
17
|
-
docker exec -it $CONTAINER_NAME /bin/bash
|
18
|
-
else
|
19
|
-
echo "Container $CONTAINER_NAME does not exist. Creating and starting..."
|
20
|
-
docker run -it --rm \
|
21
|
-
--name $CONTAINER_NAME \
|
22
|
-
--privileged \
|
23
|
-
--network host \
|
24
|
-
-v
|
25
|
-
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
26
|
-
-v /dev/*:/dev/* \
|
27
|
-
-v /etc/localtime:/etc/localtime:ro \
|
28
|
-
--runtime nvidia \
|
29
|
-
$IMAGE_NAME
|
30
|
-
fi
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
CONTAINER_NAME="comfyui"
|
4
|
+
IMAGE_NAME="yaohui1998/comfyui"
|
5
|
+
|
6
|
+
# Pull the latest image
|
7
|
+
docker pull $IMAGE_NAME
|
8
|
+
|
9
|
+
cd /home/$USER/reComputer/
|
10
|
+
git clone https://github.com/comfyanonymous/ComfyUI.git
|
11
|
+
|
12
|
+
|
13
|
+
# Check if the container with the specified name already exists
|
14
|
+
if [ $(docker ps -a -q -f name=^/${CONTAINER_NAME}$) ]; then
|
15
|
+
echo "Container $CONTAINER_NAME already exists. Starting and attaching..."
|
16
|
+
docker start $CONTAINER_NAME
|
17
|
+
docker exec -it $CONTAINER_NAME /bin/bash
|
18
|
+
else
|
19
|
+
echo "Container $CONTAINER_NAME does not exist. Creating and starting..."
|
20
|
+
docker run -it --rm \
|
21
|
+
--name $CONTAINER_NAME \
|
22
|
+
--privileged \
|
23
|
+
--network host \
|
24
|
+
-v /home/$USER/reComputer/ComfyUI:/usr/src/ComfyUI-Seeed \
|
25
|
+
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
26
|
+
-v /dev/*:/dev/* \
|
27
|
+
-v /etc/localtime:/etc/localtime:ro \
|
28
|
+
--runtime nvidia \
|
29
|
+
$IMAGE_NAME
|
30
|
+
fi
|
@@ -1,6 +1,6 @@
|
|
1
|
-
FROM nvcr.io/nvidia/l4t-pytorch:r35.2.1-pth2.0-py3
|
2
|
-
RUN mkdir /usr/src/DepthAnything-on-Jetson-Orin
|
3
|
-
WORKDIR /usr/src/DepthAnything-on-Jetson-Orin
|
4
|
-
COPY . /usr/src/DepthAnything-on-Jetson-Orin
|
5
|
-
RUN pip install flask onnx flask flask_socketio huggingface_hub
|
1
|
+
FROM nvcr.io/nvidia/l4t-pytorch:r35.2.1-pth2.0-py3
|
2
|
+
RUN mkdir /usr/src/DepthAnything-on-Jetson-Orin
|
3
|
+
WORKDIR /usr/src/DepthAnything-on-Jetson-Orin
|
4
|
+
COPY . /usr/src/DepthAnything-on-Jetson-Orin
|
5
|
+
RUN pip install flask onnx flask flask_socketio huggingface_hub
|
6
6
|
CMD ["python3", "app.py"]
|