Skip to content

Commit

Permalink
[fix] Remove wandb from the ImageVisualizer (mosaicml#2334)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebrl committed Jun 28, 2023
1 parent f2412bd commit b73c776
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions composer/callbacks/image_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from composer.core import Callback, State, Time, TimeUnit
from composer.loggers import Logger
from composer.loss.utils import infer_target_type
from composer.utils import MissingConditionalImportError

__all__ = ['ImageVisualizer']

Expand Down Expand Up @@ -82,15 +81,6 @@ def __init__(self,
self.input_key = input_key
self.target_key = target_key

# TODO(Evan): Generalize as part of the logger refactor
try:
import wandb
except ImportError as e:
raise MissingConditionalImportError(extra_deps_group='wandb',
conda_package='wandb',
conda_channel='conda-forge') from e
del wandb # unused

# Check that the output mode is valid
if self.mode.lower() not in ['input', 'segmentation']:
raise ValueError(f'Invalid mode: {mode}')
Expand Down

0 comments on commit b73c776

Please sign in to comment.