-
Notifications
You must be signed in to change notification settings - Fork 92
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
Windows系统测试用例时出现下面问题 请问应该如何解决? #26
Comments
你好,方便让我看一下torch和xuance的版本号吗?先排除一下是不是版本问题 |
谢谢您, |
此外,在运行demo_marl.py测试时,我将parser.add_argument("--device", type=str, default="cuda:0")修改为
|
您好,第二个问题和torch版本无关,是由于我们近期优化MARL部分代码出现的小bug,目前已修复并上传最新代码了。给您带来不便非常抱歉。 但是第一个问题在我电脑上没有发生过,我用的是MacOS,我跟您一样也怀疑是Windows识别路径方式和Linux不一样导致的。感谢您提出这个问题,我们会在Windows上充分测试并排除类似问题。 |
万分感谢!!! |
测试代码:
import xuance
runner = xuance.get_runner(method='dqn',
env='classic_control',
env_id='CartPole-v1',
is_test=False)
runner.run()
报错:
test_dqn.py:None (test_dqn.py)
test_dqn.py:6: in
runner.run()
xuance\torch\runners\runner_drl.py:93: in run
self.agent.save_model("final_train_model.pth")
xuance\torch\agents\agent.py:90: in save_model
self.learner.save_model(model_path)
xuance\torch\learners\learner.py:25: in save_model
torch.save(self.policy.state_dict(), model_path)
C:\Users\G11.conda\envs\xuance_env\lib\site-packages\torch\serialization.py:422: in save
with _open_zipfile_writer(f) as opened_zipfile:
C:\Users\G11.conda\envs\xuance_env\lib\site-packages\torch\serialization.py:309: in _open_zipfile_writer
return container(name_or_buffer)
C:\Users\G11.conda\envs\xuance_env\lib\site-packages\torch\serialization.py:287: in init
super(_open_zipfile_writer_file, self).init(torch._C.PyTorchFileWriter(str(name)))
E RuntimeError: Parent directory E:\JYC_CODE\强化学习\xuance./models/dqn does not exist.
collected 0 items / 1 error
是由于Windows系统下文件路径和Linux文件路径不一致导致的么?请问应该如何解决?谢谢~
The text was updated successfully, but these errors were encountered: