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

Grid Sensor Crash #6181

Open
jzdcf opened this issue Dec 17, 2024 · 0 comments
Open

Grid Sensor Crash #6181

jzdcf opened this issue Dec 17, 2024 · 0 comments
Labels
bug Issue describes a potential bug in ml-agents.

Comments

@jzdcf
Copy link

jzdcf commented Dec 17, 2024

In the same Python environment, with Python 3.10.12. PushAgentClub example, everything worked fine during training. However, when I added the Grid Sensor component to my project for training, an error occurred: PIL.UnidentifiedImageError: cannot identify image file <mlagents_envs.rpc_utils.OffsetBytesIO object。 If the Grid Sensor component is removed for training, everything will be normal. Uninstall and reinstall pil, it still crashed.
C:\Users\mm\ .conda\envs\mlagents\Lib\site-packages\PIL\Image.py on line 3536, The field "filename" was empty when it was printed

Do I need any other settings after adding the Grid Sensor component?

Environment:
unity-editor:2023.2
ml-agents: 1.2.0.dev0,
ml-agents-envs: 1.2.0.dev0,
Communicator API: 1.5.0,
PyTorch: 2.5.1+cpu

Solution:
I'm speechless; it turns out the "Detectable Tags" parameter can't be set to 0. Please close this issue.

@jzdcf jzdcf added the bug Issue describes a potential bug in ml-agents. label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue describes a potential bug in ml-agents.
Projects
None yet
Development

No branches or pull requests

1 participant