progress_bar_callback
Progressbar callback.
ProgressBarCallback #
Bases: TQDMProgressBar
Progress bar for training and validation steps.
Source code in src/careamics/lightning/callbacks/progress_bar_callback.py
get_metrics(trainer, pl_module) #
Override this to customize the metrics displayed in the progress bar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
trainer | Trainer | The trainer object. | required |
pl_module | LightningModule | The LightningModule object, unused. | required |
Returns:
| Type | Description |
|---|---|
dict | A dictionary with the metrics to display in the progress bar. |
Source code in src/careamics/lightning/callbacks/progress_bar_callback.py
init_test_tqdm() #
Override this to customize the tqdm bar for testing.
Returns:
| Type | Description |
|---|---|
tqdm | A tqdm bar. |
Source code in src/careamics/lightning/callbacks/progress_bar_callback.py
init_train_tqdm() #
Override this to customize the tqdm bar for training.
Returns:
| Type | Description |
|---|---|
tqdm | A tqdm bar. |
Source code in src/careamics/lightning/callbacks/progress_bar_callback.py
init_validation_tqdm() #
Override this to customize the tqdm bar for validation.
Returns:
| Type | Description |
|---|---|
tqdm | A tqdm bar. |