remove clip ceiling
This commit is contained in:
4
utils.py
4
utils.py
@@ -94,12 +94,12 @@ def get_norm_stats(dataset_dir, num_episodes):
|
|||||||
# normalize action data
|
# normalize action data
|
||||||
action_mean = all_action_data.mean(dim=[0, 1], keepdim=True)
|
action_mean = all_action_data.mean(dim=[0, 1], keepdim=True)
|
||||||
action_std = all_action_data.std(dim=[0, 1], keepdim=True)
|
action_std = all_action_data.std(dim=[0, 1], keepdim=True)
|
||||||
action_std = torch.clip(action_std, 1e-2, 10) # clipping
|
action_std = torch.clip(action_std, 1e-2, np.inf) # clipping
|
||||||
|
|
||||||
# normalize qpos data
|
# normalize qpos data
|
||||||
qpos_mean = all_qpos_data.mean(dim=[0, 1], keepdim=True)
|
qpos_mean = all_qpos_data.mean(dim=[0, 1], keepdim=True)
|
||||||
qpos_std = all_qpos_data.std(dim=[0, 1], keepdim=True)
|
qpos_std = all_qpos_data.std(dim=[0, 1], keepdim=True)
|
||||||
qpos_std = torch.clip(qpos_std, 1e-2, 10) # clipping
|
qpos_std = torch.clip(qpos_std, 1e-2, np.inf) # clipping
|
||||||
|
|
||||||
stats = {"action_mean": action_mean.numpy().squeeze(), "action_std": action_std.numpy().squeeze(),
|
stats = {"action_mean": action_mean.numpy().squeeze(), "action_std": action_std.numpy().squeeze(),
|
||||||
"qpos_mean": qpos_mean.numpy().squeeze(), "qpos_std": qpos_std.numpy().squeeze(),
|
"qpos_mean": qpos_mean.numpy().squeeze(), "qpos_std": qpos_std.numpy().squeeze(),
|
||||||
|
|||||||
Reference in New Issue
Block a user