-
Notifications
You must be signed in to change notification settings - Fork 126
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
[Question] All three ways of running the code failed in Windows #247
Comments
Hi, @623637719,
conda create -n test_omnisafe python=3.8
pip install omnisafe
In addition to that, we also support running on Mac OS with Apple Silicon, but this requires some additional configuration. More details can be referred to |
Feel free to ask to reopen this if you have more questions. |
感谢回复!咱们中国人给中国人发邮件就不用发英文了,我找到了你的这两个文件,并且尝试运行了他们,我设置的算法选择是CPO,
刚开始运行几次是这样子的,正常,但是运行了一定轮数之后发生了报错
报错信息如下图
我现在在你们北大前沿计算中心的实验室做科研,目前希望能够通过这个地方是去使用safe RL算法去做一些项目,最近还是蛮希望能够解决这个问题的,再一次的,谢谢回复!
峤
***@***.***
…------------------ 原始邮件 ------------------
发件人: "Jiayi ***@***.***>;
发送时间: 2023年6月2日(星期五) 凌晨1:47
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [PKU-Alignment/omnisafe] [Question] All three ways of running the code failed (Issue #247)
We are very sorry for the inconvenience caused to your experience. There may be some misunderstanding here. The first two training methods in the document correspond to train_from_yaml.py and train_from_custom_dict.py under the omnisafe/examples/ path. You can fill these two files with content from the documentation and run them. After my local test, the training can be performed normally. As for the third training method, I also found no problems running it locally. Can you provide more detailed error information so that we can solve your problem more quickly?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
再次感谢你的认真解答!不知道是否方便我们约个腾讯会议,然后我共享一下屏幕,我们通过会议沟通一下看看如何解决,我感觉如果你方便直接查看我电脑的一些信息和运行过程的话,我们能够更快解决这个问题
峤
***@***.***
…------------------ 原始邮件 ------------------
发件人: "Jiayi ***@***.***>;
发送时间: 2023年6月6日(星期二) 凌晨0:48
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [PKU-Alignment/omnisafe] [Question] All three ways of running the code failed in Windows (Issue #247)
As soon as I received your message, I immediately began testing.
First, I installed the latest version of Omnisafe from the main branch on my personal Linux computer and ran the main training program for CPO using the following command.
cd examples python train_policy.py --algo CPO
Second, I also created a Docker image.
cd omnisafe sudo docker build -t omnisafe . sudo docker -i -t omnisafe
Then run the same command
cd examples python train_policy.py --algo CPO
Both testing methods yielded the same result, which is the successful completion of 1e7 steps in CPO's SafetyPointGoal1.
I noticed that in your previous questions, you mentioned installing Omnisafe via PyPI, which differs from the latest version of the source code. In my testing, I also tested Omnisafe installed via PyPI and did not encounter any issues. The version of Omnisafe I installed via PyPI is 0.4.0. I noticed that you mentioned providing a screenshot of an error message, but unfortunately, I didn't see it. If you can provide detailed version information, it would be helpful for us to assist you in resolving your issue.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@623637719 We do not officially support Windows. Please use WSL, docker, or a native Linux machine to run our code and examples. Also, please provide the relevant information before asking a question, such as your runtime environment and versions, package versions, hyperparameters, and command line options, etc. PS: Please learn how to ask a question before asking a question and creating a new issue. There is a good lesson How do I ask a good question? for this.
Emailing open-source maintainers directly (or asking for offline help) instead of opening issues on their projects is a rude thing to do. Someone else may face the exact same issue that you are facing. It's not helpful that we resolve this only for you offline. You can post your information, comments, and thoughts on the GitHub page. The whole community can see and learn from that. |
感谢回复和指教,这是我第一次在github上提问,有许多规则也不是很清楚,十分抱歉因为还比较萌新所以有所冒犯,这次提问方式不够好我也会注意的。
再一次地,向你们道歉~
峤
***@***.***
…------------------ 原始邮件 ------------------
发件人: "Xuehai ***@***.***>;
发送时间: 2023年6月6日(星期二) 下午4:57
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [PKU-Alignment/omnisafe] [Question] All three ways of running the code failed in Windows (Issue #247)
@623637719 We do not officially support Windows. Please use WSL, docker, or a native Linux machine to run our code and examples. Also, please provide the relevant information before asking a question, such as your runtime environment and versions, package versions, hyperparameters, and command line options, etc.
PS: Please learn how to ask a question before asking a question and creating a new issue. There is a good lesson How do I ask a good question? for this.
不知道是否方便我们约个腾讯会议
Emailing open-source maintainers directly (or asking for offline help) instead of opening issues on their projects is a rude thing to do. Someone else may face the exact same issue that you are facing. It's not helpful that we resolve this only for you offline. You can post your information, comments, and thoughts on the GitHub page. The whole community can see and learn from that.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
hi, @623637719, we can schedule a meeting to help you resolve this issue. We can communicate via email to determine a mutually convenient time for both parties. |
Required prerequisites
Questions
As the documentation shows,there are three ways to run the code
1.
2.
3.
I've tried every way to run the code but it got errors.Help.....
The text was updated successfully, but these errors were encountered: