DRL-Navigation / DDRL4NAV

We reproduce a light RL training framework from OpenAi Five. As seen in the following, the structure of our framework is totally the same as the paper shown. 3 key ingredients in the RL training process, Forward Module, Backward Module, and Env Module are separated.
GNU Affero General Public License v3.0
16 stars 2 forks source link

torch.size question in NavPedPreNet() #1

Open SpikeJishuo opened 1 year ago

SpikeJishuo commented 1 year ago

https://github.com/DRL-Navigation/DDRL4NAV/blob/8d5281517f188fd69c1306240ddd83d2f6c3c3dc/USTC_lab/nn/nav_encoder.py#L72

Could you plz tell me what does state[2] stand for in pedstrians exsisting scenario?
I got torch.size([1, 96, 48]) of torch.cat([state[0], state[2]], axis=1)))instead of ([64, 4, 3, 3]) .

SnallQiu commented 1 year ago

https://github.com/DRL-Navigation/DDRL4NAV/blob/8d5281517f188fd69c1306240ddd83d2f6c3c3dc/USTC_lab/nn/nav_encoder.py#L72

Could you plz tell me what does state[2] stand for in pedstrians exsisting scenario? I got torch.size([1, 96, 48]) of torch.cat([state[0], state[2]], axis=1)))instead of ([64, 4, 3, 3]) .

the index of state here is defined in https://github.com/DRL-Navigation/img_env/blob/master/envs/wrapper/filter_states.py