chore(style): fix format

This commit is contained in:
Steven Palma
2025-03-07 15:14:46 +01:00
parent 0eb56cec14
commit f9e4a1f5c4
2 changed files with 4 additions and 2 deletions

View File

@@ -64,13 +64,14 @@ class PreTrainedConfig(draccus.ChoiceRegistry, HubMixin, abc.ABC):
self.pretrained_path = None
if not self.device or not is_torch_device_available(self.device):
auto_device = auto_select_torch_device()
logging.warning("Device '%s' is not available. Switching to '%s'.",self.device,auto_device)
logging.warning("Device '%s' is not available. Switching to '%s'.", self.device, auto_device)
self.device = auto_device.type
# Automatically deactivate AMP if necessary
if self.use_amp and not is_amp_available(self.device):
logging.warning(
"Automatic Mixed Precision (amp) is not available on device '%s'. Deactivating AMP.",self.device
"Automatic Mixed Precision (amp) is not available on device '%s'. Deactivating AMP.",
self.device,
)
self.use_amp = False

View File

@@ -80,6 +80,7 @@ This might require a sudo permission to allow your terminal to monitor keyboard
**NOTE**: You can resume/continue data recording by running the same data recording command twice.
"""
# TODO(Steven): This script should be updated to use the new robot API and the new dataset API.
import argparse
import importlib