snake-ai icon indicating copy to clipboard operation
snake-ai copied to clipboard

An AI agent that beats the classic game "Snake".

Results 30 snake-ai issues
Sort by recently updated
recently updated
newest added

非常赞的project!我可以在本地test,但是train的时候,memory和cpu oom了。作者可否分享一下cpu和memory的信息

bugfix: train error when the slient_mode is True.

(SnakeAI) E:\snake-ai-master\main>python train_cnn.py Using cuda device Wrapping the env in a VecTransposeImage. Process SpawnProcess-5: Traceback (most recent call last): File "C:\Users\KEN2020\.conda\envs\SnakeAI\lib\multiprocessing\process.py", line 315, in _bootstrap self.run() File "C:\Users\KEN2020\.conda\envs\SnakeAI\lib\multiprocessing\process.py", line 108,...

`============================= test session starts ============================= platform win32 -- Python 3.9.12, pytest-7.1.1, pluggy-1.0.0 -- D:\anaconda\python.exe cachedir: .pytest_cache rootdir: E:\python_project\snake-ai-other\main plugins: anyio-3.5.0 collecting ... test_cnn.py:None (test_cnn.py) test_cnn.py:25: in model = MaskablePPO.load(MODEL_PATH) D:\anaconda\lib\site-packages\stable_baselines3\common\base_class.py:687:...

Using cuda device Wrapping the env in a VecTransposeImage. 一直卡在这

``` (SnakeAI) U:\桌面\snake-ai-master>pip install -r requirements.txt Collecting gym==0.21.0 Downloading gym-0.21.0.tar.gz (1.5 MB) ---------------------------------------- 1.5/1.5 MB 3.3 MB/s eta 0:00:00 Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info...

![image](https://github.com/linyiLYi/snake-ai/assets/30023378/1c9628ae-e5c1-42b2-b2f0-ceac3e1ba146) 文件内的提示与文件名不同。 ![image](https://github.com/linyiLYi/snake-ai/assets/30023378/2452bb8d-f23f-4254-a13d-dc3b3f9ce23d) 编码格式 —————— 这个代码思路很好,删减换行可以与gpt对话。我用gpt进行了功能拓展1.以文件上传框形式选中文件进行处理 2.将处理后的文件保存到本地,文件路径为源文件路径,文件名为原文件名_缩短 [压缩代码.zip](https://github.com/linyiLYi/snake-ai/files/11582896/default.zip) 用pyinstaller打包了,应该会成为我常用的软件

test_cnn.py无法加载模型,test_mlp.py可以加载。 运行时卡在"model = MaskablePPO.load(MODEL_PATH)", 如果把"MODEL_PATH = r"trained_models_cnn/ppo_snake_final"" 替换为"MODEL_PATH = r"trained_models_mlp/ppo_snake_final"" 则可以运行通过。 我想应该是zip文件有问题。