Spaces:
Running
Download processor/docs/en/README.md from Stouching-Robotics/DataFlowing: direct link, hf CLI and curl.
- Browser
- Download file 38.1 kB
-
https://huggingface.co/spaces/Stouching-Robotics/DataFlowing/resolve/main/processor/docs/en/README.md
- Command line
-
hf download hf://spaces/Stouching-Robotics/DataFlowing/processor/docs/en/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Stouching-Robotics/DataFlowing/resolve/main/processor/docs/en/README.md
processor Project Guide
processor is a system for receiving, processing, reviewing, and exporting data.
This guide keeps the project features, pages, screenshots, and operating instructions in one document. Read it from top to bottom without switching between multiple files.
Contents
- Overall process
- Installation and startup
- Home
- Projects and received data
- Workflow
- Data annotation
- Video viewing and review
- Approved data and export
- Failed data
- Trash
- Frequently asked questions
- Data and program information
- Code structure and responsibilities
1. Overall process
The complete process is:
Install and start
β
Open Home
β
Create or select a project
β
Receive data
β
Select and run a workflow
β
View videos and processing results
β
Annotate, inspect, and review
β
Export data
The main pages currently available in the system are:
- Home: view the overall data status;
- Projects: view projects and Episodes;
- Workflow: configure and run workflows;
- Annotation: manage annotations;
- Video Review: view videos and review data;
- Trash: view deleted data.
The Users feature is still under development and is not included in the current operating process.
2. Installation and startup
2.1 Download and open the project
After downloading the project, open:
processor/
2.2 Start the program
Linux:
cd processor
python deploy.py
To check the computer environment without starting the services:
python deploy.py --check-only
When using an external AI API:
python deploy.py --skip-vllm
Windows users can run the Windows deployment script included in the project.
2.3 Open the web page
Wait for the services to start, then open the address provided by the administrator in a browser.
When the sign-in page appears, the web application has started. Open:
/health
to check whether the service is healthy.
Screenshot to be added: successful startup and sign-in page.
2.4 If something goes wrong
- If the page does not open, check whether the backend is running.
- If data is not processed, check whether the Worker is running.
- After a workflow is configured, matching uploaded data should run through it automatically. If processing does not start, check the workflow or run it manually.
3. Home
3.1 What is Home for?
Home shows the overall status of all data.
3.2 Home page
The numbered areas are:
- Left navigation menu;
- Summary statistics;
- Project list;
- Recent data;
- Refresh button.
3.3 Data statuses
| Status | Meaning |
|---|---|
| Reviewing | Waiting for or undergoing inspection |
| Approved | Review passed |
| Failed | Processing failed |
| Trash | Deleted and recoverable |
3.4 How to use it
- Sign in and open Home.
- Check the summary statistics at the top.
- Click a project name to view the project.
- If the data is not current, click Refresh in the upper-right corner.
3.5 What indicates normal operation?
When data changes from Reviewing to Approved, its inspection is complete and it has passed review.
If Processing remains visible, wait and refresh the page. If it still does not change, check the Worker.
4. Projects and received data
4.1 What is a project?
A project stores a related group of data. One project can contain multiple Episodes.
processor receives data sent by the collector and stores it in the corresponding project. Data acquisition itself does not take place inside processor.
4.2 View existing projects
Open Projects in the left navigation to view existing projects and received data.
The numbered controls are:
Search projects: enter a project name to find it quickly;New Project: create a new project that will receive data;Project information: view the project name, status, workflow, observed inputs, Episode count, and receiving statistics;Edit Project: change the project name, workflow, or status;Delete: delete the current project. Deleted data can be viewed in Trash;Expand received batches: click the project row or the arrow on the right to view received batches and Episodes.
active means the project is in use and can continue receiving data. paused means the project is paused.
4.3 Create a project
Click New Project in the upper-right corner and enter the project information.
The fields are:
Project Name: the project name;Workflow: bind one current workflow to the project. You may create a new empty workflow or select an existing workflow;Status:activeenables the project andpausedpauses it;Target Episodes: planned number of Episodes.0means no limit;Description: optional project description;Save: save the project.
The project name cannot be empty. After a new project is saved, the system asks whether you want to open the Workflow page and continue configuration.
4.4 Select a workflow
Select the required workflow from the Workflow field on the project form.
The workflow list provides:
- Click the
Workflowfield to open the workflow list; - Click
+ New Workflowto create an empty workflow; - A workflow with the
Templatetag is a template workflow; - Click an existing workflow name to bind it to the current project;
- Click the button on the right to open and edit that workflow.
One project uses one current workflow. Selecting another workflow saves it as the project's new current workflow binding.
Choose according to the input data:
- Choose an RGB workflow for RGB data.
- Choose an RGB-D workflow for RGB plus Depth data.
- Choose a workflow containing Glove Sensor when glove sensor data is present.
- If you are unsure, confirm the project's input types before making a selection.
4.5 Data receiving process
Collector generates data
β
Collector sends data
β
processor receives data
β
Extract and inspect
β
Match the project and workflow
β
New Episodes appear in the project
4.6 How to receive data
- Create a project and select the correct workflow.
- Keep the project status set to
active. - Send data from the collector to processor.
- Wait for processor to receive, extract, and inspect the data.
- Expand the project and confirm that the new batch and Episodes appear.
When a project already has a workflow, the system processes newly received data. Without a bound workflow, data is only received and stored. If a workflow is bound and saved later, the system processes the existing batches.
4.7 Important notes
- Do not close the collector's sending program while data is being transferred.
- Do not send the same data again before extraction and inspection finish.
- Each Episode should contain its corresponding video or sensor data.
- If receiving fails, read the failure message before sending or processing the data again.
- Do not force a workflow to run when the project inputs do not match it.
5. Workflow
5.1 What is a workflow?
A workflow determines how received data is processed.
Input data β Process data β Inspect results β Export data
5.2 Workflow page
Click Workflow in the left navigation.
The numbered controls are:
Workflow selector: switch between existing workflows or create a new workflow;Workflow name: view or change the current workflow name;Canvas: place nodes and connect them into a processing flow;Node list: input, processing, review, and export nodes;Template: start from a workflow template;Save: save the current workflow.
5.3 Start from a template
Click Template in the upper-right corner and select a template that matches the received data.
RGB-D_Workflow: a processing chain for RGB and depth data;Stereo-RGB_Workflow: a processing chain for left and right RGB data;Cancel: close the dialog without applying a template.
A template can be applied to a new or existing workflow. Applying it replaces the processing chain on the current canvas but does not change the current workflow name.
A template contains processing steps only. Input device nodes are generated from the data actually received by the project. If the canvas contains unsaved changes, save them before applying another template.
5.4 Check a complete workflow
The following image shows a connected workflow.
Stereo RGB Camera: left and right RGB videos received by the project;Glove Sensor: glove sensor data received by the project;AI Annotation: generate task text and annotation segments from RGB video;Human Review: send video, sensor data, and annotations for manual review;LeRobot Export: prepare the data for export using the workflow settings;Save: save the workflow after checking its connections.
In this example, the video, glove data, and AI annotations all enter manual review:
Stereo RGB Camera ββ¬β AI Annotation ββ
βββββββββββββββββββ€
Glove Sensor βββββββββββββββββββββββββ€
β
Human Review
β
LeRobot Export
5.5 AI annotation settings
Open the settings dialog of the AI Annotation node to select the annotation language and API.
Label Language: choose Chinese or English annotations;Saved API Profile: select a saved API profile;API Provider: select the API provider;API Model: enter or select the model;API Key: enter the API key;API Base URL: enter the API address. Leave it empty to use the provider's official default;Test Connection: test whether the API is available before saving;Save: save the AI annotation settings.
API keys should appear masked. Do not share screenshots that reveal a complete API key.
5.6 Workflow module reference
The node list on the right is divided into INPUT, PROCESS, REVIEW, and EXPORT. Drag a node onto the canvas and connect its inputs and outputs.
INPUT: source data
| Module | Receives | Provides | When to use it |
|---|---|---|---|
| Glove Sensor | Glove pressure and joint data | Glove Sensor Data | When the project contains glove sensor data |
| RGB Camera | One color video | RGB Video | A monocular standard camera, monocular fisheye camera, or the color stream of an RGB-D camera |
| RGB-D Camera | Color video and a real depth stream | RGB Video, Depth | One RGB-D camera with depth data |
| Stereo RGB Camera | Left and right color videos | Left RGB Video, Right RGB Video | Stereo RGB video without a direct real-depth output |
| Stereo RGB-D Camera | Left and right color videos plus depth | Left RGB Video, Right RGB Video, Depth | Stereo video that also contains real depth |
PROCESS: processed data
| Module | Requires | Produces | Purpose |
|---|---|---|---|
| Human Annotation | RGB Video | Annotation | Manually create and edit task segments |
| AI Annotation | RGB Video | Annotation | Automatically generate Chinese or English annotations using a local model or API |
| RGB_TO_2D_BareHand | RGB Video | Hand 2D | Detect 2D keypoints in bare-hand video |
| RGB_TO_2D_BlackGlove | RGB Video | Hand 2D | Detect 2D keypoints in black-glove video |
| RGB-D_3D_BareHand | RGB Video + Depth | Hand 3D | Calculate real 3D bare-hand keypoints using matched depth data |
| RGB-D_3D_BlackGlove | RGB Video + Depth | Hand 3D | Calculate real 3D black-glove keypoints using matched depth data |
The RGB_TO_2D modules produce two-dimensional keypoints. Their spatial preview is for viewing only and is not exported as real metric 3D data.
REVIEW: inspect data
| Module | Purpose | Result |
|---|---|---|
| Human Review | Let a user play the video and inspect keypoints, depth, sensor data, and annotations | Output Reviewed Data after approval |
| AI Quality Review | Automatically check decoding, frame continuity, black or frozen frames, and AI annotation coverage | Output Reviewed Data after passing; send abnormal data for manual handling |
EXPORT: export data
| Module | Purpose | Main settings |
|---|---|---|
| LeRobot Export | Export a LeRobot dataset | Select v2.1 or v3.0; includes the corresponding meta, data, and videos |
| HDF5 Export | Export one HDF5 data file | Save with gzip compression |
Connect an export module after a review module so that only inspected and approved data enters the export flow.
5.7 Common workflow examples
Standard RGB:
RGB β Hand 2D β Human Review β Export
RGB and depth:
RGB + Depth β Hand 3D β Human Review β Export
RGB and glove sensor:
RGB + Glove Sensor β Human Review β Export
5.8 Important rules
- Both RGB and Depth are required to calculate real 3D.
- RGB alone can produce 2D keypoints.
- A spatial preview produced from RGB alone is not real metric 3D.
- A step is skipped when its required input does not match the Episode.
Input mismatch means the workflow requires different data from the current project. Select a matching workflow.
6. Data annotation
6.1 Select data to annotate
Click Annotation in the left navigation. Expand a project on the right, then select an Episode.
Annotation: open the Annotation page;- Click a project name to expand it;
- Click an Episode number to load its video and existing annotations.
If the center shows Select an episode to review, no Episode has been selected. This is not a system failure.
6.2 View and edit annotations
Preview Options: show or hide keypoints, trails, depth, and 3D previews;RGB and 2D keypoints: view the original image and 2D hand keypoints;3D hand space: view hand keypoints in space;Depth pseudo-color preview: view depth data in the browser;AI Annotate: run AI annotation using the workflow settings;Annotation segment: click a segment on the right to view or edit it;Set Start / Set End: use the current frame as the segment's start or end frame;Save Changes: save changes to the segment name and frame range.
6.3 Manually edit an annotation
- Click the annotation segment that needs editing.
- Check its start frame, end frame, and task name.
- Make the changes and click
Save Changes. - Check the annotation block on the timeline at the bottom.
6.4 AI annotation
- Confirm that
AI Annotationis configured in the workflow. - Select Chinese or English in the workflow settings.
- Click
AI Annotate. - Wait for the annotation segments to be generated.
- Manually inspect the result and correct any errors.
- If the workflow contains this feature, AI annotation runs automatically during workflow processing.
- Network fluctuations may occasionally leave a short segment without annotation information.
7. Video viewing and review
7.1 Select data awaiting review
Click Reviewing under Video Review, then select an Episode from the right panel.
Reviewing: view data waiting for manual review;Expand project: view the Episodes in a project;Select Episode: open the data and view its FPS, frame count, cameras, and processing status;Approve: approve the current Episode after checking it;Reprocess: run the workflow bound to the project again when the result is incorrect.
7.2 Inspect video and processing results
Preview Options: show or hide different preview layers;RGB image: view the color video. When keypoint display is enabled, 2D hand keypoints are overlaid;3D hand space: inspect hand keypoints in space;Depth pseudo-color preview: check whether the depth data looks normal;Read-only annotation segments: inspect task names and frame ranges;Playback and frame controls: play the video or inspect details with the previous-frame and next-frame buttons;Approve: approve the current Episode.
Wait for the related data to finish loading before playback. RGB, 2D, 3D, depth, and sensor views should display the same frame number.
7.3 About the depth view
Blue, green, yellow, and other colors in the depth view are only a browser preview.
The depth video stores raw 12-bit depth codes. The pseudo-color image is not written back to the original data.
7.4 Common display problems
- Black screen: wait for the current Episode to load, then refresh the page.
- No 3D hand: check whether the workflow includes 3D processing and whether the Episode contains Depth.
- Keypoints do not move: reprocess that Episode.
- Playback stutters: wait until the related data has been cached before playing.
8. Approved data and export
8.1 Approved data
Click Approved under Video Review to view data that has passed review.
Approved: open the Approved list;Multi-select mode: clickSelectat the top of the page. The button changes toCancelwhile this mode is active;Select All: select every Episode in the current list;Episode checkbox: select one Episode or multiple Episodes;Export: export this single Episode;Unreview: remove approval and return the Episode to the Reviewing list.
8.2 Export process
Export one Episode:
- Click
Exporton that Episode's card. - Wait for the export to finish and download the archive.
Batch export:
- Click
Selectat the top of the page. - Select one or more Episodes, or click
Select All. - A
Batch Downloadaction bar appears after Episodes are selected. - Click
Batch Downloadand wait for the export to finish.
The export format comes from the current workflow's export node, such as LeRobot 2.1, LeRobot 3.0, or HDF5. No separate export page is required.
8.3 Exported content
Project name/
βββ meta/ # Descriptions and statistics
βββ data/ # Per-frame data, keypoints, and sensor data
βββ videos/ # Videos
Processed keypoints, annotations, and glove sensor data are exported together with the corresponding source data.
9. Failed data
9.1 Handling process
See Failed
β
Open the failed data
β
Read the error message
β
Click Retry or Reprocess
β
Wait for processing
Screenshot to be added: Failed page.
9.2 Common errors
| Error | What to do |
|---|---|
| No RGB | Check whether a color video was uploaded |
| No Depth | Real 3D cannot be calculated |
| Workflow mismatch | Select a matching workflow |
| AI annotation failed | Check the API settings and retry |
| Video cannot be opened | Send it again from the collector or contact the administrator |
| Worker is not running | Ask the administrator to restart the service |
If processing still fails after two retries, provide the data name, an error screenshot, the time of failure, and the steps that caused it.
10. Trash
10.1 What is Trash for?
Deleted data first enters Trash.
10.2 How to use it
- Click
Trashin the left navigation; - Check the remaining retention time;
- Click
Restoreif the data should be kept; - Click
Deleteonly when the data can be permanently removed; Purge Allpermanently deletes everything in Trash.
10.3 Important notes
- Data in Trash can be restored.
- Permanently deleted data usually cannot be recovered.
- Confirm again before emptying Trash.
- If data cannot be found, first check its project name and deletion time.
11. Frequently asked questions
The page does not open
Check whether the service is running.
Data remains in Processing
Refresh the page. If the status does not change for a long time, the Worker may not be running.
The depth view is black
Wait for loading to finish, refresh the page, and confirm that the current Episode really contains a depth video.
There is 2D but no 3D
Real 3D requires both RGB and Depth. RGB alone cannot calculate real spatial positions.
Playback stutters
Wait for loading to finish before playing. Use the previous-frame and next-frame buttons when checking details.
AI annotation has no result
Check the API settings, model, network, and language, then run AI annotation again.
Export fails
Confirm that the data has passed review, then export it again.
12. Data and program information
12.1 Project directory
processor/
βββ app/ # Backend, workflow, video, and export
βββ worker/ # Background processing tasks
βββ web/ # Pages and frontend code
βββ scripts/ # Startup, inspection, and maintenance scripts
βββ tests/ # Automated tests
βββ deploy.py # One-command deployment entry point
βββ .env # Local configuration; do not commit to Git
12.2 Project data directory
data/sessions/<project>/
βββ data/
βββ meta/
βββ videos/
Raw depth videos store depth codes. The browser's pseudo-color preview is not written back to the original data.
12.3 Startup checks
python deploy.py --check-only
python -m compileall app worker
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest -q
Do not commit .env, API keys, tokens, real data, or server credentials to Git.
13. Code structure and responsibilities
This chapter explains the frontend, backend, Worker, and data-processing code behind the pages. Normal operation does not require changing these files. When maintaining a feature, use this chapter to find the corresponding code quickly.
13.1 System code flow
Browser page
β
HTML templates and JavaScript
β
FastAPI backend APIs
β
Projects, Episodes, annotations, and workflows
β
Worker claims a processing job
β
Workflow modules run post-processing
β
Save keypoints, 3D, sensor, and annotation results
β
Video review and data export
Business data is primarily stored in project files. User accounts can use a database. The application retains a compatibility fallback when the database is temporarily unavailable.
13.2 Code directory tree
processor/
βββ app/ # Python backend
β βββ main.py # FastAPI application entry point
β βββ config.py # Environment variables and system settings
β βββ paths.py # Shared directory paths
β βββ localstore.py # Project, workflow, and Episode file state
β βββ database.py # User account database connection
β βββ models.py # Database models
β βββ workflow_dispatch.py # Workflow matching, dispatch, and backfill
β βββ workflow_bindings.py # Bind workflows to actual device inputs
β βββ ai_annotation.py # AI annotation service
β βββ export_engine.py # Shared export-job logic
β βββ lerobot_export.py # LeRobot 3.0 dataset generation
β βββ lerobot_v21.py # LeRobot 2.1 compatibility
β βββ hdf5_export.py # HDF5 dataset generation
β βββ routes/ # Page and business APIs
β βββ api/ # Project, workflow, and Worker APIs
β βββ processing/ # Workflow processing framework
β βββ registry.py # Automatic module registration
β βββ catalog.py # Module catalog for the workflow page
β βββ batch.py # Find videos and Parquet files in a batch
β βββ modules/ # Execution code for workflow nodes
βββ worker/ # Background processing program
β βββ __main__.py # Worker entry point
β βββ runner.py # Claim and execute workflow jobs
β βββ client.py # Communicate with the backend Worker API
βββ web/ # Frontend pages
β βββ templates/ # HTML page templates
β βββ static/js/ # Page interaction, playback, and rendering
β βββ workflow-studio/ # React workflow editor source
βββ scripts/ # Deployment, migration, and maintenance
βββ tests/ # Automated tests
βββ models/ # Local model files
βββ docs/ # Chinese and English documentation
βββ deploy.py # One-command deployment entry point
βββ requirements*.txt # Python dependencies
.venv*, .pytest_cache, and .backups are local environments, test caches, or backups. They are not part of the main business code.
13.3 Frontend code
The frontend has two parts:
- Standard pages use HTML templates and plain JavaScript.
- The workflow editor uses React and TypeScript.
Page templates
| File | Responsibility |
|---|---|
web/templates/base.html |
Common page frame, left navigation, and shared resources |
web/templates/overview.html |
Home page |
web/templates/tasks.html |
Project management page |
web/templates/index.html |
Annotation and video-review pages |
web/templates/trash.html |
Trash page |
web/templates/login.html |
Login page |
web/templates/users.html |
User management page, still under development |
web/templates/workflow_studio.html |
Workflow editor entry page |
Page JavaScript
| File | Responsibility |
|---|---|
web/static/js/dashboard.js |
Home statistics, recent data, and refresh |
web/static/js/tasks.js |
Create, edit, delete, and expand projects and batches |
web/static/js/app.js |
Episode list, review, deletion, and export actions |
web/static/js/player.js |
Video loading, central playback clock, and frame synchronization |
web/static/js/annotations.js |
Annotation segments, timeline, and frame-level annotation |
web/static/js/slice-preview.js |
Annotation segment preview in the upper-right corner |
web/static/js/hand-overlay.js |
Draw 2D hand keypoints over the RGB video |
web/static/js/depth-renderer.js |
Render raw 12-bit depth codes as browser pseudo-color |
web/static/js/heatmap.js |
Display glove sensor data in sync with video |
web/static/js/media-cache.js |
Cache keypoints and sensor data in IndexedDB |
web/static/js/i18n.js |
Chinese and English interface text |
web/static/js/login.js |
Login form |
web/static/js/users.js |
User management interactions, still under development |
The workflow editor source is in web/workflow-studio/src/. Its compiled files are in web/static/workflow-studio/. Change the source and rebuild the editor; do not edit the compiled output directly.
13.4 Backend entry point and page APIs
app/main.py is the backend entry point. It is responsible for:
- Starting FastAPI;
- Initializing file directories and the user database;
- Warming project and Episode metadata caches;
- Starting the upload processing queue;
- Registering page, project, video, annotation, workflow, and export APIs;
- Configuring static-file caching and large-media transfer behavior.
| File | Responsibility |
|---|---|
app/routes/pages.py |
Return the Home, Projects, Review, Workflow, and Trash pages |
app/routes/dashboard.py |
Home statistics, recent Episodes, and trends |
app/routes/session.py |
Receive archives, extract files, normalize directories, and import metadata |
app/routes/ingestion.py |
Episode list, details, approval, reprocessing, deletion, and restoration |
app/routes/video.py |
RGB video, depth code, depth preview, 2D, 3D, and sensor APIs |
app/routes/annotations.py |
Create, edit, delete, and read per-frame annotations |
app/routes/export.py |
Single export, batch export, export status, and downloads |
app/routes/auth.py |
Login, logout, and current-user APIs |
app/routes/devices.py |
Collector heartbeat and input capabilities |
13.5 Project, workflow, and Worker APIs
| File | Responsibility |
|---|---|
app/api/projects.py |
Create, edit, and delete projects; manage inputs and workflow bindings |
app/api/workflows.py |
Create, save, run, inspect usage, and retry workflows |
app/api/worker.py |
Claim jobs, download inputs, send heartbeats, and report completion or failure |
app/api/exceptions.py |
Aggregate and clear processing exceptions |
app/api/users.py |
Create users and manage roles, statuses, and deletion; still under development |
The backend and Worker job flow is:
Backend creates a workflow run
β
Worker claims the job
β
Worker downloads the Episode input
β
Workflow nodes execute
β
Worker uploads the result and reports completion
β
Episode enters Reviewing or Approved
The Worker sends regular heartbeats. If it stops, the job is not immediately lost; the backend can schedule it again after the lease expires.
13.6 Workflow processing modules
In app/processing/modules/, one Python file usually represents one workflow node. Modules are registered automatically, displayed in the workflow editor, and executed by the Worker.
| Module file | Responsibility |
|---|---|
mono_camera.py |
Single RGB input |
rgbd_camera.py |
RGB and depth input |
stereo_camera.py |
Left and right stereo RGB input |
stereo_rgbd_camera.py |
Left and right RGB plus depth input |
glove_sensor.py |
Glove sensor input |
mediapipe_hand.py |
MediaPipe hand keypoint and gesture recognition |
rgb_hand_3d.py |
Bare-hand RGB 2D keypoints and spatial preview |
black_hand_rgb_3d.py |
Black-glove RGB 2D keypoints and spatial preview |
depth_hand_3d.py |
Real 3D calculation helper used by RGB-D hand modules; not a standalone node |
black_glove_hand.py |
Black-glove keypoint processing |
ai_annotation.py |
Declare and trigger automatic AI annotation |
annotation.py |
Human annotation workflow node |
human_review.py |
Human-review gate |
ai_quality_review.py |
Automatic video and annotation quality checks |
lerobot_export.py |
LeRobot export node |
hdf5_export.py |
HDF5 export node |
When adding a workflow module, check:
- The module input and output types;
- Whether the Worker can execute it;
- Whether the workflow editor displays it correctly;
- Whether the Review page can read its output;
- Whether export modules include the new output.
13.7 Data, cache, and export code
| File | Responsibility |
|---|---|
app/localstore.py |
Scan and cache projects, Episodes, workflows, and run states |
app/storage.py |
Upload, validate, save, and remotely synchronize files |
app/remote_storage.py |
Remote storage access |
app/media_groups.py |
Organize RGB, depth, and sensor media groups |
app/media_cache.py |
Server-side media cache |
app/browser_preview.py |
Generate browser-compatible video previews |
app/artifact_resolver.py |
Locate workflow processing results |
app/export_engine.py |
Shared export flow |
app/lerobot_export.py |
Generate LeRobot 3.0 datasets |
app/lerobot_v21.py |
Generate and support LeRobot 2.1 data |
app/hdf5_export.py |
Generate HDF5 datasets |
Keep source data, processing results, and export copies distinct:
data/sessions/ # Project source data and merged processing fields
data/tmp/ # Temporary processing files
Browser IndexedDB # Frontend preview cache; can be regenerated
Export archives # Delivery files generated from workflow settings
Do not store the browser's pseudo-color depth images as source data. The source depth remains raw depth codes.
13.8 Where to change a feature
| Feature | Frontend | Backend or processing |
|---|---|---|
| Home statistics | dashboard.js |
routes/dashboard.py |
| Projects page | tasks.js |
api/projects.py |
| Upload and extraction | Projects page | routes/session.py |
| Workflow editor | workflow-studio/src/ |
api/workflows.py |
| Automatic workflow run | Project status display | workflow_dispatch.py |
| RGB video playback | player.js |
routes/video.py |
| Playback frame synchronization | player.js |
routes/video.py |
| 2D hand keypoints | hand-overlay.js |
Hand-processing modules |
| 3D hand space | player.js |
processing/modules/3d.py |
| Depth pseudo-color | depth-renderer.js |
routes/video.py |
| Glove sensor | heatmap.js |
glove_sensor.py |
| Annotation timeline | annotations.js |
routes/annotations.py |
| AI annotation | annotations.js |
ai_annotation.py |
| Video review | app.js |
routes/ingestion.py |
| Single and batch export | app.js |
routes/export.py |
| LeRobot format | Export button | lerobot_export.py, lerobot_v21.py |
| HDF5 format | Export button | hdf5_export.py |
| Trash | trash.html |
routes/ingestion.py |
| User management | users.js |
api/users.py |
13.9 Troubleshooting order
When a problem occurs, check it in this order:
- Confirm which page shows the problem.
- Find the JavaScript file used by that page.
- Check the browser developer tools for failed API requests.
- Use the API address to find the corresponding Python route.
- If it is a workflow job, inspect the Worker and processing module.
- If displays are out of sync, inspect the current Episode's frame count, FPS, and cache.
- Run the tests after making changes, then validate with real data.
Closing note
Receive the data first, process it next, inspect it after processing, and export it only after it passes review.













