Source code for thelper.infer.impl
"""Explicit Tester definitions from existing Trainers."""
import thelper.concepts
from thelper.infer.base import Tester
from thelper.train.classif import ImageClassifTrainer
from thelper.train.detect import ObjDetectTrainer
from thelper.train.regr import RegressionTrainer
from thelper.train.segm import ImageSegmTrainer
[docs]@thelper.concepts.classification
class ImageClassifTester(ImageClassifTrainer, Tester):
"""Session runner specialized for testing of image classification task with safeguard against model training.
.. seealso::
| :class:`thelper.train.base.Tester`
| :class:`thelper.train.base.Trainer`
| :class:`thelper.train.classif.ImageClassifTrainer`
"""
[docs]@thelper.concepts.detection
class ObjDetectTester(ObjDetectTrainer, Tester):
"""Session runner specialized for testing of object detection task with safeguard against model training.
.. seealso::
| :class:`thelper.train.base.Tester`
| :class:`thelper.train.base.Trainer`
| :class:`thelper.train.detect.ObjDetectTrainer`
"""
[docs]@thelper.concepts.regression
class RegressionTester(RegressionTrainer, Tester):
"""Session runner specialized for testing of regression task with safeguard against model training.
.. seealso::
| :class:`thelper.train.base.Tester`
| :class:`thelper.train.base.Trainer`
| :class:`thelper.train.regr.RegressionTrainer`
"""
[docs]@thelper.concepts.segmentation
class ImageSegmTester(ImageSegmTrainer, Tester):
"""Session runner specialized for testing of image segmentation task with safeguard against model training.
.. seealso::
| :class:`thelper.train.base.Tester`
| :class:`thelper.train.base.Trainer`
| :class:`thelper.train.segm.ImageSegmTrainer`
"""