Zero-Shot Detection — Jetson Platform Services
Deploys a CLIP-based open vocabulary object detection service on Jetson via JPS. Objects are specified as free-text prompts at runtime (e.g. "red apple", "person with hat") — no retraining required. 10 GB swap is strongly recommended.
Hardware: reComputer J4012 (Orin NX 16GB), JetPack 6.0, Ubuntu 22.04
Package: zero_shot_detection-1.1.0.tar.gz
Reference: references/source.body.md (Seeed wiki source, package download link)
Execution model
Run one phase at a time. After each phase:
- If output contains
[STOP]→ stop immediately, consult the failure decision tree - If output ends with
[OK]→ tell the user "Phase N complete" and proceed to the next phase
Phase 1 — add swap (~2 min)
Check current swap:
bashfree -h
If swap is already ≥ 10 GB → skip to Phase 2.
Add a 10 GB swapfile:
bashsudo fallocate -l 10G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile
Verify:
bashfree -h
Expected: Swap: row shows ~10G total.
[OK]
Phase 2 — extract package (~1 min)
Confirm the package is present:
bashls -lh zero_shot_detection-1.1.0.tar.gz
If missing → [STOP] package not found. Download link is in references/source.body.md.
Extract and enter the directory:
bashtar -xzvf zero_shot_detection-1.1.0.tar.gz cd zero_shot_detection
[OK] when cd zero_shot_detection succeeds and ls shows config/ and docker-compose.yml.
Phase 3 — copy configs (~30 s)
bashsudo cp config/platform-nginx.conf /etc/nginx/conf.d/ sudo cp config/prometheus.yml /etc/prometheus/
Verify:
bashls /etc/nginx/conf.d/platform-nginx.conf ls /etc/prometheus/prometheus.yml
[OK] if both files are present.
Phase 4 — start platform services (~2 min)
Start the 6 JPS services in order:
bashsudo systemctl start jetson-monitoring sudo systemctl start jetson-sys-monitoring sudo systemctl start jetson-redis sudo systemctl start jetson-ingress sudo systemctl start jetson-vst sudo systemctl start jetson-platform-services
Verify all are running:
bashsystemctl is-active jetson-monitoring jetson-sys-monitoring jetson-redis \ jetson-ingress jetson-vst jetson-platform-services
Expected: active for each service. Any failed or inactive → [STOP] service failed: <name>.
[OK] when all 6 show active.
Phase 5 — start detection service (~3–5 min first run)
bashdocker compose up -d
Monitor startup (first run pulls the container image):
bashdocker compose logs -f
Wait until logs show the service is ready. Then open in a browser:
http://<jetson-ip>/zero-shot-detection
Enter a text prompt in the UI (e.g. red apple, person with hat) to start detecting.
[OK] when the web UI loads and returns detections for a test prompt.
Failure decision tree
| Symptom | Action |
|---|---|
[STOP] package not found | Download zero_shot_detection-1.1.0.tar.gz from the link in references/source.body.md |
[STOP] service failed: <name> | Run sudo systemctl status <name> and journalctl -u <name> -n 50 for logs |
jetson-ingress fails | nginx config error — run sudo nginx -t to validate; check Phase 3 copy succeeded |
docker compose up fails — image pull error | Check internet connectivity: ping registry-1.docker.io. Retry docker compose up -d |
docker compose up fails — port conflict | Another service is using port 80. Run `sudo ss -tlnp |
| OOM / container exits immediately | Swap not active. Re-run Phase 1. Check free -h shows 10G swap |
| Web UI loads but no detections returned | Model still loading (~2–3 min on first inference). Wait and retry the prompt |
| Text prompt returns no boxes | Try a simpler, more common object. CLIP works best with natural language descriptions |
| Web UI unreachable | Confirm Jetson IP: ip addr show. Ensure host and Jetson are on the same network |


