Skip to content

Commit 4f4bc1e

Browse files
committed
Suggestions about overfitting and AMD/Intel GPUs
1 parent 07167f2 commit 4f4bc1e

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

docs/docs/installation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ PartiNet can be installed using several methods. Choose the option that best fit
1212
- CUDA-compatible GPU (recommended for optimal performance)
1313
- Git (for source installation)
1414

15+
_Please note that AMD/Intel GPUs have not been tested, but may still used with PartiNet_
16+
1517
## Method 1: Install from Source (Recommended)
1618

1719
This method gives you the latest version and full control over the installation:
@@ -85,6 +87,9 @@ PartiNet is designed to leverage GPU acceleration for optimal performance. Ensur
8587
- CUDA drivers installed
8688
- For containers: nvidia-docker (Docker) or `--nv` flag (Apptainer)
8789

90+
_AMD and Intel GPUs have not been tested and may not support full PartiNet functionality_
91+
92+
8893
## Model Weights
8994
PartiNet model weights are available on [HuggingFace](https://huggingface.co/MihinP/PartiNet).
9095
Weights can be downloaded through the browser or through CLI via Git LFS

docs/docs/training/train1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ partinet train step1 \
5050
| `--workers` | 8 | Number of data loading workers. Adjust based on your CPU cores and I/O performance. |
5151
| `--device` | None | Specify GPU device (e.g., `0`, `1`, or `0,1` for multiple GPUs). If not specified, uses all available GPUs. |
5252
| `--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 |
5454

5555
:::tip Training Recommendations
5656
- **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.

docs/docs/training/training-output.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ project_folder/
3737

3838
## Understanding Training Visualizations
3939

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:
4143

4244
### Performance Curves
4345

@@ -84,10 +86,10 @@ PartiNet generates several plots to help you evaluate model performance and trai
8486
### Batch Visualizations
8587

8688
#### 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
9193

9294
#### Validation Results
9395
- `test_batch*_labels.jpg`: Ground truth annotations
@@ -107,14 +109,14 @@ tensorboard --logdir /data/your_project_folder
107109

108110
Then open your browser to `http://localhost:6006` to view training metrics in real-time.
109111

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.
111113

112114
## Resuming Interrupted Training
113115

114116
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.
115117

116118
:::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
118120
:::
119121

120122
:::tip Advanced Users

0 commit comments

Comments
 (0)