Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行python scripts/start_evaluate_with_plot.py时报错 #33

Open
rad104ct1ve opened this issue Apr 10, 2024 · 2 comments
Open

运行python scripts/start_evaluate_with_plot.py时报错 #33

rad104ct1ve opened this issue Apr 10, 2024 · 2 comments

Comments

@rad104ct1ve
Copy link

在训练时可以正常运行,在以logs目录下保存的文件夹为eval path运行evaluate的时候就会报错,报错如下:

D:\anaconda\envs\uavsim\python.exe scripts\start_evaluate_with_plot.py
Traceback (most recent call last):
File "scripts\start_evaluate_with_plot.py", line 62, in
main()
File "scripts\start_evaluate_with_plot.py", line 36, in main
gui = TrainingUi(config=config_file)
File "E:\DRL\UAV_Navigation_DRL_AirSim-main\UAV_Navigation_DRL_AirSim-main\scripts\utils\ui_train.py", line 37, in init
self.init_ui()
File "E:\DRL\UAV_Navigation_DRL_AirSim-main\UAV_Navigation_DRL_AirSim-main\scripts\utils\ui_train.py", line 59, in init_ui
self.dynamics = self.cfg.get('options', 'dynamic_name')
File "D:\anaconda\envs\uavsim\lib\configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "D:\anaconda\envs\uavsim\lib\configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'options'

我将eval_path改成logs_eval\SimpleAvoid\sac-reawrd-1下的文件夹仍会报错:

Traceback (most recent call last):
File "scripts\start_evaluate_with_plot.py", line 62, in
main()
File "scripts\start_evaluate_with_plot.py", line 36, in main
gui = TrainingUi(config=config_file)
File "E:\DRL\UAV_Navigation_DRL_AirSim-main\UAV_Navigation_DRL_AirSim-main\scripts\utils\ui_train.py", line 37, in init
self.init_ui()
File "E:\DRL\UAV_Navigation_DRL_AirSim-main\UAV_Navigation_DRL_AirSim-main\scripts\utils\ui_train.py", line 59, in init_ui
self.dynamics = self.cfg.get('options', 'dynamic_name')
File "D:\anaconda\envs\uavsim\lib\configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "D:\anaconda\envs\uavsim\lib\configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'options'

请问大佬这是什么原因啊,本人强化学习小白,希望大佬解答一下,非常感谢!

@heleidsn
Copy link
Owner

这是config文件的问题,因为代码进行了多次更新,所以之前的config文件里面有些命名就出现了错误,比如No section: 'options'的问题,你在验证的时候尽量使用自己训练得到的policy会好一些

@SuperheroZLP
Copy link

你好,请问你解决这个问题了吗,我也遇到了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants