unitorch.cli.models.detr¤
DetrProcessor¤
Tip
core/process/detr is the section for configuration of DetrProcessor.
Bases: DetrProcessor
Source code in src/unitorch/cli/models/detr/processing.py
24 25 26 27 28 29 30 | |
from_config
classmethod
¤
from_config(config, **kwargs)
Source code in src/unitorch/cli/models/detr/processing.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
_image ¤
_image(image: Union[Image, str])
Source code in src/unitorch/cli/models/detr/processing.py
49 50 51 52 53 54 55 56 57 58 59 | |
_detection ¤
_detection(
image: Union[Image, str],
bboxes: List[List[float]],
classes: List[int],
do_eval: Optional[bool] = False,
)
Source code in src/unitorch/cli/models/detr/processing.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
_post_dectection ¤
_post_dectection(outputs: DetectionOutputs)
Source code in src/unitorch/cli/models/detr/processing.py
92 93 94 95 96 97 98 | |
DetrForDetection¤
Tip
core/model/detection/detr is the section for configuration of DetrForDetection.
Bases: DetrForDetection
Source code in src/unitorch/cli/models/detr/modeling.py
23 24 25 26 27 28 29 30 31 | |
from_config
classmethod
¤
from_config(config, **kwargs)
Source code in src/unitorch/cli/models/detr/modeling.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
forward ¤
forward(images, bboxes, classes)
Source code in src/unitorch/cli/models/detr/modeling.py
62 63 64 65 66 67 68 | |
detect ¤
detect(images, norm_bboxes: bool = False)
Source code in src/unitorch/cli/models/detr/modeling.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |