Skip to content
New issue

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

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

Already on GitHub? # to your account

RuntimeError: torch.cat(): expected a non-empty list of Tensors #43

Open
liqingxin opened this issue Mar 19, 2024 · 5 comments
Open

RuntimeError: torch.cat(): expected a non-empty list of Tensors #43

liqingxin opened this issue Mar 19, 2024 · 5 comments

Comments

@liqingxin
Copy link

I met an issue while training the model.

I have already run the episodes in simulation
屏幕截图 2024-03-19 10:45:34

but
Found 0 hdf5 files

Data from: ['~/aloha/act-plus-plus-main/data/sim_transfer_cube_scripted']

  • Train on [0] episodes
  • Test on [0] episodes

Traceback (most recent call last):
File "imitate_episodes.py", line 667, in
main(vars(parser.parse_args()))
File "imitate_episodes.py", line 166, in main
train_dataloader, val_dataloader, stats, _ = load_data(dataset_dir, name_filter, camera_names, batch_size_train, batch_size_val, args['chunk_size'], args['skip_mirrored_data'], config['load_pretrain'], policy_class, stats_dir_l=stats_dir, sample_weights=sample_weights, train_ratio=train_ratio)
File "/home/lqx/aloha/act-plus-plus-main/utils.py", line 245, in load_data
_, all_episode_len = get_norm_stats(dataset_path_list)
File "/home/lqx/aloha/act-plus-plus-main/utils.py", line 174, in get_norm_stats
all_qpos_data = torch.cat(all_qpos_data, dim=0)
RuntimeError: torch.cat(): expected a non-empty list of Tensors

@eric-hu519
Copy link

same question.Do u solve this problem?I m confused.

@kimkimyoung
Copy link

modify the data root in constant.py

@sainavaneet
Copy link

modify the data root in constant.py

what do you mean by that ?

@kimkimyoung
Copy link

kimkimyoung commented Apr 7, 2024

modify the data root in constant.py

what do you mean by that ?

in constant.py

# DATA_DIR = '/home/zfu/interbotix_ws/src/act/data' if os.getlogin() == 'zfu' else '/scr/tonyzhao/datasets'
DATA_DIR = '/home/kim/PCNL-Works/act-plus-plus/dataset'

@sainavaneet
Copy link

modify the data root in constant.py

what do you mean by that ?

in constant.py

# DATA_DIR = '/home/zfu/interbotix_ws/src/act/data' if os.getlogin() == 'zfu' else '/scr/tonyzhao/datasets'
DATA_DIR = '/home/kim/PCNL-Works/act-plus-plus/dataset'

thank you got it

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants