nerfbaselines.logging

class nerfbaselines.logging.BaseLogger(*args, **kwargs)[source]

Bases: Logger

add_embedding(tag: str, embeddings: ndarray, step: int, *, images: List[ndarray] | None = None, labels: None | List[Dict[str, str]] | List[str] = None) None[source]
add_event(step: int) ContextManager[LoggerEvent][source]
add_hparams(hparams: Dict[str, Any])[source]
add_image(tag: str, image: ndarray, step: int, *, display_name: str | None = None, description: str | None = None, **kwargs)[source]
add_scalar(tag: str, value: float | int, step: int)[source]
add_text(tag: str, text: str, step: int)[source]
class nerfbaselines.logging.BaseLoggerEvent(*args, **kwargs)[source]

Bases: LoggerEvent

add_embedding(tag: str, embeddings: ndarray, *, images: List[ndarray] | None = None, labels: None | List[Dict[str, str]] | List[str] = None) None[source]
add_image(tag: str, image: ndarray, display_name: str | None = None, description: str | None = None, **kwargs) None[source]
add_plot(tag: str, *data: ndarray, axes_labels: Sequence[str] | None = None, title: str | None = None, colors: Sequence[ndarray] | None = None, labels: Sequence[str] | None = None, **kwargs) None[source]
add_scalar(tag: str, value: float | int) None[source]
add_text(tag: str, text: str) None[source]
class nerfbaselines.logging.ConcatLogger(loggers)[source]

Bases: BaseLogger

add_event(step: int)[source]
add_hparams(hparams: Dict[str, Any], **kwargs)[source]
class nerfbaselines.logging.ConcatLoggerEvent(events)[source]

Bases: object

class nerfbaselines.logging.TensorboardLogger(output: str | Path, hparam_plugin_metrics: Sequence[str] | None = None, subdirectory: str | None = 'tensorboard')[source]

Bases: BaseLogger

add_event(step: int)[source]
add_hparams(hparams: Dict[str, Any])[source]
class nerfbaselines.logging.TensorboardLoggerEvent(logdir, summaries, step)[source]

Bases: BaseLoggerEvent

add_embedding(tag: str, embeddings: ndarray, *, images: List[ndarray] | None = None, labels: None | List[Dict[str, str]] | List[str] = None) None[source]
add_histogram(tag: str, values: ndarray, *, num_bins: int | None = None)[source]

Add histogram to summary.

Parameters:
  • tag – Data identifier

  • values – Values to build histogram

add_image(tag: str, image: ndarray, display_name: str | None = None, description: str | None = None, **kwargs) None[source]
add_scalar(tag: str, value: float | int) None[source]
add_text(tag: str, text: str) None[source]
class nerfbaselines.logging.WandbLogger(output: str | Path, **kwargs)[source]

Bases: BaseLogger

add_event(step: int)[source]
add_hparams(hparams: Dict[str, Any])[source]
class nerfbaselines.logging.WandbLoggerEvent(commit)[source]

Bases: BaseLoggerEvent

add_embedding(tag: str, embeddings: ndarray, *, images: List[ndarray] | None = None, labels: None | List[Dict[str, str]] | List[str] = None) None[source]
add_histogram(tag: str, values: ndarray, *, num_bins: int | None = None) None[source]
add_image(tag: str, image: ndarray, display_name: str | None = None, description: str | None = None, **kwargs) None[source]
add_plot(tag: str, *data: ndarray, axes_labels: Sequence[str] | None = None, title: str | None = None, colors: Sequence[ndarray] | None = None, labels: Sequence[str] | None = None, **kwargs) None[source]
add_scalar(tag: str, value: float | int) None[source]
add_text(tag: str, text: str) None[source]
nerfbaselines.logging.log_metrics(logger: Logger, metrics, *, prefix: str = '', step: int)[source]