jetson-examples 0.1.7__py3-none-any.whl → 0.1.8__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.
Files changed (104) hide show
  1. {jetson_examples-0.1.7.dist-info → jetson_examples-0.1.8.dist-info}/LICENSE +21 -21
  2. {jetson_examples-0.1.7.dist-info → jetson_examples-0.1.8.dist-info}/METADATA +8 -8
  3. jetson_examples-0.1.8.dist-info/RECORD +107 -0
  4. {jetson_examples-0.1.7.dist-info → jetson_examples-0.1.8.dist-info}/WHEEL +1 -1
  5. reComputer/__init__.py +1 -1
  6. reComputer/main.py +60 -60
  7. reComputer/scripts/MoveNet-Lightning/clean.sh +8 -8
  8. reComputer/scripts/MoveNet-Lightning/getVersion.sh +59 -59
  9. reComputer/scripts/MoveNet-Lightning/init.sh +6 -6
  10. reComputer/scripts/MoveNet-Lightning/readme.md +30 -30
  11. reComputer/scripts/MoveNet-Lightning/run.sh +19 -19
  12. reComputer/scripts/MoveNet-Thunder/clean.sh +7 -7
  13. reComputer/scripts/MoveNet-Thunder/getVersion.sh +59 -59
  14. reComputer/scripts/MoveNet-Thunder/init.sh +6 -6
  15. reComputer/scripts/MoveNet-Thunder/readme.md +31 -31
  16. reComputer/scripts/MoveNet-Thunder/run.sh +18 -18
  17. reComputer/scripts/MoveNetJS/clean.sh +4 -4
  18. reComputer/scripts/MoveNetJS/readme.md +56 -56
  19. reComputer/scripts/MoveNetJS/run.sh +13 -13
  20. reComputer/scripts/Sheared-LLaMA-2.7B-ShareGPT/init.sh +16 -16
  21. reComputer/scripts/Sheared-LLaMA-2.7B-ShareGPT/run.sh +8 -8
  22. reComputer/scripts/audiocraft/README.md +35 -35
  23. reComputer/scripts/audiocraft/clean.sh +5 -5
  24. reComputer/scripts/audiocraft/init.sh +16 -16
  25. reComputer/scripts/audiocraft/run.sh +7 -7
  26. reComputer/scripts/check.sh +4 -4
  27. reComputer/scripts/clean.sh +33 -33
  28. reComputer/scripts/comfyui/LICENSE +21 -21
  29. reComputer/scripts/comfyui/README.md +127 -127
  30. reComputer/scripts/comfyui/clean.sh +6 -6
  31. reComputer/scripts/comfyui/config.yaml +29 -29
  32. reComputer/scripts/comfyui/init.sh +163 -163
  33. reComputer/scripts/comfyui/run.sh +30 -30
  34. reComputer/scripts/depth-anything/Dockerfile +5 -5
  35. reComputer/scripts/depth-anything/LICENSE +21 -21
  36. reComputer/scripts/depth-anything/README.md +135 -135
  37. reComputer/scripts/depth-anything/clean.sh +7 -7
  38. reComputer/scripts/depth-anything/config.yaml +31 -31
  39. reComputer/scripts/depth-anything/init.sh +164 -164
  40. reComputer/scripts/depth-anything/run.sh +22 -22
  41. reComputer/scripts/depth-anything-v2/Dockerfile +5 -5
  42. reComputer/scripts/depth-anything-v2/LICENSE +21 -21
  43. reComputer/scripts/depth-anything-v2/README.md +135 -135
  44. reComputer/scripts/depth-anything-v2/clean.sh +7 -7
  45. reComputer/scripts/depth-anything-v2/config.yaml +31 -31
  46. reComputer/scripts/depth-anything-v2/init.sh +164 -164
  47. reComputer/scripts/depth-anything-v2/run.sh +22 -22
  48. reComputer/scripts/live-llava/init.sh +16 -16
  49. reComputer/scripts/live-llava/run.sh +278 -278
  50. reComputer/scripts/llama-factory/README.md +68 -68
  51. reComputer/scripts/llama-factory/clean.sh +4 -4
  52. reComputer/scripts/llama-factory/init.sh +52 -52
  53. reComputer/scripts/llama-factory/run.sh +10 -10
  54. reComputer/scripts/llama3/clean.sh +22 -22
  55. reComputer/scripts/llama3/init.sh +16 -16
  56. reComputer/scripts/llama3/run.sh +13 -13
  57. reComputer/scripts/llava/clean.sh +3 -3
  58. reComputer/scripts/llava/init.sh +16 -16
  59. reComputer/scripts/llava/run.sh +9 -9
  60. reComputer/scripts/llava-v1.5-7b/init.sh +16 -16
  61. reComputer/scripts/llava-v1.5-7b/run.sh +9 -9
  62. reComputer/scripts/llava-v1.6-vicuna-7b/init.sh +16 -16
  63. reComputer/scripts/llava-v1.6-vicuna-7b/run.sh +10 -10
  64. reComputer/scripts/nanodb/init.sh +16 -16
  65. reComputer/scripts/nanodb/readme.md +10 -10
  66. reComputer/scripts/nanodb/run.sh +90 -90
  67. reComputer/scripts/nanoowl/init.sh +16 -16
  68. reComputer/scripts/nanoowl/run.sh +7 -7
  69. reComputer/scripts/ollama/clean.sh +22 -22
  70. reComputer/scripts/ollama/init.sh +16 -16
  71. reComputer/scripts/ollama/run.sh +10 -10
  72. reComputer/scripts/parler-tts/clean.sh +7 -7
  73. reComputer/scripts/parler-tts/getVersion.sh +59 -59
  74. reComputer/scripts/parler-tts/init.sh +8 -8
  75. reComputer/scripts/parler-tts/readme.md +63 -63
  76. reComputer/scripts/parler-tts/run.sh +17 -17
  77. reComputer/scripts/run.sh +48 -48
  78. reComputer/scripts/stable-diffusion-webui/init.sh +16 -16
  79. reComputer/scripts/stable-diffusion-webui/run.sh +6 -6
  80. reComputer/scripts/text-generation-webui/init.sh +16 -16
  81. reComputer/scripts/text-generation-webui/run.sh +11 -11
  82. reComputer/scripts/ultralytics-yolo/LICENSE +21 -21
  83. reComputer/scripts/ultralytics-yolo/README.md +124 -124
  84. reComputer/scripts/ultralytics-yolo/clean.sh +6 -6
  85. reComputer/scripts/ultralytics-yolo/config.yaml +31 -32
  86. reComputer/scripts/ultralytics-yolo/init.sh +4 -176
  87. reComputer/scripts/ultralytics-yolo/run.sh +26 -25
  88. reComputer/scripts/update.sh +26 -26
  89. reComputer/scripts/utils.sh +166 -0
  90. reComputer/scripts/whisper/init.sh +16 -16
  91. reComputer/scripts/whisper/run.sh +7 -7
  92. reComputer/scripts/yolov10/Dockerfile +13 -13
  93. reComputer/scripts/yolov10/README.md +71 -71
  94. reComputer/scripts/yolov10/clean.sh +4 -4
  95. reComputer/scripts/yolov10/config.yaml +31 -0
  96. reComputer/scripts/yolov10/init.sh +20 -52
  97. reComputer/scripts/yolov10/run.sh +7 -7
  98. reComputer/scripts/yolov8-rail-inspection/config.yaml +31 -0
  99. reComputer/scripts/yolov8-rail-inspection/init.sh +5 -0
  100. reComputer/scripts/yolov8-rail-inspection/readme.md +35 -35
  101. reComputer/scripts/yolov8-rail-inspection/run.sh +21 -21
  102. jetson_examples-0.1.7.dist-info/RECORD +0 -103
  103. {jetson_examples-0.1.7.dist-info → jetson_examples-0.1.8.dist-info}/entry_points.txt +0 -0
  104. {jetson_examples-0.1.7.dist-info → jetson_examples-0.1.8.dist-info}/top_level.txt +0 -0
@@ -1,163 +1,163 @@
1
- #!/bin/bash
2
- #set color value
3
- RED=$(tput setaf 1)
4
- GREEN=$(tput setaf 2)
5
- YELLOW=$(tput setaf 3)
6
- BLUE=$(tput setaf 4)
7
- MAGENTA=$(tput setaf 5)
8
- CYAN=$(tput setaf 6)
9
- RESET=$(tput sgr0)
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
+ #set color value
3
+ RED=$(tput setaf 1)
4
+ GREEN=$(tput setaf 2)
5
+ YELLOW=$(tput setaf 3)
6
+ BLUE=$(tput setaf 4)
7
+ MAGENTA=$(tput setaf 5)
8
+ CYAN=$(tput setaf 6)
9
+ RESET=$(tput sgr0)
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,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 ~/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
+ #!/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 ~/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"]
@@ -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.