How abhishekanand19/machine-larning-project-2026 works
Formation Flying is a synthetic-data machine-learning demo for estimating a follower aircraft’s relative pose from camera keypoints. The main user workflow is to choose a pose or held-out sample, obtain 42 camera features, run saved-model inference, and inspect the estimate and performance. The graph also covers dataset generation, validation, preprocessing, and training. Source excerpts support the main calls; unsampled app branches and README documentation provide no additional evidence.
Main entry points: app.py Streamlit app · preprocessing.py Splits and scaling · predict.py Pose predictor · generate_dataset.py Dataset generator
Components 16
Interactive Demo
- Streamlit app
app.py - Pose controls
src/demo_controls.py - Pose and camera views
src/demo_visuals.py
Synthetic Observations
- Camera simulation
src/utils.py - Dataset generator
src/generate_dataset.py - Dataset validation
src/validate_dataset.py
Model Pipeline
- Splits and scaling
src/preprocessing.py - ANN training
src/train.py - Pose ANN
src/model.py - Pose predictor
src/predict.py - Held-out evaluation
src/evaluate.py
Data and Artifacts
- Synthetic observations
data/raw/formation_flying_synthetic.csv - Split indices and metadata
data/processed/split_indices.npz - Target scaler
models/target_scaler.joblib - Saved ANN checkpoint
models/best_model.pt
Other components
- Demo user
Connections 25
- Demo user → Streamlit app: uses
app.py - Streamlit app → Pose controls: uses presets
app.py - Streamlit app → Camera simulation: simulates pose
app.py - Streamlit app → Pose predictor: requests prediction
app.py - Streamlit app → Splits and scaling: loads splits
app.py - Streamlit app → Held-out evaluation: scores predictions
app.py - Streamlit app → Pose and camera views: renders views
app.py - Pose and camera views → Pose controls: formats pose labels
src/demo_visuals.py - Pose and camera views → Camera simulation: projects truth overlay
src/demo_visuals.py - Dataset generator → Camera simulation: observes poses
src/generate_dataset.py - Dataset generator → Dataset validation: validates generated data
src/generate_dataset.py - Dataset generator → Synthetic observations: writes observations
src/generate_dataset.py - Dataset validation → Synthetic observations: validates schema
src/validate_dataset.py - Splits and scaling → Synthetic observations: reads observations
src/preprocessing.py - Splits and scaling → Split indices and metadata: writes split indices
src/preprocessing.py - Splits and scaling → Target scaler: fits and saves
src/preprocessing.py - ANN training → Splits and scaling: prepares data
src/train.py - ANN training → Pose ANN: trains
src/train.py - ANN training → Saved ANN checkpoint: saves best weights
src/train.py - Pose predictor → Pose ANN: runs inference
src/predict.py - Pose predictor → Target scaler: loads inverse transform
src/predict.py - Pose predictor → Saved ANN checkpoint: loads weights
src/predict.py - Pose predictor → Splits and scaling: checks dataset hash
src/predict.py - Held-out evaluation → Splits and scaling: loads held-out split
src/evaluate.py - Held-out evaluation → Pose predictor: predicts test rows
src/evaluate.py