How dan11lkaa/neural_network-rusal works
This is an image-based ore-fragment-size regression workflow: preprocess source images, label and train on processed images, then evaluate a saved model on test images. The sampled preprocessing and training scripts provide implementation detail; test_model.py is represented only at the level documented in the README, so its internal call structure is omitted.
Main entry points: train_model.py Training and validation · processing_img.py Image preprocessing · test_model.py Model testing
Components 18
Image preparation
- Image preprocessing
processing_img.py - Source images
- Processed images
- Contrast enhancement
processing_img.py - Contour masking
processing_img.py
Model training
- Label preparation
train_model.py - Regression labels
- Dataset preparation
train_model.py - Image transforms
train_model.py - ResNet regression model
train_model.py - Training and validation
train_model.py - MSE and R² metrics
train_model.py - Training plots
train_model.py - Saved model weights
Model evaluation
- Test images
- Model testing
test_model.py - Predictions and trends
test_model.py
Other components
- Project user
Connections 20
- Project user → Image preprocessing: runs
README.md - Image preprocessing → Source images: reads
processing_img.py - Image preprocessing → Contrast enhancement: applies
processing_img.py - Image preprocessing → Contour masking: applies
processing_img.py - Image preprocessing → Processed images: writes
processing_img.py - Project user → Label preparation: runs
README.md - Label preparation → Processed images: lists images
train_model.py - Label preparation → Regression labels: creates or loads
train_model.py - Dataset preparation → Processed images: loads
train_model.py - Dataset preparation → Regression labels: reads
train_model.py - Dataset preparation → Image transforms: transforms
train_model.py - Training and validation → ResNet regression model: trains
train_model.py - Training and validation → Dataset preparation: uses loaders
train_model.py - Training and validation → MSE and R² metrics: computes
train_model.py - Training and validation → Saved model weights: saves weights
train_model.py - Training and validation → Training plots: plots metrics
train_model.py - Project user → Model testing: runs
README.md - Model testing → Saved model weights: loads
README.md - Model testing → Test images: evaluates
README.md - Model testing → Predictions and trends: visualizes
README.md