Skip to content

Commit 76a4dc0

Browse files
committed
fix(inference): image resize method to match conversion
1 parent 2cb2169 commit 76a4dc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/inference/franka.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def obs_rcs2agents(self, obs: dict, info: dict | None = None) -> Obs:
170170
cameras = {}
171171
for frame in obs["frames"]:
172172
cameras[frame] = obs["frames"][frame]["rgb"]["data"]
173-
cameras[frame] = np.array(Image.fromarray(cameras[frame]).resize((224, 224), Image.Resampling.LANCZOS))
173+
cameras[frame] = np.array(Image.fromarray(cameras[frame]).resize((224, 224), Image.Resampling.BILINEAR))
174174

175175
state = []
176176
for robot in self._cfg.robot_keys:

0 commit comments

Comments
 (0)