Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] ValueError: low >= high #49

Open
destroy314 opened this issue Apr 25, 2024 · 0 comments
Open

[fix] ValueError: low >= high #49

destroy314 opened this issue Apr 25, 2024 · 0 comments

Comments

@destroy314
Copy link

If you met this:

  ...
  File ".../.conda/envs/aloha/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 623, in _next_index
    return next(self._sampler_iter)  # may raise StopIteration
  File ".../act-plus-plus-main/utils.py", line 216, in BatchSampler
    step_idx = np.random.randint(sum_dataset_len_l[episode_idx], sum_dataset_len_l[episode_idx + 1])
  File "mtrand.pyx", line 765, in numpy.random.mtrand.RandomState.randint
  File "_bounded_integers.pyx", line 1247, in numpy.random._bounded_integers._rand_int64
ValueError: low >= high

comment the data that not in public datasets:

# cabinet
'aloha_mobile_cabinet':{
    'dataset_dir': [
        DATA_DIR + '/aloha_mobile_cabinet',
        # DATA_DIR + '/aloha_mobile_cabinet_handles', # 200    <--
        # DATA_DIR + '/aloha_mobile_cabinet_grasp_pots', # 200    <--
    ], # only the first dataset_dir is used for val
    'stats_dir': [
        DATA_DIR + '/aloha_mobile_cabinet',
    ],
    # 'sample_weights': [6, 1, 1],    <--
    'train_ratio': 0.99, # ratio of train data from the first dataset_dir
    'episode_len': 1500,
    'camera_names': ['cam_high', 'cam_left_wrist', 'cam_right_wrist']
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant