Skip to content

swanlab convert ​

bash
swanlab convert [OPTIONS]
OptionDescription
-t, --typeSelect the conversion type, options include tensorboard, wandb, mlflow, wandb-local, default is tensorboard.
-p, --projectSet the SwanLab project name for the conversion, default is None.
-w, --workspaceSet the workspace where the SwanLab project is located, default is None.
--modeSet the SwanLab logging mode, options include online, local, offline, disabled, default is online.
-l, --logdirSet the log file save path for the SwanLab project, default is None.
--tb-log-dirPath to the TensorBoard log files (tfevent) to be converted.
--tb-typesThe types of TensorBoard logs to convert, options include scalar, image, audio, text, default is scalar; separate multiple types with commas.
--wb-projectName of the W&B project to be converted.
--wb-entityEntity where the W&B project to be converted is located.
--wb-runidID of the W&B Run to be converted.
--wb-dirDirectory where the W&B local log files are stored, default is ./wandb.
--wb-run-dirThe specific W&B local run directory name; if omitted, all runs under --wb-dir will be converted.
--mlflow-urlThe tracking URL of the MLflow server, default is http://127.0.0.1:5000.
--mlflow-expThe name or ID of the MLflow experiment to be converted (required).
--mlflow-runidID of a specific MLflow Run to be converted.
--resumeResume mode: uses the source Run ID as the SwanLab Run ID for resuming; must be used together with --wb-runid.

Introduction ​

Convert content from other logging tools into SwanLab projects.
Supported tools for conversion include: TensorBoard, Weights & Biases, MLflow.

Usage Examples ​

TensorBoard ​

Integration - TensorBoard

Weights & Biases ​

Integration - Weights & Biases

MLflow ​

Integration - MLflow