Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion get_started/obj_layout/object_layout_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ class Args:
## Step timing
min_step_time: float = 0.001

## Device
device: str = "cuda"

def __post_init__(self):
log.info(f"Args: {self}")

Expand Down Expand Up @@ -476,7 +479,7 @@ def __post_init__(self):

# Create task environment
tic = time.time()
device = torch.device("cuda")
device = torch.device(args.device)
env = task_cls(scenario, device=device)

# Optionally wrap with Viser visualization
Expand Down