Skip to content

Commit f51338c

Browse files
committed
style: python format
1 parent 2f613d5 commit f51338c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/agents/policies.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def __init__(
249249
logging.info(f"horizon: {self.horizon}")
250250
logging.info(f"unnorm_key: {self.unnorm_key}")
251251
logging.info(f"kwargs: {kwargs}")
252-
if self.checkpoint_step is None or self.checkpoint_path is None:
252+
if self.checkpoint_path is None:
253253
self.octo_path = self.default_checkpoint_path
254254
logging.info(f"Using default checkpoint path: {self.octo_path}")
255255
if self.checkpoint_step is not None:
@@ -364,6 +364,7 @@ def act(self, obs: Obs) -> Act:
364364
"""
365365
import jax
366366
import jax.numpy as jnp
367+
367368
self._from_shared_memory(obs)
368369

369370
batch_size = obs.cameras["rgb_side"].shape[0]
@@ -407,6 +408,7 @@ class OpenVLADistribution(OpenVLAModel):
407408
def act(self, obs: Obs) -> Act:
408409
# no batch dimension here
409410
import torch
411+
410412
self._from_shared_memory(obs)
411413

412414
assert self.instruction is not None, "forgot reset?"

0 commit comments

Comments
 (0)