jetson-examples 0.0.6__tar.gz → 0.0.8__tar.gz
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.0.6 → jetson_examples-0.0.8}/PKG-INFO +13 -10
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/README.md +12 -9
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/jetson_examples.egg-info/PKG-INFO +13 -10
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/jetson_examples.egg-info/SOURCES.txt +3 -3
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/pyproject.toml +1 -1
- jetson_examples-0.0.8/reComputer/__init__.py +1 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/nanodb/run.sh +25 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/run.sh +0 -25
- jetson_examples-0.0.8/reComputer/scripts/yolov8-counter/readme.md +37 -0
- jetson_examples-0.0.8/reComputer/scripts/yolov8-counter/run.sh +25 -0
- jetson_examples-0.0.6/reComputer/__init__.py +0 -1
- jetson_examples-0.0.6/reComputer/scripts/hello-world/readme.md +0 -3
- jetson_examples-0.0.6/reComputer/scripts/hello-world/run.sh +0 -9
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/LICENSE +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/jetson_examples.egg-info/dependency_links.txt +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/jetson_examples.egg-info/entry_points.txt +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/jetson_examples.egg-info/top_level.txt +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/main.py +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/Sheared-LLaMA-2.7B-ShareGPT/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/check.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/live-llava/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/llama3/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/llava/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/llava-v1.5-7b/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/llava-v1.6-vicuna-7b/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/nanodb/readme.md +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/nanoowl/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/ollama/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/stable-diffusion-webui/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/text-generation-webui/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/update.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/whisper/run.sh +0 -0
- {jetson_examples-0.0.6 → jetson_examples-0.0.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: jetson-examples
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.8
|
4
4
|
Summary: Running Gen AI models and applications on NVIDIA Jetson devices with one-line command
|
5
5
|
Author-email: luozhixin <zhixin.luo@seeed.cc>
|
6
6
|
Project-URL: Homepage, https://github.com/Seeed-Projects/jetson-examples
|
@@ -33,6 +33,7 @@ pip install jetson-examples
|
|
33
33
|
```
|
34
34
|
|
35
35
|
- [more installation methods](./docs/install.md)
|
36
|
+
- If you have already installed, you can use `pip install jetson-examples --upgrade` to update.
|
36
37
|
|
37
38
|
## Quickstart
|
38
39
|
|
@@ -48,15 +49,17 @@ reComputer supports a list of examples from [jetson-ai-lab](https://www.jetson-a
|
|
48
49
|
|
49
50
|
Here are some examples that can be run:
|
50
51
|
|
51
|
-
| Example
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
52
|
+
| Example | Type | Model/Data Size | Image Size | Command |
|
53
|
+
| ------------------------------------------------ | ------------------------ | --------------- | ---------- | --------------------------------------- |
|
54
|
+
| 🆕 llama3 | Text (LLM) | 4.9GB | 10.5GB | `reComputer run llama3` |
|
55
|
+
| 🆕 [ollama](https://github.com/ollama/ollama) | Inference Server | * | 10.5GB | `reComputer run ollama` |
|
56
|
+
| LLaVA | Text + Vision (VLM) | 13GB | 14.4GB | `reComputer run llava` |
|
57
|
+
| Live LLaVA | Text + Vision (VLM) | 13GB | 20.3GB | `reComputer run live-llava` |
|
58
|
+
| stable-diffusion-webui | Image Generation | 3.97G | 7.3GB | `reComputer run stable-diffusion-webui` |
|
59
|
+
| nanoowl | Vision Transformers(ViT) | 613MB | 15.1GB | `reComputer run nanoowl` |
|
60
|
+
| [nanodb](../reComputer/scripts/nanodb/readme.md) | Vector Database | 76GB | 7.0GB | `reComputer run nanodb` |
|
61
|
+
| whisper | Audio | 1.5GB | 6.0GB | `reComputer run whisper` |
|
62
|
+
| [yolov8-counter](/reComputer/scripts/yolov8-counter/readme.md) |Computer Vision | 6M | 13.8GB | `reComputer run yolov8_counter` |
|
60
63
|
> Note: You should have enough space to run example, like `LLaVA`, at least `27.4GB` totally
|
61
64
|
|
62
65
|
More Examples can be found [examples.md](./docs/examples.md)
|
@@ -18,6 +18,7 @@ pip install jetson-examples
|
|
18
18
|
```
|
19
19
|
|
20
20
|
- [more installation methods](./docs/install.md)
|
21
|
+
- If you have already installed, you can use `pip install jetson-examples --upgrade` to update.
|
21
22
|
|
22
23
|
## Quickstart
|
23
24
|
|
@@ -33,15 +34,17 @@ reComputer supports a list of examples from [jetson-ai-lab](https://www.jetson-a
|
|
33
34
|
|
34
35
|
Here are some examples that can be run:
|
35
36
|
|
36
|
-
| Example
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
37
|
+
| Example | Type | Model/Data Size | Image Size | Command |
|
38
|
+
| ------------------------------------------------ | ------------------------ | --------------- | ---------- | --------------------------------------- |
|
39
|
+
| 🆕 llama3 | Text (LLM) | 4.9GB | 10.5GB | `reComputer run llama3` |
|
40
|
+
| 🆕 [ollama](https://github.com/ollama/ollama) | Inference Server | * | 10.5GB | `reComputer run ollama` |
|
41
|
+
| LLaVA | Text + Vision (VLM) | 13GB | 14.4GB | `reComputer run llava` |
|
42
|
+
| Live LLaVA | Text + Vision (VLM) | 13GB | 20.3GB | `reComputer run live-llava` |
|
43
|
+
| stable-diffusion-webui | Image Generation | 3.97G | 7.3GB | `reComputer run stable-diffusion-webui` |
|
44
|
+
| nanoowl | Vision Transformers(ViT) | 613MB | 15.1GB | `reComputer run nanoowl` |
|
45
|
+
| [nanodb](../reComputer/scripts/nanodb/readme.md) | Vector Database | 76GB | 7.0GB | `reComputer run nanodb` |
|
46
|
+
| whisper | Audio | 1.5GB | 6.0GB | `reComputer run whisper` |
|
47
|
+
| [yolov8-counter](/reComputer/scripts/yolov8-counter/readme.md) |Computer Vision | 6M | 13.8GB | `reComputer run yolov8_counter` |
|
45
48
|
> Note: You should have enough space to run example, like `LLaVA`, at least `27.4GB` totally
|
46
49
|
|
47
50
|
More Examples can be found [examples.md](./docs/examples.md)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: jetson-examples
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.8
|
4
4
|
Summary: Running Gen AI models and applications on NVIDIA Jetson devices with one-line command
|
5
5
|
Author-email: luozhixin <zhixin.luo@seeed.cc>
|
6
6
|
Project-URL: Homepage, https://github.com/Seeed-Projects/jetson-examples
|
@@ -33,6 +33,7 @@ pip install jetson-examples
|
|
33
33
|
```
|
34
34
|
|
35
35
|
- [more installation methods](./docs/install.md)
|
36
|
+
- If you have already installed, you can use `pip install jetson-examples --upgrade` to update.
|
36
37
|
|
37
38
|
## Quickstart
|
38
39
|
|
@@ -48,15 +49,17 @@ reComputer supports a list of examples from [jetson-ai-lab](https://www.jetson-a
|
|
48
49
|
|
49
50
|
Here are some examples that can be run:
|
50
51
|
|
51
|
-
| Example
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
52
|
+
| Example | Type | Model/Data Size | Image Size | Command |
|
53
|
+
| ------------------------------------------------ | ------------------------ | --------------- | ---------- | --------------------------------------- |
|
54
|
+
| 🆕 llama3 | Text (LLM) | 4.9GB | 10.5GB | `reComputer run llama3` |
|
55
|
+
| 🆕 [ollama](https://github.com/ollama/ollama) | Inference Server | * | 10.5GB | `reComputer run ollama` |
|
56
|
+
| LLaVA | Text + Vision (VLM) | 13GB | 14.4GB | `reComputer run llava` |
|
57
|
+
| Live LLaVA | Text + Vision (VLM) | 13GB | 20.3GB | `reComputer run live-llava` |
|
58
|
+
| stable-diffusion-webui | Image Generation | 3.97G | 7.3GB | `reComputer run stable-diffusion-webui` |
|
59
|
+
| nanoowl | Vision Transformers(ViT) | 613MB | 15.1GB | `reComputer run nanoowl` |
|
60
|
+
| [nanodb](../reComputer/scripts/nanodb/readme.md) | Vector Database | 76GB | 7.0GB | `reComputer run nanodb` |
|
61
|
+
| whisper | Audio | 1.5GB | 6.0GB | `reComputer run whisper` |
|
62
|
+
| [yolov8-counter](/reComputer/scripts/yolov8-counter/readme.md) |Computer Vision | 6M | 13.8GB | `reComputer run yolov8_counter` |
|
60
63
|
> Note: You should have enough space to run example, like `LLaVA`, at least `27.4GB` totally
|
61
64
|
|
62
65
|
More Examples can be found [examples.md](./docs/examples.md)
|
@@ -12,8 +12,6 @@ reComputer/scripts/check.sh
|
|
12
12
|
reComputer/scripts/run.sh
|
13
13
|
reComputer/scripts/update.sh
|
14
14
|
reComputer/scripts/Sheared-LLaMA-2.7B-ShareGPT/run.sh
|
15
|
-
reComputer/scripts/hello-world/readme.md
|
16
|
-
reComputer/scripts/hello-world/run.sh
|
17
15
|
reComputer/scripts/live-llava/run.sh
|
18
16
|
reComputer/scripts/llama3/run.sh
|
19
17
|
reComputer/scripts/llava/run.sh
|
@@ -25,4 +23,6 @@ reComputer/scripts/nanoowl/run.sh
|
|
25
23
|
reComputer/scripts/ollama/run.sh
|
26
24
|
reComputer/scripts/stable-diffusion-webui/run.sh
|
27
25
|
reComputer/scripts/text-generation-webui/run.sh
|
28
|
-
reComputer/scripts/whisper/run.sh
|
26
|
+
reComputer/scripts/whisper/run.sh
|
27
|
+
reComputer/scripts/yolov8-counter/readme.md
|
28
|
+
reComputer/scripts/yolov8-counter/run.sh
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "jetson-examples"
|
7
|
-
version = "0.0.
|
7
|
+
version = "0.0.8"
|
8
8
|
authors = [{ name = "luozhixin", email = "zhixin.luo@seeed.cc" }]
|
9
9
|
description = "Running Gen AI models and applications on NVIDIA Jetson devices with one-line command"
|
10
10
|
readme = "README.md"
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.0.7"
|
@@ -3,6 +3,31 @@
|
|
3
3
|
BASE_PATH=/home/$USER/reComputer
|
4
4
|
JETSON_REPO_PATH="$BASE_PATH/jetson-containers"
|
5
5
|
|
6
|
+
check_disk_space() {
|
7
|
+
directory="$1" # a directory
|
8
|
+
required_space_gb="$2" # how many GB we need
|
9
|
+
|
10
|
+
# get disk of directory
|
11
|
+
device=$(df -P "$directory" | awk 'NR==2 {print $1}')
|
12
|
+
echo $device
|
13
|
+
|
14
|
+
# get free space in KB
|
15
|
+
free_space=$(df -P "$device" | awk 'NR==2 {print $4}')
|
16
|
+
echo $free_space
|
17
|
+
|
18
|
+
# change unit to GB
|
19
|
+
free_space_gb=$(echo "scale=2; $free_space / 1024 / 1024" | bc)
|
20
|
+
echo $free_space_gb
|
21
|
+
|
22
|
+
# check and fast-fail
|
23
|
+
if (( $(echo "$free_space_gb >= $required_space_gb" | bc -l) )); then
|
24
|
+
echo "disk space ($1) enough, keep going."
|
25
|
+
else
|
26
|
+
echo "disk space ($1) not enough!! we need $2 GB!!"
|
27
|
+
exit 1
|
28
|
+
fi
|
29
|
+
}
|
30
|
+
|
6
31
|
# check data files TODO: support params to force download
|
7
32
|
DATA_PATH="$JETSON_REPO_PATH/data/datasets/coco/2017"
|
8
33
|
if [ ! -d $DATA_PATH ]; then
|
@@ -18,31 +18,6 @@ check_is_jetson_or_not() {
|
|
18
18
|
}
|
19
19
|
check_is_jetson_or_not
|
20
20
|
|
21
|
-
check_disk_space() {
|
22
|
-
directory="$1" # a directory
|
23
|
-
required_space_gb="$2" # how many GB we need
|
24
|
-
|
25
|
-
# get disk of directory
|
26
|
-
device=$(df -P "$directory" | awk 'NR==2 {print $1}')
|
27
|
-
echo $device
|
28
|
-
|
29
|
-
# get free space in KB
|
30
|
-
free_space=$(df -P "$device" | awk 'NR==2 {print $4}')
|
31
|
-
echo $free_space
|
32
|
-
|
33
|
-
# change unit to GB
|
34
|
-
free_space_gb=$(echo "scale=2; $free_space / 1024 / 1024" | bc)
|
35
|
-
echo $free_space_gb
|
36
|
-
|
37
|
-
# check and fast-fail
|
38
|
-
if (( $(echo "$free_space_gb >= $required_space_gb" | bc -l) )); then
|
39
|
-
echo "disk space ($1) enough, keep going."
|
40
|
-
else
|
41
|
-
echo "disk space ($1) not enough!! we need $2 GB!!"
|
42
|
-
exit 1
|
43
|
-
fi
|
44
|
-
}
|
45
|
-
|
46
21
|
echo "run example:$1"
|
47
22
|
BASE_PATH=/home/$USER/reComputer
|
48
23
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Abstract
|
2
|
+
This script facilitates YOLOv8 in counting retail products, enabling real-time detection of items removed from the shelf by users.
|
3
|
+
The project includes a test video located in the ```/video``` directory within a Docker container, with the test results saved in ```/result``` and subsequently transmitted to the host Home directory via Docker.
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
|
8
|
+
PyPI(recommend)
|
9
|
+
|
10
|
+
```sh
|
11
|
+
pip install jetson-examples
|
12
|
+
```
|
13
|
+
|
14
|
+
Linux (github trick)
|
15
|
+
```sh
|
16
|
+
curl -fsSL https://raw.githubusercontent.com/Seeed-Projects/jetson-examples/main/install.sh | sh
|
17
|
+
```
|
18
|
+
|
19
|
+
Github (for Developer)
|
20
|
+
|
21
|
+
```sh
|
22
|
+
git clone https://github.com/Seeed-Projects/jetson-examples
|
23
|
+
cd jetson-examples
|
24
|
+
pip install .
|
25
|
+
```
|
26
|
+
|
27
|
+
## Quickstart
|
28
|
+
```sh
|
29
|
+
reComputer run yolov8-counter
|
30
|
+
```
|
31
|
+
## TODO List
|
32
|
+
- [ ] Add a host-side visual terminal interface for yolov8-counter.
|
33
|
+
|
34
|
+
## FAQs
|
35
|
+
1. The project has been tested on the Jetson Orin platform, and its execution entails the use of Docker; therefore, it is essential to ensure that all necessary Docker components are fully installed and functional.
|
36
|
+
2. During program execution, you may encounter an ```ERROR: Could not open requirements file.``` This error message does not impact the normal operation of the program and can be safely ignored.
|
37
|
+
3. Currently, real-time visualization of test results from within the Docker container to the host terminal is not supported. However, post-detection outcomes are copied from the container's image to the ```/Home/result``` directory on the host system for review.
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
docker pull yaohui1998/yolov8_counter
|
4
|
+
|
5
|
+
if [ "$(docker ps -aq -f name=counter)" ]; then
|
6
|
+
echo "Found existing container named counter. Executing Python script inside the container..."
|
7
|
+
docker start counter
|
8
|
+
docker exec counter python3 yolo_counting.py
|
9
|
+
docker cp counter:/usr/src/ultralytics/result/ ~/
|
10
|
+
else
|
11
|
+
echo "No existing container named counter found. Pulling image and running container..."
|
12
|
+
docker run -it -d --network host \
|
13
|
+
--ipc=host \
|
14
|
+
--runtime=nvidia \
|
15
|
+
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
|
16
|
+
-v /home:/home \
|
17
|
+
-e DISPLAY=:0 \
|
18
|
+
--privileged \
|
19
|
+
--name yolov8_counter \
|
20
|
+
--device=/dev/*:/dev/* \
|
21
|
+
yaohui1998/yolov8_counter
|
22
|
+
docker exec yolov8_counter python3 yolo_counting.py
|
23
|
+
docker cp -r yolov8_counter:/usr/src/ultralytics/result/ ~/
|
24
|
+
|
25
|
+
fi
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.0.6"
|
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
./run.sh $(./autotag llava) \
|
3
|
-
python3 -m nano_llm.agents.video_query --api=mlc \
|
4
|
-
--model Efficient-Large-Model/VILA-2.7b \
|
5
|
-
--max-context-len 768 \
|
6
|
-
--max-new-tokens 32 \
|
7
|
-
--video-input /dev/video0 \
|
8
|
-
--video-output webrtc://@:8554/output \
|
9
|
-
--nanodb /data/nanodb/coco/2017
|
File without changes
|
{jetson_examples-0.0.6 → jetson_examples-0.0.8}/jetson_examples.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/llava-v1.6-vicuna-7b/run.sh
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/stable-diffusion-webui/run.sh
RENAMED
File without changes
|
{jetson_examples-0.0.6 → jetson_examples-0.0.8}/reComputer/scripts/text-generation-webui/run.sh
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|