Skip to content

TypeError: 'NoneType' object cannot be interpreted as an integer #1

@yuxwen

Description

@yuxwen

Traceback (most recent call last): File "/home/dell/桌面/M2CURL-master/tactile_gym/sb3_helpers/train_agent.py", line 428, in train_agent( File "/home/dell/桌面/M2CURL-master/tactile_gym/sb3_helpers/train_agent.py", line 242, in train_agent final_evaluation( File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/tactile_gym-0.0.1-py3.10.egg/tactile_gym/sb3_helpers/eval_agent_utils.py", line 100, in final_evaluation eval_env = make_eval_env( File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/tactile_gym-0.0.1-py3.10.egg/tactile_gym/sb3_helpers/rl_utils.py", line 49, in make_eval_env eval_env = gym.make( File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/gym-0.21.0-py3.10.egg/gym/envs/registration.py", line 235, in make return registry.make(id, **kwargs) File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/gym-0.21.0-py3.10.egg/gym/envs/registration.py", line 129, in make env = spec.make(kwargs) File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/gym-0.21.0-py3.10.egg/gym/envs/registration.py", line 90, in make env = cls(kwargs) File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/tactilegym-0.0.1-py3.10.egg/tactile_gym/rl_envs/exploration/surface_follow/surface_follow_auto/surface_follow_auto_env.py", line 25, in init super(SurfaceFollowAutoEnv, self).init(max_steps, image_size, env_modes, show_gui, show_tactile) File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/tactile_gym-0.0.1-py3.10.egg/tactile_gym/rl_envs/exploration/surface_follow/base_surface_env.py", line 83, in init self.setup_action_space() File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/tactile_gym-0.0.1-py3.10.egg/tactile_gym/rl_envs/exploration/surface_follow/base_surface_env.py", line 204, in setup_action_space self.action_space = gym.spaces.Box( File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/gym-0.21.0-py3.10.egg/gym/spaces/box.py", line 54, in init low = np.full(shape, low, dtype=dtype) File "/home/dell/anaconda3/envs/python10/lib/python3.10/site-packages/numpy/core/numeric.py", line 329, in full a = empty(shape, dtype, order) TypeError: 'NoneType' object cannot be interpreted as an integer

Hello, I'm a reinforcement learning novice. I found an error in testing your program, and I'm not sure if it has finished training because there are files generated when the training reaches 100%: save_models/surface_follow_v0/*********/trained_models/best_model_zip, evaluation.npz, final_models.zip, 0.monitor.csv, algo_params.json, learning_curves.png, rl_params.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions