Evo output serialization

From OpenLAIR/OpenSkill · View interactive version

Evo output serialization is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Serializes egomotion labels to JSON with frame-interval keys and binary masks to NPZ in CSR sparse format using only NumPy.

How to use this skill

Skill file

evo-output-serialization

Serializes analysis results to the required output formats.

Key Functions

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-output-serialization/scripts')
from utils import save_csr_masks_npz, export_motion_labels_json

# motion_results: list of (sample_idx_prev, sample_idx_curr, labels_list)
export_motion_labels_json(motion_results, '/root/pred_instructions.json')

# mask_list: list of boolean 2D arrays, shape: [H, W]
save_csr_masks_npz(mask_list, '/root/pred_dyn_masks.npz', shape=[H, W])

CSR Format Details

For each frame i, stores:

JSON Format

{
    "0->1": ["Pan Right"],
    "1->2": ["Stay"],
    ...
}

Keys are "sample_idx_prev->sample_idx_curr" (0-based sample indices).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.