yemam3 / Mod-RL-RCBF

22 stars 6 forks source link

Env has no attribute seed #1

Open yannbouteiller opened 2 years ago

yannbouteiller commented 2 years ago

Hi,

When testing your code, seeds cannot be passed as done in the README, we get the following exception:

(rlcbf) C:\Users\yannb\Desktop\git\Mod-RL-RCBF>python main.py --cuda --env Unicycle --cbf_mode baseline --max_episodes 200 --seed 12345
Traceback (most recent call last):
  File "C:\Users\yannb\Desktop\git\Mod-RL-RCBF\main.py", line 344, in <module>
    env.seed(args.seed)
AttributeError: 'UnicycleEnv' object has no attribute 'seed'

However this doesn't happen when putting the seed to 0

DengYaosheng commented 2 weeks ago

Hi,

When testing your code, seeds cannot be passed as done in the README, we get the following exception:

(rlcbf) C:\Users\yannb\Desktop\git\Mod-RL-RCBF>python main.py --cuda --env Unicycle --cbf_mode baseline --max_episodes 200 --seed 12345
Traceback (most recent call last):
  File "C:\Users\yannb\Desktop\git\Mod-RL-RCBF\main.py", line 344, in <module>
    env.seed(args.seed)
AttributeError: 'UnicycleEnv' object has no attribute 'seed'

However this doesn't happen when putting the seed to 0

Hi, I have the same problem, may I inquire if you have solved it yet? Appreciate!