How ttlabtuat/tinycardiounet works
TinyCardioUNet reconstructs a single-lead ECG from six-axis chest IMU signals. The inference example loads the base model, applies VBMF-guided compression, loads compressed fine-tuned weights, and runs prediction. The model encodes the IMU signal, applies graph-based inter-axis aggregation at its bottleneck, then decodes the features into ECG. Compression is a separate capability; the repository includes pretrained weights but no training workflow. Relationships are based on the excerpts and README; no unsampled implementation is assumed.
Main entry points: main.py Inference Example · decompose_tinycardiounet_vbmf.py Compression Driver · model.py Graph Bottleneck · graph.py IMU Graph
Components 12
ECG Inference
- Inference Example
main.py - Pretrained Weights
weights - Predicted ECG
Graph U-Net
- Signal Encoder
TinyCardioUNet/model.py - IMU Graph
TinyCardioUNet/graph.py - Graph Bottleneck
TinyCardioUNet/model.py - ECG Decoder
TinyCardioUNet/model.py
Model Compression
- Compression Driver
decompose_tinycardiounet_vbmf.py - VBMF Rank Selection
decompose_tinycardiounet_vbmf.py - EVBMF Solver
src/vbmf.py - Layer Factorization
decompose_tinycardiounet_vbmf.py
Other components
- IMU User
Connections 12
- IMU User → Inference Example: provides IMU
README.md - Inference Example → Pretrained Weights: loads weights
main.py - Inference Example → Compression Driver: compresses model
main.py - Inference Example → Signal Encoder: runs model
main.py - Signal Encoder → Graph Bottleneck: forwards features
TinyCardioUNet/model.py - IMU Graph → Graph Bottleneck: configures graph
TinyCardioUNet/model.py - Graph Bottleneck → ECG Decoder: forwards features
TinyCardioUNet/model.py - ECG Decoder → Predicted ECG: produces ECG
TinyCardioUNet/model.py - Compression Driver → VBMF Rank Selection: selects ranks
decompose_tinycardiounet_vbmf.py - VBMF Rank Selection → EVBMF Solver: estimates ranks
decompose_tinycardiounet_vbmf.py - Compression Driver → Layer Factorization: replaces layers
decompose_tinycardiounet_vbmf.py - Inference Example → Predicted ECG: returns prediction
main.py