lab backup (tier-1)
Archive of the lab workspace: curated cystoscopy datasets, run code
(src_snapshot), final checkpoints (results / best_weights / models /
weights), docs, KB, and the cascade-w34 inference server.
Layout
data_cystoscopy-core_<X>.tarโ dataset subdirs (yolo_roi, B, C, D, H, I, seg_v1, v1/v2/v3_build, usable_v1). Extract underdata/cystoscopy-core/<X>/.cystoscopy-core_small/โ remaining dataset files (parquet manifests, checksums, README).runs/โ per-runsrc_snapshot/(code),results/,best_weights/,models/,weights/(final checkpoints). YOLO keepsbest.pt+last.ptonly.inference/cascade_w34_server/โ FastAPI server. SetLABto the extract root before running.writing/,kb/,lib/,prepare/,reports/โ docs, notes, helpers.
Restore (any Linux box)
Download this repo (
huggingface-cli download milkyroad/file2 --local-dir lab_backup).mkdir -p lab/data/cystoscopy-coreand extract eachdata_cystoscopy-core_<X>.tarintolab/data/cystoscopy-core/<X>/. Copycystoscopy-core_small/files intolab/data/cystoscopy-core/.Copy
runs/,inference/,lib/,kb/,writing/,prepare/tolab/.Point the server at that root:
export LAB=/path/to/lab # or edit inference/cascade_w34_server/cascade_w34_server.py # LAB = pathlib.Path("<LAB_ROOT>") โ pathlib.Path("/path/to/lab")Python deps (CUDA recommended):
torch,opencv-python,numpy,fastapi,uvicorn,pillow,pydantic,transformers,timm,ultralytics. Seeinference/cascade_w34_server/requirements.txt.Accept the gated encoder google/medsiglip-448 (Health AI Developer Foundations terms) and
huggingface-cli login. Depth also pullsdepth-anything/Depth-Anything-V2-Small-hfon first use.python inference/cascade_w34_server/cascade_w34_server.py(port 8001).
Excluded (on purpose)
- Hugging Face model caches (
google/medsiglip-448and other hub snapshots). cache/,__pycache__/, per-runvenv/.venv.data/hf/(re-downloadable Hub datasets).- Upstream Marigold-v2 repo clone (re-clone).
- Intermediate YOLO
epoch*.pt; 3D reconstruction frame/video dumps (LAN only).
LAN sibling copy (full progress minus the excludes above) lives on the other Spark and is not part of this repo.