Shortcuts

NaiveVisualizationHook

class mmengine.hooks.NaiveVisualizationHook(interval=1, draw_gt=True, draw_pred=True)[源代码]

Show or Write the predicted results during the process of testing.

参数
  • interval (int) – Visualization interval. Defaults to 1.

  • draw_gt (bool) – Whether to draw the ground truth. Defaults to True.

  • draw_pred (bool) – Whether to draw the predicted result. Defaults to True.

after_test_iter(runner, batch_idx, data_batch=None, outputs=None)[源代码]

Show or Write the predicted results.

参数
  • runner (Runner) – The runner of the training process.

  • batch_idx (int) – The index of the current batch in the test loop.

  • data_batch (dict or tuple or list, optional) – Data from dataloader.

  • outputs (Sequence, optional) – Outputs from model.

返回类型

None

before_train(runner)[源代码]

Call add_graph method of visualizer.

参数

runner (Runner) – The runner of the training process.

返回类型

None

Read the Docs v: stable
Versions
latest
stable
v0.10.2
v0.10.1
v0.10.0
v0.9.1
v0.9.0
v0.8.5
v0.8.4
v0.8.3
v0.8.2
v0.8.1
v0.8.0
v0.7.4
v0.7.3
v0.7.2
v0.7.1
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
Downloads
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.