Commit Graph

28 Commits

Author SHA1 Message Date
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
suixin1424
2c482150d4 Update README.md 2025-01-21 14:17:27 +08:00
suixin1424
d62373e810 Update README.md 2025-01-19 18:49:23 +08:00
suixin1424
1c8dbe1ccd Update README.md 2025-01-19 18:28:14 +08:00
suixin1424
5043f8c674 Update README.md 2024-02-10 15:31:18 +08:00
suixin1424
7ddb7969cc Update README.md 2024-02-02 17:43:44 +08:00
suixin1424
a1a6c36502 fix bug 2024-02-02 17:43:09 +08:00
suixin1424
902b2a9386 Update README.md 2024-01-28 20:44:17 +08:00
suixin1424
e0bc413150 Update README.md 2024-01-28 20:43:44 +08:00
suixin1424
f525cf3039 训练完自动导出onnx模型 2024-01-28 20:05:30 +08:00
suixin1424
3ab0d75e6e Update mouse_data_test.csv 2024-01-23 21:54:34 +08:00
suixin1424
7f3451c5af Update mouse_data.csv 2024-01-23 21:54:21 +08:00
suixin1424
12533ed8f1 Update README.md 2024-01-23 21:48:36 +08:00
suixin1424
787abbd0a1 Update README.md 2024-01-23 21:47:44 +08:00
suixin1424
2ed61d7444 Update README.md 2024-01-23 21:46:02 +08:00
suixin1424
12d123f9ff Add files via upload 2024-01-23 21:45:27 +08:00
suixin1424
3c0a5f2eff Update README.md 2024-01-23 21:44:18 +08:00
suixin1424
0064edc747 Add files via upload 2024-01-23 21:43:54 +08:00
suixin1424
0ce60de1e0 Add files via upload 2024-01-23 21:42:55 +08:00
suixin1424
afc02c7d0a Update README.md 2024-01-23 21:42:09 +08:00
suixin1424
2a9f28437b Add files via upload 2024-01-23 21:20:44 +08:00
suixin1424
c5ce176bdc Add files via upload 2024-01-23 21:14:48 +08:00
suixin1424
26dd791e61 Add files via upload 2024-01-23 21:00:56 +08:00
suixin1424
48ed6da6cf Add files via upload 2024-01-23 20:59:35 +08:00
suixin1424
6ae396bd38 Add files via upload 2024-01-23 20:56:38 +08:00
suixin1424
34fb72926f Delete 1.py 2024-01-23 20:54:58 +08:00
suixin1424
bb8f7f27c5 Add files via upload 2024-01-23 20:53:45 +08:00
suixin1424
38123f070c Initial commit 2024-01-23 20:52:50 +08:00