Jack Pan

#python

3 posts

Phase 1: Keep tests pure-Python with lazy imports

`mediapipe`, `ultralytics`, `cv2` are slow to import and need model weights at runtime. The trick that keeps the test suite small, fast, and weights-free is putting those imports inside function bodies, not at module top level.

pythontestingcomputer vision

Phase 1: One module owns every path on disk

Why a video pre-annotation pipeline ends up with one `layout` module that knows where everything lives, and what breaks when six different parts of the codebase each compute paths their own way.

data pipelinepythonarchitecture

Phase 1: Notes from building a video pre-annotation pipeline

A Phase-1 pipeline for embodied-robot video data — MediaPipe + YOLO inference, action segmentation, Label Studio import — plus the boring path-abstraction decision that kept it from collapsing.

computer visiondata pipelinelabel studio