How qaz812345/tracknetv3 works
TrackNetV3 is a shuttlecock-tracking application: video and labels are prepared into frame sequences, a heatmap model predicts locations, and an optional trajectory model repairs occluded predictions. The repository also supports model training, prediction output, evaluation workflows, interactive error analysis, and label correction. The graph follows documented workflows and indexed imports; evaluation internals are not mapped because test.py is referenced but absent from the supplied tree.
Main entry points: predict.py Video prediction · train.py Model training · generate_mask_data.py Mask generation · preprocess.py Frame preprocessing
Components 15
Data preparation
- Frame preprocessing
preprocess.py - Sequence dataset
dataset.py - Data and model utilities
utils/general.py
Tracking models
- TrackNet heatmaps
model.py - InpaintNet repair
model.py
Training and inference
- Model training
train.py - Mask generation
generate_mask_data.py - Video prediction
predict.py - Tracking metrics
utils/metric.py - Training visualization
utils/visualize.py
Review tools
- Error analysis
error_analysis.py - Label correction UI
correct_label.py
Other components
- User
- Match video
- Trajectory labels
Connections 24
- User → Frame preprocessing: prepares data
README.md - Match video → Frame preprocessing: extracts frames
preprocess.py - Trajectory labels → Frame preprocessing: uses labels
preprocess.py - Frame preprocessing → Sequence dataset: prepares inputs
README.md - Sequence dataset → Model training: loads sequences
train.py - User → Model training: trains models
README.md - Model training → Tracking metrics: computes loss
train.py - Model training → Training visualization: visualizes progress
train.py - Model training → Data and model utilities: uses helpers
train.py - Data and model utilities → TrackNet heatmaps: constructs model
utils/general.py - User → Mask generation: generates masks
README.md - Mask generation → Data and model utilities: loads model
generate_mask_data.py - Mask generation → TrackNet heatmaps: predicts trajectories
README.md - Mask generation → InpaintNet repair: prepares repair training
README.md - User → Video prediction: submits video
README.md - Match video → Video prediction: provides frames
predict.py - Video prediction → Sequence dataset: loads sequences
predict.py - Video prediction → TrackNet heatmaps: predicts locations
predict.py - Video prediction → InpaintNet repair: repairs trajectory
README.md - Video prediction → User: returns predictions
README.md - User → Error analysis: reviews results
README.md - Error analysis → Trajectory labels: compares ground truth
error_analysis.py - User → Label correction UI: corrects labels
correct_label.py - Label correction UI → Trajectory labels: writes corrections
correct_label.py