bhiziroglu / Language-as-an-Abstraction-for-Hierarchical-Deep-Reinforcement-Learning

PyTorch Implementation of "Language as an Abstraction for Hierarchical Deep Reinforcement Learning" paper
24 stars 5 forks source link

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (640, 2) + inhomogeneous part. #3

Open yangyuxiao-sjtu opened 10 months ago

yangyuxiao-sjtu commented 10 months ago

when I simply run the main.py, the error occurs Traceback (most recent call last): File "/home/yuxiaoyang/Lang/Lang/main.py", line 164, in env = ClevrEnv(action_type="perfect", obs_type='order_invariant', direct_obs=True, use_subset_instruction=True) File "/home/yuxiaoyang/Lang/Lang/clevr_robot_env/clevr_robot_env/env.py", line 138, in init train, test = load_utils.create_train_test_question_split() File "/home/yuxiaoyang/Lang/Lang/clevr_robot_env/clevr_robot_env/utils/load_utils.py", line 48, in create_train_test_question_split aq = np.array(all_questions) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (640, 2) + inhomogeneous part. Does anyone know how to fix it?

nico1995lee commented 2 months ago

Same problem. Do you fix it?