detrium.tasks.detect.engine

RT-DETRv4: Painlessly Furthering Real-Time Object Detection with Vision Foundation Models Copyright (c) 2025 The RT-DETRv4 Authors. All Rights Reserved. --------------------------------------------------------------------------------- Modified from DEIM: DETR with Improved Matching for Fast Convergence Copyright (c) 2024 The DEIM Authors. All Rights Reserved.

train_one_epoch(self_lr_scheduler, lr_scheduler, model: torch.nn.Module, criterion: torch.nn.Module, data_loader: Iterable, optimizer: torch.optim.Optimizer, device: torch.device, epoch: int, max_norm: float=0, **kwargs)
名称类型默认值
self_lr_scheduler——
lr_scheduler——
modeltorch.nn.Module—
criteriontorch.nn.Module—
data_loaderIterable—
optimizertorch.optim.Optimizer—
devicetorch.device—
epochint—
max_normfloat0
kwargs——
evaluate(model: torch.nn.Module, criterion: torch.nn.Module, postprocessor, data_loader, coco_evaluator: CocoEvaluator, device)
名称类型默认值
modeltorch.nn.Module—
criteriontorch.nn.Module—
postprocessor——
data_loader——
coco_evaluatorCocoEvaluator—
device——