vwxyzjn / cleanrl

High-quality single file implementation of Deep Reinforcement Learning algorithms with research-friendly features (PPO, DQN, C51, DDPG, TD3, SAC, PPG)
http://docs.cleanrl.dev
Other
5.4k stars 617 forks source link

expected sequence of length 8 at dim 1 (got 0) #431

Closed flypark666 closed 10 months ago

flypark666 commented 10 months ago

Problem Description

Checklist

Current Behavior

next_obs = torch.Tensor(envs.reset()).to(device) ValueError: expected sequence of length 8 at dim 1 (got 0)

Expected Behavior

Possible Solution

Steps to Reproduce

1. 2. 3. 4.

vwxyzjn commented 10 months ago

Did you do poetry install? It sounds like a dependency issue

flypark666 commented 10 months ago

no,I just use pip install

Did you do poetry install? It sounds like a dependency issue

vwxyzjn commented 10 months ago

Please follow the installation instructions https://docs.cleanrl.dev/get-started/installation/#prerequisites

flypark666 commented 10 months ago

I try to poetry install,but some other problems happen,

image image