Skip to content

Commit

Permalink
clean up wandb import, remove deprecated warnings handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent2916 committed Oct 15, 2024
1 parent 241abfa commit 91cc41d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/refiners/training_utils/wandb.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import warnings
from abc import ABC
from pathlib import Path
from typing import Any, Literal

import wandb
from PIL import Image

from refiners.training_utils.callback import Callback, CallbackConfig
from refiners.training_utils.config import BaseConfig
from refiners.training_utils.trainer import Trainer, register_callback

with warnings.catch_warnings():
# TODO: remove when https://github.com/wandb/wandb/issues/6711 gets solved
warnings.filterwarnings("ignore", category=DeprecationWarning, message="pkg_resources is deprecated as an API")
import wandb

number = float | int
WandbLoggable = number | Image.Image | list[number] | dict[str, list[number]]

Expand Down

0 comments on commit 91cc41d

Please sign in to comment.