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/en/user_guides/train_and_test.md
+118Lines changed: 118 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -390,3 +390,121 @@ Here are the environment variables that can be used to configure the slurm job.
390
390
|`GPUS_PER_NODE`| The number of GPUs to be allocated per node. Defaults to 8. |
391
391
|`CPUS_PER_TASK`| The number of CPUs to be allocated per task (Usually one GPU corresponds to one task). Defaults to 5. |
392
392
|`SRUN_ARGS`| The other arguments of `srun`. Available options can be found [here](https://slurm.schedmd.com/srun.html). |
393
+
394
+
## Custom Testing Features
395
+
396
+
### Test with Custom Metrics
397
+
398
+
If you're looking to assess models using unique metrics not already supported by MMPose, you'll need to code these metrics yourself and include them in your config file. For guidance on how to accomplish this, check out our [customized evaluation guide](https://mmpose.readthedocs.io/en/latest/advanced_guides/customize_evaluation.html).
399
+
400
+
### Evaluating Across Multiple Datasets
401
+
402
+
MMPose offers a handy tool known as `MultiDatasetEvaluator` for streamlined assessment across multiple datasets. Setting up this evaluator in your config file is a breeze. Below is a quick example demonstrating how to evaluate a model using both the COCO and AIC datasets:
# the number and order of datasets must align with metrics
426
+
datasets=[coco_val, aic_val],
427
+
)
428
+
```
429
+
430
+
Keep in mind that different datasets, like COCO and AIC, have various keypoint definitions. Yet, the model's output keypoints are standardized. This results in a discrepancy between the model outputs and the actual ground truth. To address this, you can employ `KeypointConverter` to align the keypoint configurations between different datasets. Here’s a full example that shows how to leverage `KeypointConverter` to align AIC keypoints with COCO keypoints:
For further clarification on converting AIC keypoints to COCO keypoints, please consult [this guide](https://mmpose.readthedocs.io/en/latest/user_guides/mixed_datasets.html#merge-aic-into-coco).
0 commit comments