You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/training/train1.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ partinet train step1 \
50
50
|`--workers`| 8 | Number of data loading workers. Adjust based on your CPU cores and I/O performance. |
51
51
|`--device`| None | Specify GPU device (e.g., `0`, `1`, or `0,1` for multiple GPUs). If not specified, uses all available GPUs. |
52
52
|`--batch`| 16 | Training batch size. If you encounter out-of-memory (OOM) errors, reduce this value (try 8 or 4). |
53
-
|`--epochs`| 100 | Number of training epochs. More epochs may improve performance but increase training time. |
53
+
|`--epochs`| 100 | Number of training epochs. More epochs may improve performance but increase training time. Overfitting may occur with too many epochs of training. It is important to [monitor validation metrics](training/training-output.md) during training |
54
54
55
55
:::tip Training Recommendations
56
56
-**Starting weights**: We strongly recommend using the supplied pre-trained weights as your starting point. This provides better initialization and typically results in faster training and improved final performance.
Copy file name to clipboardExpand all lines: docs/docs/training/training-output.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,9 @@ project_folder/
37
37
38
38
## Understanding Training Visualizations
39
39
40
-
PartiNet generates several plots to help you evaluate model performance and training progress. Here's how to interpret each one:
40
+
PartiNet generates several plots to help you evaluate model performance and training progress. You may find more in-depth guides of interpreting this data at https://neptune.ai/blog/f1-score-accuracy-roc-auc-pr-auc and https://docs.ultralytics.com/guides/yolo-performance-metrics/.
41
+
42
+
Below is a quick guide for intepreting PartiNet training outputs:
41
43
42
44
### Performance Curves
43
45
@@ -84,10 +86,10 @@ PartiNet generates several plots to help you evaluate model performance and trai
84
86
### Batch Visualizations
85
87
86
88
#### Training Batches (`train_batch*.jpg`)
87
-
- Shows model predictions on training data
88
-
-Green boxes: Ground truth particle positions
89
-
-Red boxes: Model predictions
90
-
- Look for: increasing alignment between predictions and ground truth
89
+
- Shows model predictions on training data in a mosaic of image augmentations
90
+
-Blue boxes: Ground truth particle positions
91
+
-Look for:
92
+
- Correct bounding boxes around particles even after image augmentation
91
93
92
94
#### Validation Results
93
95
-`test_batch*_labels.jpg`: Ground truth annotations
Then open your browser to `http://localhost:6006` to view training metrics in real-time.
109
111
110
-
**Incomplete training runs** (due to timeout or errors) will have fewer outputs - typically only configuration files, learning rate plots, and training batch visualizations. Validation plots and test predictions only appear when training completes successfully.
112
+
**Incomplete training runs** (due to timeout or errors) will have fewer outputs - only configuration files, learning rate plots, and training batch visualizations. Validation plots and test predictions only appear when training completes successfully.
111
113
112
114
## Resuming Interrupted Training
113
115
114
116
If training is interrupted due to timeout or out-of-memory errors, you can resume from the last checkpoint by pointing the `--weight` parameter to the `last.pt` file in your most recent experiment folder.
115
117
116
118
:::info Which Checkpoint to Use?
117
-
While `best.pt` typically represents the checkpoint with the best validation performance, **PartiNet's validation metrics continuously improve throughout training**. Therefore, we recommend using `last.pt` for inference and subsequent training steps, as it represents the most trained model.
119
+
`best.pt` typically represents the checkpoint with the best validation performance, whereas `last.pt` contains weights for the last epoch, regardless of validation performance. **Overfitting of weights may occur with too many epochs of training**. This means `last.pt` may actually have worse performance than `best.pt`. It is important that you directly review validation performance during training to avoid this scenario
0 commit comments