aelmiger / chessboard2fen Goto Github PK
View Code? Open in Web Editor NEWConverting real images of a chessboard to FEN codes.
License: MIT License
Converting real images of a chessboard to FEN codes.
License: MIT License
This is the issue I get after running pip install -r requirements.txt inside a virtualenv environment on Mac M1. Any ideas? Nice project btw!
clang: numpy/core/src/multiarray/alloc.c
clang: numpy/core/src/multiarray/array_assign_scalar.c
clang: numpy/core/src/multiarray/buffer.c
clang: numpy/core/src/multiarray/common.c
clang: numpy/core/src/multiarray/conversion_utils.c
clang: numpy/core/src/multiarray/descriptor.c
clang: numpy/core/src/multiarray/datetime_strings.c
clang: build/src.macosx-13-arm64-3.11/numpy/core/src/multiarray/einsum.c
clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
clang: numpy/core/src/multiarray/hashdescr.c
clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
clang: build/src.macosx-13-arm64-3.11/numpy/core/src/multiarray/lowlevel_strided_loops.c
The following lines are the warning messages i get:
2023-06-09 16:07:46.235447: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2023-06-09 16:07:46.235565: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2023-06-09 16:07:48.274818: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2023-06-09 16:07:48.338426: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:29:00.0 name: NVIDIA GeForce GTX 1650 computeCapability: 7.5
coreClock: 1.59GHz coreCount: 14 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 178.84GiB/s
2023-06-09 16:07:48.339794: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2023-06-09 16:07:48.340883: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_10.dll'; dlerror: cublas64_10.dll not found
2023-06-09 16:07:48.341921: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2023-06-09 16:07:48.371945: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll
2023-06-09 16:07:48.373297: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
2023-06-09 16:07:48.374450: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusparse64_10.dll'; dlerror: cusparse64_10.dll not found
2023-06-09 16:07:48.375527: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.dll not found
2023-06-09 16:07:48.375619: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2023-06-09 16:07:48.743390: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2023-06-09 16:07:48.749498: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x1a49acc68c0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2023-06-09 16:07:48.749616: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2023-06-09 16:07:48.749766: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2023-06-09 16:07:48.749847: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108]
WARNING:tensorflow:No training configuration found in save file, so the model was not compiled. Compile it manually.
WARNING:tensorflow:No training configuration found in the save file, so the model was not compiled. Compile it manually.
2023-06-09 16:08:00.418291: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1631] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
Traceback (most recent call last):
File "detectionScript.py", line 73, in
cd.main()
File "detectionScript.py", line 47, in main
board = Chessboard()
File "/content/chessboard2fen/chessboard.py", line 29, in init
self.engine = chess.engine.SimpleEngine.popen_uci("./engine/stockfish")
AttributeError: module 'chess.engine' has no attribute 'SimpleEngine'
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.
Below is what I tried:
$ python --version
Python 3.11.2
$ git clone https://github.com/aelmiger/chessboard2fen.git
$ python3 -m venv .venv
$ source .venv/bin/activate
(.venv) $ pip install -r requirements.txt
The pip install
exited with error as attached. It could be a python version error, or similar, but I have no idea about python or pip environments...
Traceback (most recent call last):
File "c:/Users/joaof/OneDrive/Área de Trabalho/21.2/Projeto Nivel 1 em Proc. Digital de Sinais/projeto/chessboard2fen/detectionScript.py", line 1, in
from chessboard import Chessboard
File "c:\Users\joaof\OneDrive\Área de Trabalho\21.2\Projeto Nivel 1 em Proc. Digital de Sinais\projeto\chessboard2fen\chessboard.py", line 2, in
from cairosvg import svg2png
File "C:\Users\joaof\AppData\Local\Programs\Python\Python37\lib\site-packages\cairosvg_init_.py", line 26, in
from . import surface # noqa isort:skip
File "C:\Users\joaof\AppData\Local\Programs\Python\Python37\lib\site-packages\cairosvg\surface.py", line 9, in
import cairocffi as cairo
File "C:\Users\joaof\AppData\Local\Programs\Python\Python37\lib\site-packages\cairocffi_init_.py", line 50, in
('libcairo.so.2', 'libcairo.2.dylib', 'libcairo-2.dll'))
File "C:\Users\joaof\AppData\Local\Programs\Python\Python37\lib\site-packages\cairocffi_init_.py", line 45, in dlopen
raise OSError(error_message) # pragma: no cover
OSError: no library called "cairo-2" was found
no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': error 0x7e
cannot load library 'libcairo.2.dylib': error 0x7e
cannot load library 'libcairo-2.dll': error 0x7e
wrong repo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.