Closed Hamza-101 closed 2 months ago
Link #1905
I have trained and tested a custom Boid flocking environment
- [x] My issue does not relate to a custom gym environment. (Use the custom gym env template instead)
Please complete your message with the missing elements (minimal code among others) Have you tried the wrapper mentioned?
Link #1905
I have trained and tested a custom Boid flocking environment
- [x] My issue does not relate to a custom gym environment. (Use the custom gym env template instead)
Please complete your message with the missing elements (minimal code among others) Have you tried the wrapper mentioned?
Sorry I don't exactly get what's required. Which wrapper, Can you please clarify? 👍
Check the custom environment issue template. In future, read the instructions carefully (eg, don't check a box if you haven't read the associated item), they are there to help you and to help us help you.
Sorry, just unchecked it.
Found what to do. Sorry for the hassle.
Good. However, this is not technical support or after-sales service. Thanks for considering posting your solution so that it can benefit everyone.
Yes I am not considering as such. Is the last sentence sarcasm?
No, the aim of the issues is for people to be able to ask their question and for the answer to help future people with the same problem. As a result, asking a question and closing it without sharing the solution is not good practice.
So yeah. Yeah I get it.
🐛 Bug
I have trained and tested a custom Boid flocking environment, in OpenAI Gym, using 3 Boids it works. However when I test it, the policy, for greater than that e.g 10, it gives the following error.![image](https://github.com/DLR-RM/stable-baselines3/assets/45544623/6d587420-3c47-4d3c-a5eb-a1f363c34b4c)
I am essentially trying to create an extensible policy for boid flocking.
To Reproduce
Download Code: https://drive.google.com/drive/folders/1c0t-7D5RWumtLY9Bh9kht6P3RAQ4mq0V?usp=sharing Download Model: https://drive.google.com/file/d/1wrBZ6mSrcaxrWERgvUYA_vLDaA0JL08f/view?usp=drive_link
Steps:
python PPONew.py
it will output error as given below.
Relevant log output / Error message
System Info
({'OS': 'Windows-10-10.0.22631-SP0 10.0.22631', 'Python': '3.11.4', 'Stable-Baselines3': '2.2.1', 'PyTorch': '2.0.0+cpu', 'GPU Enabled': 'False', 'Numpy': '1.23.5', 'Cloudpickle': '1.2.2', 'Gymnasium': '0.29.1', 'OpenAI Gym': '0.15.7'}, '- OS: Windows-10-10.0.22631-SP0 10.0.22631\n- Python: 3.11.4\n- Stable-Baselines3: 2.2.1\n- PyTorch: 2.0.0+cpu\n- GPU Enabled: False\n- Numpy: 1.23.5\n- Cloudpickle: 1.2.2\n- Gymnasium: 0.29.1\n- OpenAI Gym: 0.15.7\n')
Checklist