You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download and unzip this directory somewhere : [tensorflow_chessbot](https://github.com/Elucidation/tensorflow_chessbot/archive/master.zip)
26
+
27
+
Then, download and unzip this saved model to the same directory : [tensorflow_chessbot_model_v01.zip](https://drive.google.com/open?id=0BwW6qsUNa47xeUNvQ2M0a053Y0U)
28
+
29
+
The directory structure should look like `<SOMEWHERE>\tensorflow_chessbot-master\saved_models`
30
+
31
+
Now, to run pass the following arguments to `tensorflow_chessbot.py`
Predict a chessboard FEN from supplied local image link or URL
37
+
38
+
optional arguments:
39
+
-h, --help show this help message and exit
40
+
--url URL URL of image (ex. http://imgur.com/u4zF5Hj.png)
41
+
--filepath FILEPATH filepath to image (ex. u4zF5Hj.png)
42
+
43
+
By default, it will try and load the URL `http://imgur.com/u4zF5Hj.png` and make a prediction in it, otherwise, you could pass a local file like so (for example with an image file `u4zF5Hj.png` located in the same directory):
44
+
45
+
./tensorflow_chessbot.py --filepath u4zF5Hj.png
46
+
47
+
Which should output something like:
48
+
49
+
./tensorflow_chessbot.py --filepath ./u4zF5Hj.png
50
+
Setting up CNN TensorFlow graph...
51
+
I tensorflow/core/common_runtime/local_device.cc:40] Local device intra op parallelism threads: 2
52
+
I tensorflow/core/common_runtime/direct_session.cc:58] Direct session inter op parallelism threads: 2
53
+
Loading model 'saved_models/model_10000.ckpt'
54
+
Model restored.
55
+
Certainty range [0.999545 - 1], Avg: 0.999977, Overall: 0.998546
[/u/ChessFenBot](https://www.reddit.com/user/ChessFenBot) will automatically reply to [reddit /r/chess](https://www.reddit.com/r/) new topic image posts that contain detectable online chessboard screenshots. A screenshot either ends in `.png`, `.jpg`, `.gif`, or is an `imgur` link.
0 commit comments