VLN-CE icon indicating copy to clipboard operation
VLN-CE copied to clipboard

n (counts) have to be positive - assertion error

Open francescotaioli opened this issue 1 year ago • 1 comments

Hi, I'm getting this error when training seq2seq baseline:

miniconda3/envs/vlnce-py3.6/lib/python3.6/site-packages/gym/spaces/discrete.py", line 36, in __init__
    assert n > 0, "n (counts) have to be positive"
AssertionError: n (counts) have to be positive

Some info: python: 3.6 habitat-lab & habitat-sim version: 0.1.7 gym.version: '0.26.2'

It seems originating from this line.

francescotaioli avatar Mar 11 '23 10:03 francescotaioli

Changing the line to self.observation_space = spaces.Discrete(4) seems to fix the issue, I don't know if it is the right way to proceed though

francescotaioli avatar Mar 11 '23 13:03 francescotaioli