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

Weights missing #4

Open
pmauchle opened this issue Oct 17, 2018 · 7 comments
Open

Weights missing #4

pmauchle opened this issue Oct 17, 2018 · 7 comments

Comments

@pmauchle
Copy link
Collaborator

pmauchle commented Oct 17, 2018

I wanted to try out ChessVision but could not get it running.

python cv_endpoint.py

IOError: Unable to open file (unable to open file: name = '/path/to/ChessVision/weights/best_weights_square.hdf5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

I saw you included this in your gitignore:
weights/*

Maybe adding the weights to the source would resolve this error?

@gudbrandtandberg
Copy link
Owner

gudbrandtandberg commented Oct 17, 2018 via email

@pmauchle
Copy link
Collaborator Author

I don't mind retrain it, could you point me in the right direction to do so?

@gudbrandtandberg
Copy link
Owner

gudbrandtandberg commented Oct 18, 2018 via email

@pmauchle
Copy link
Collaborator Author

Running the square classifier was no problem, but I don't have any success running the train_board_extractor.py

The square classifier uses
model = build_square_classifier()

In train_board_extractor.py on line 86:
model = load_extractor() # or train from scratch?!

I didn't figure out how to train it from scratch?

@gudbrandtandberg
Copy link
Owner

Oh I think you can just exchange line 86 with:

model = build_board_extractor()

as long as you make sure it's imported from wherever it lives.
The line I have is useful if you'd rather pick up training from where you left of, say if you have some more data. The only difference is that load_extractor loads the weights, which you currently don't have!

@pmauchle
Copy link
Collaborator Author

There is no build_board_extractor() in the code, maybe I just don't see it

@gudbrandtandberg
Copy link
Owner

gudbrandtandberg commented Oct 23, 2018 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