Closed zedja123 closed 4 months ago
Also having a problem when executing it:
python -u eval.py --env-id "YGOPro-v0" --deck ../assets/deck/ --num_episodes 32 --strategy random --lang chinese --num_envs 16
Traceback (most recent call last):
File "C:\Users\Miguel\Desktop\YUGIOH IA\ygo-agent\scripts\eval.py", line 104, in
Any way to use custom cards with this?
Yes, custom cards can be used with this project. Here's how it works:
As for supporting new cards or decks specifically in YGO-Agent, I'm currently working on documentation to explain this process. I'll be adding this information to the README in the coming days.
Thanks for the fast response and hard work on this! I haven't come to make it work yet but I'm really excited for it. Could you try to solve the error on the second message?
Also having a problem when executing it:
python -u eval.py --env-id "YGOPro-v0" --deck ../assets/deck/ --num_episodes 32 --strategy random --lang chinese --num_envs 16 Traceback (most recent call last): File "C:\Users\Miguel\Desktop\YUGIOH IA\ygo-agent\scripts\eval.py", line 104, in deck = init_ygopro(args.env_id, args.lang, args.deck, args.code_list_file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Miguel\Desktop\YUGIOH IA\ygo-agent\scripts\ygoai\utils.py", line 44, in init_ygopro from ygoenv.ygopro import init_module ModuleNotFoundError: No module named 'ygoenv.ygopro'
Thank you for reporting this issue. Let me clarify a few points and provide some troubleshooting steps:
On wsl2 I'm facing a Segmentation Fault error, any thoughts on this?
Also did pip install -e ygoenv on ygo-agent and got this error when executing same command:
Traceback (most recent call last):
File "C:\Users\Miguel\Desktop\YUGIOH IA\ygo-agent\scripts\eval.py", line 104, in
On wsl2 I'm facing a Segmentation Fault error, any thoughts on this?
The segmentation fault error you're experiencing is due to a version mismatch with ygopro-core. I've just pushed a fix to address this. Here are the steps to resolve the issue:
stable
branch.rm -rf ~/.xmake
b. Navigate to the project directory and rebuild: xmake f -y -c && xmake b -r ygopro_ygoenv
cd ygopro-scripts && git checkout 44eff41f
ygo-agent/scripts
and ensure the script
directory is linked correctly.python -u eval.py --env-id "YGOPro-v0" --deck ../assets/deck/ --num_episodes 32 --strategy random --lang chinese --num_envs 16
If you encounter any further issues or need additional clarification, please don't hesitate to ask.
I'm still getting Segmentation Fault error after rebuilding and redoing building process in another folder
I'm still getting Segmentation Fault error after rebuilding and redoing building process in another folder
Make sure you run python -u eval.py
in the scripts
directory and the scripts/script
is a soft link of ygopro-scripts
, and try again.
Did that but still, same Segmentation Fault error
Did that but still, same Segmentation Fault error
It's strange. Could you please join this Discord channel (https://discord.gg/KHh4WD4B)? It would be easier for us to have a more detailed conversation to solve this problem.
Sure! Joining now.
The issue arises due to a compatibility conflict between pybind11 v2.11 and numpy v2.0. Solved by upgrading pybind11 to 2.13 or downgrading numpy. ygo-agent uses pybind11 v2.13 as the default now.
Any way to use custom cards with this?