Shortcuts

MultiValLoop

class mmedit.engine.runner.MultiValLoop(runner, dataloader: Union[torch.utils.data.dataloader.DataLoader, Dict], evaluator: Union[mmengine.evaluator.evaluator.Evaluator, Dict, List], fp16: bool = False)[source]

Loop for validation multi-datasets.

Parameters
  • runner (Runner) – A reference of runner.

  • dataloader (list[Dataloader or dic]) – A dataloader object or a dict to build a dataloader.

  • evaluator (list[]) – Used for computing metrics.

  • fp16 (bool) – Whether to enable fp16 validation. Defaults to False.

run()[source]

Launch validation.

run_iter(idx: int, data_batch: Sequence[dict])[source]

Iterate one mini-batch.

Parameters
  • idx (int) – The index of the current batch in the loop.

  • data_batch (Sequence[dict]) – Batch of data from dataloader.

Read the Docs v: zyh/doc-notfound-extend
Versions
master
latest
stable
zyh-doc-notfound-extend
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.