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

Piece detection not working #9

Open
leason opened this issue Oct 29, 2023 · 7 comments
Open

Piece detection not working #9

leason opened this issue Oct 29, 2023 · 7 comments

Comments

@leason
Copy link

leason commented Oct 29, 2023

Hi, not sure if this is still a side project or not. I'm trying to build a little bot that will let me play an over-the-board game with chess.com bots or my friends using raspberry pi parts.

I got your code working on my macbook but the detection doesn't seem to be working for the pieces. It looks like it draws the board corners and box right, but the pieces don't get detected at all. Anyone else run into that? No errors, just a warning about the tensor model but doesn't seem like that would cause the problem: WARNING:tensorflow:No training configuration found in save file, so the model was not compiled. Compile it manually.

@aelmiger
Copy link
Owner

What images are you testing with?

@leason
Copy link
Author

leason commented Oct 30, 2023 via email

@aelmiger
Copy link
Owner

Do you have any more information regarding what is not working exactly?

@leason
Copy link
Author

leason commented Oct 30, 2023 via email

@leason
Copy link
Author

leason commented Oct 31, 2023

After a lot of experimentation with this and several other projects what I'm learning is that these models will only work reliably with the exact chess set they were trained on. I'd be willing to just buy the set you used for training if you can point me at the online store you got it from? My focus is more on building a companion bot to play an over-the-board game against so I'm trying to avoid having to take the time right now to train my own model if I can avoid it.

@aelmiger
Copy link
Owner

Yes, that is correct. The CNN was only trained with one specific board and will most likely fail on other boards without additional training data.

Unfortunately I cannot find out which chessboard I used for training.

@leason
Copy link
Author

leason commented Oct 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants