Files
mouse_control/data/mouse_data_test.csv
Huang Qi de602365e9 Refactor into standard Python package with uv
- Move all code into src/mouse_control/ following the src-layout convention,
  with model/collect/train/visualize/inference as separate modules and
  SimpleNet extracted into model.py
- Add hatchling-based pyproject.toml with three CLI entry points
  (mouse-collect, mouse-train, mouse-visualize) and bundle the trained
  ONNX model as a package resource under assets/
- Move training data to data/, delete superseded show.py, remove dead
  imports (numpy, onnxruntime, onnx, onnxsim) and the unused
  visualize_path() helper
- Fix crashes in the collector: guard against destroyed-widget access
  after the n==100 destroy(), and skip save_to_csv when recording is
  off or the path is too short to derive 10 keypoints
- Switch ONNX export to external_data=False so the model ships as a
  single self-contained 19KB file
- Bytes-load the bundled model via importlib.resources so packaging
  remains correct under zip-safe distributions
- Rewrite README around the new layout, commands, and public API
2026-05-12 00:30:08 +08:00

2.0 KiB

1-122,-170,0-3,-3-9,-7-19,-11-32,-16-51,-19-68,-20-84,-20-102,-19-114,-17
2-115,-1530,0-10,-13-34,-62-68,-105-74,-128-78,-139-82,-147-89,-152-98,-155-107,-156
3-77,1930,0-2,9-12,31-26,68-41,106-54,136-63,156-67,170-71,178-75,183
4-85,-860,0-5,-5-20,-19-47,-36-69,-50-80,-57-85,-61-85,-66-85,-71-85,-77
529,-1750,09,-1025,-5132,-9030,-11930,-13830,-14629,-15233,-16536,-175
6-201,1970,0-12,20-64,77-113,129-130,160-139,175-152,178-171,181-184,183-191,187
7-124,-160,0-6,-1-20,-4-42,-8-67,-13-90,-16-109,-19-116,-21-119,-20-122,-18
8-123,530,0-16,7-47,17-73,22-92,24-106,29-109,32-112,38-115,45-118,49
9-146,-1250,00,-12-12,-40-33,-58-64,-84-95,-115-116,-123-126,-125-134,-122-141,-122
10132,490,09,532,1156,1881,3095,36102,39108,41114,44123,48
11157,1640,09,1036,3572,68107,97132,121146,137149,145151,152154,158
12-52,480,0-5,5-14,11-20,18-26,24-29,30-30,36-31,41-32,47-40,48
13-135,-1060,0-13,-15-34,-37-56,-61-75,-78-86,-90-93,-98-99,-104-104,-105-116,-107
14197,990,03,623,2162,33111,48157,63177,74181,82184,86192,91
15129,-1940,07,-719,-2645,-5577,-85104,-117117,-139118,-149119,-162123,-180
16167,-560,014,-642,-1579,-23115,-31138,-39149,-45152,-48155,-50159,-51
17132,1430,028,484,24113,57116,77118,88120,98120,107122,124126,135
18-113,890,0-11,8-38,23-71,41-81,48-86,56-89,62-92,67-97,73-103,79
19-46,-80,0-2,1-4,1-7,1-11,0-16,-2-24,-4-30,-5-35,-7-39,-8
20-40,1810,00,37-11,92-12,120-12,133-12,148-14,168-21,178-25,184-32,184