chore(utils): move queue utils and wandb_utils to their respective modules (#2030)

* chore(utils): move queue utils and wandb_utils to their respective modules

* fix(rl): remove double imports

---------

Signed-off-by: Steven Palma <imstevenpmwork@ieee.org>
This commit is contained in:
Steven Palma
2025-09-24 17:10:52 +02:00
committed by GitHub
parent 853cc70194
commit 170c09e7f6
7 changed files with 6 additions and 6 deletions

View File

@@ -68,6 +68,7 @@ from lerobot.policies.factory import make_policy
from lerobot.policies.sac.modeling_sac import SACPolicy
from lerobot.rl.buffer import ReplayBuffer, concatenate_batch_transitions
from lerobot.rl.process import ProcessSignalHandler
from lerobot.rl.wandb_utils import WandBLogger
from lerobot.robots import so100_follower # noqa: F401
from lerobot.teleoperators import gamepad, so101_leader # noqa: F401
from lerobot.teleoperators.utils import TeleopEvents
@@ -97,7 +98,6 @@ from lerobot.utils.utils import (
get_safe_torch_device,
init_logging,
)
from lerobot.utils.wandb_utils import WandBLogger
from .learner_service import MAX_WORKERS, SHUTDOWN_TIMEOUT, LearnerService
@@ -153,7 +153,7 @@ def train(cfg: TrainRLServerPipelineConfig, job_name: str | None = None):
# Setup WandB logging if enabled
if cfg.wandb.enable and cfg.wandb.project:
from lerobot.utils.wandb_utils import WandBLogger
from lerobot.rl.wandb_utils import WandBLogger
wandb_logger = WandBLogger(cfg)
else: