翻篇收录说明
翻篇网页快照

Live VLM WebUI | Jetson AI Lab

https://www.jetson-ai-lab.com/tutorials/live-vlm-webui/

最近抓取:2026-12-04 17:20:49(北京时间)

最近内容变化:2026-12-02 04:10:04(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

A convenient interface for evaluating Vision Language Models in real-time with WebRTC webcam streaming, OpenAI-compatible API support, and interactive prompt editor.

正文摘录

Back to Tutorials Live VLM WebUI A convenient interface for evaluating Vision Language Models in real-time with WebRTC webcam streaming, OpenAI-compatible API support, and interactive prompt editor. Author Chitoku YATO Live VLM WebUI is a convenient interface for evaluating Vision Language Model in real-time: 🎥 Multi-source video input WebRTC webcam streaming (stable) 🧪 RTSP IP camera support (Beta) 🔌 OpenAI-compatible API - Works with Ollama, vLLM, NIM, or any vision API 🔧 Flexible deployment - VLM backend: local inference or cloud APIs ✍️ Interactive prompt editor - 8 preset prompts + custom prompts ⚡ Async processing - Smooth video while VLM processes frames in background Prerequisites Supported Devices: Jetson AGX Thor Developer Kit Jetson AGX Orin (64GB) Jetson AGX Orin (32GB) Jetson Orin Nano (8GB) JetPack Version: JetPack 6 (L4T r36.x) JetPack 7 (L4T r38.x) Storage: NVMe SSD highly recommended About 4 GB for live-vlm-webui container Space for pulling (downloading) models on Ollama (if running locally) Overview Vision Language Models are now available in sizes suitable for edge deployment, from 4b to 90b+ parameters. Open-weight models include Qwen 2.5/3 VL, Gemma 3, Llama 3.2/4 Vision, Phi-3.5-vision, and NVIDIA’s Cosmos-Reason1 and Nemotron Nano VL. Available Open-Weight VLM Models CreatorModel NameSizesAlibabaQwen 2.5 VL3b, 7b, 32b, 72bAlibabaQwen 3 VL2b, 4b, 8b, 30b, 32b, 235bGoogleGemma 34b, 12b, 27bMetaLlama 3.2-Vision11b, 90bMetaLlama 416x17b, 128x17bMicrosoftPhi-3.5-vision4.2bNVIDIACosmos-Reason17bNVIDIANemotron Nano 12B V2 VL12b Testing VLMs in real-time presents specific challenges: Web interfaces like Open WebUI require manual image uploads (no streaming) Lack of unified benchmarking tools across platforms Limited real-time GPU monitoring integration Live VLM WebUI addresses these gaps by providing a WebRTC-based interface for real-time vision inference testing with integrated system monitoring. Demo Video Watch the Live VLM WebUI in action: Your browser does not support the video tag. Getting Started Step 1: Prepare VLM Backend (Ollama) First, install Ollama as the backend to serve VLMs. Ollama official installer supports Jetson. # Ollama installer for Linux/Mac curl -fsSL https://ollama.com/install.sh | sh # Download recommended model (lightweight) ollama pull gemma3:4b # Or other vision models # ollama pull llama3.2-vision:11b # ollama pull qwen2.5-vl:7b Warning - Jetson Thor (JetPack 7.0) Users: Ollama 0.12.10 has GPU inference issues on Jetson Thor. Use version 0.12.9: curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=0.12.9 sh Step 2: Install Live VLM WebUI git clone https://github.com/nvidia-ai-iot/live-vlm-webui.git cd live-vlm-webui ./scripts/start_container.sh Step 3: Access the Web Interface Open your web browser and navigate to: Local URL: https://localhost:8090 (if running browser on same machine) Network URL: https://<IP_ADDRESS>:8090 (from another device on same network) Local URL: https://localhost:8090 Network URL: https://10.110.50.252:8090 Tip for Jetson Orin Nano Users: It’s recommended to use a PC connected on the same network and access the web UI remotely for better performance. How to Use Live VLM WebUI Step 4: Configure and Start Accept the Self-signed SSL Certificate Click “Advanced” button Click “Proceed to <IP_ADDRESS> (unsafe)” Allow camera access when prompted Verify VLM API Configuration The interface auto-detects local VLM backends. Verify in the “VLM API Configuration” section: API Endpoint: http://localhost:11434/v1 (Ollama) or http://localhost:8000/v1 (vLLM) Model: Selected model name (e.g., gemma3:4b) For cloud APIs, manually enter the endpoint and API key. Start Camera and VLM Analysis Click “Start Camera and Start VLM Analysis” and grant camera permissions. The interface begins streaming and analyzing frames based on the configured interval. Main Features Real-time Display The main pane on the right displays the following information: 1. Real-time AI Analysis Results The VLM Output Info section shows: Top-right: Inference latency, average latency, total analysis count Current VLM model being used Current prompt text Analysis result text (with Markdown support) 2. Live Video Stream WebRTC streams your webcam video with: Mirror button (top-left) - Convenient mirror display when facing the camera Overlay text - Analysis results overlaid on video (if enabled in settings) 3. GPU/CPU Monitoring Real-time hardware usage monitoring: GPU Usage (using jtop) VRAM Usage (using jtop) CPU Usage System RAM Detailed Settings The left settings menu allows you to customize configuration and behavior. 1. Prompt Customization The most important setting is the Prompt Editor at the bottom of the left menu. Quick Prompts - 8 preset prompts ready to use: Scene Description: “Describe what you see in this image in one sentence.” Object Detection: “List all objects you can see in this image, separated by commas.” Activity Recognition: “Describe the person’s activity and what they are doing.” Safety Monitoring: “Are there any safety hazards visible? Answer with ‘ALERT: description’ or ‘SAFE’.” Emotion Detection: “Describe the facial expressions and emotions of people visible.” Accessibility: “Provide a detailed description of the scene for a visually impaired person.” OCR / Text Recognition: “Read and transcribe any text visible in the image.” Yes/No Question: “Answer with Yes or No only: Is there a person visible?” Custom Prompt - Enter your own unique prompts in the Custom Prompt field. Tip: Many models, including gemma3:4b, support multiple languages. Try instructing the model in different languages and output in the language. Real-time Prompt Engineering You can perform what we might call “real-time vision prompt engineering.” For example, using the object detection prompt as-is might produce: “Here is a list of objects I see in the image: person, desk, monitor…” The model helpfully includes a preamble. If you want to feed this directly as CSV to a downstream application, this is inconvenient, so you can customize the prompt: List all objects you can see in this image, separated by commas. Do not start with "Here is a list of..." This suppresses the preamble. This real-time evaluation capability is one of the tool’s unique advantages. 2. Backend Configuration The VLM API Configuration at the top of the left menu supports multiple VLM backends. API Base URL Auto-detects if Ollama, vLLM, or SGLang is running locally on the same machine If not detected, you can specify cloud APIs (NVIDIA API Catalog is set by default) When using cloud APIs, an API Key field appears for entering your credentials Model Selection Queries the specified API and lists available models. 3. Camera Settings The Camera and App Control section in the middle of the left menu handles camera selection and related settings. Camera Selection Lists all cameras detected by your browser on the client PC. Most modern laptops should have a front-facing camera available. If using Jetson directly with a desktop browser, connect a USB camera. You can switch cameras even during VLM analysis. Frame Processing Interval WebRTC camera frame processing (simply echoing frames from browser to UI server) and VLM analysis processing run asynchronously. By default, after VLM analysis completes, it waits for the next frame number divisible by 30 before starting the next analysis. If you want to slow down the analysis pace to have more time to read each result, increase this number. RTSP Stream (Beta) Tentative support for RTSP streams from IP surveillance cameras. Testing hasn’t been extensive across many cameras, so please report issues on GitHub if you encounter problems. Verified Platforms PlatformGPUStatusInference SpeedPC (RTX 6000 Ada)RTX 6000 Ada✅<1 sec/frame (gemma3:4b)Jetson Orin Nano 8GB1024-core Ampere✅7-8 sec/frame (gemma3:4b)Jetson Thor 128GB2560-core Blackwell✅1-2 sec/frame (llama3.2-vision:11b)DGX Spark6144-core Blackwell✅1-2 sec/frame (llama3.2-vision:11b)Mac (M3)Apple Silicon✅2-4 sec/frame (gemma3:4b)Windows (WSL2)RTX A3000✅2-4 sec/frame (gemma3:4b) Jetson Orin Nano Performance Even the most affordable Jetson, the Jetson Orin Nano Developer Kit, successfully runs gemma3:4b via Ollama! While each frame takes 7-8 seconds to process, it runs continuously, opening up possibilities for real-time systems. Use Cases Model Benchmarking Test and compare VLM performance across different scenarios: Frame processing latency measurement Object detection accuracy and spatial reasoning Structured output capabilities (JSON, CSV) OCR performance evaluation Multi-language support testing Use real-time GPU/CPU metrics to compare models on the same hardware or evaluate the same model across platforms. Robotics Applications VLM-based vision for robotic systems: Object recognition and spatial reasoning Scene understanding for navigation Human-robot interaction scenarios Prototyping and Development Rapid iteration on vision-based applications: Real-time prompt engineering and testing Integration with existing inference backends Reference implementation for custom deployments Computer Vision Pipeline Alternatives VLMs can replace or augment traditional CV pipelines in certain applications. NVIDIA’s Video Search and Summarization (VSS) demonstrates this approach in smart city deployments. Development: Building Your Own App Live VLM WebUI is open-source and can be extended or integrated into your own applications. Architecture Overview The system consists of three main components: Frontend (Web UI) - HTML/CSS/JavaScript with WebRTC for video streaming Backend Server - Python-based WebRTC server using aiortc VLM Backend - Any OpenAI-compatible API (Ollama, vLLM, SGLang, cloud APIs) Key Python Modules server.py - Main WebRTC server with WebSocket support video_processor.py - Video frame processing and VLM integration gpu_monitor.py - Cross-platform GPU/system monitoring (Jetson support via jetson-stats) vlm_service.py - VLM API integrat