Extracts the scoremap, location refinement field and part affinity field prediction of the model. The maps will be rescaled to the size of the input image and stored in the corresponding model folder in /evaluation-results. ---------- config : string Full path of the config
(
config,
shuffle: int = 1,
trainingsetindex: int = 0,
comparison_bodyparts: str | list[str] = "all",
extract_paf: bool = True,
all_paf_in_one: bool = True,
gputouse: int | None = None,
device: str | None = None,
rescale: bool = False,
Indices: list[int] | None = None,
modelprefix: str = "",
dest_folder: str = None,
snapshot_index: int | str | None = None,
detector_snapshot_index: int | str | None = None,
engine: Engine | None = None,
)
| 1745 | |
| 1746 | @renamed_parameter(old="comparisonbodyparts", new="comparison_bodyparts", since="3.0.0") |
| 1747 | def extract_save_all_maps( |
| 1748 | config, |
| 1749 | shuffle: int = 1, |
| 1750 | trainingsetindex: int = 0, |
| 1751 | comparison_bodyparts: str | list[str] = "all", |
| 1752 | extract_paf: bool = True, |
| 1753 | all_paf_in_one: bool = True, |
| 1754 | gputouse: int | None = None, |
| 1755 | device: str | None = None, |
| 1756 | rescale: bool = False, |
| 1757 | Indices: list[int] | None = None, |
| 1758 | modelprefix: str = "", |
| 1759 | dest_folder: str = None, |
| 1760 | snapshot_index: int | str | None = None, |
| 1761 | detector_snapshot_index: int | str | None = None, |
| 1762 | engine: Engine | None = None, |
| 1763 | ): |
| 1764 | """ |
| 1765 | Extracts the scoremap, location refinement field and part affinity field prediction of the model. The maps |
| 1766 | will be rescaled to the size of the input image and stored in the corresponding model folder in /evaluation-results. |
| 1767 | |
| 1768 | ---------- |
| 1769 | config : string |
| 1770 | Full path of the config.yaml file as a string. |
| 1771 | |
| 1772 | shuffle: integer |
| 1773 | integers specifying shuffle index of the training dataset. The default is 1. |
| 1774 | |
| 1775 | trainingsetindex: int, optional |
| 1776 | Integer specifying which TrainingsetFraction to use. |
| 1777 | By default the first (note that TrainingFraction is a list in config.yaml). |
| 1778 | This variable can also be set to "all". |
| 1779 | |
| 1780 | comparison_bodyparts: list of bodyparts, Default is "all". |
| 1781 | The average error will be computed for those body parts only (Has to be a subset of the body parts). |
| 1782 | |
| 1783 | extract_paf : bool |
| 1784 | Extract part affinity fields by default. |
| 1785 | Note that turning it off will make the function much faster. |
| 1786 | |
| 1787 | all_paf_in_one : bool |
| 1788 | By default, all part affinity fields are displayed on a single frame. |
| 1789 | If false, individual fields are shown on separate frames. |
| 1790 | |
| 1791 | gputouse: int or None, optional, default=None |
| 1792 | For the TensorFlow engine (for the PyTorch engine see ``device``). Specifies |
| 1793 | the GPU to use (see number in ``nvidia-smi``). If you do not have a GPU put |
| 1794 | ``None``. See: https://nvidia.custhelp.com/app/answers/detail/a_id/3751/~/useful-nvidia-smi-queries |
| 1795 | |
| 1796 | device: str or None, optional, default=None |
| 1797 | The CUDA device to use for training. If None, the device will be taken from the |
| 1798 | ``pytorch_config.yaml`` file. Examples: {"cpu", "cuda", "cuda:0", "cuda:1"}. See |
| 1799 | https://pytorch.org/docs/stable/notes/cuda.html for more information. |
| 1800 | |
| 1801 | Indices: default None |
| 1802 | For which images shall the scmap/locref and paf be computed? Give a list of images |
| 1803 | |
| 1804 | nplots_per_row: int, optional (default=None) |
nothing calls this directly
no test coverage detected