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

No such file or directory: 'color_vectors.pickle' #2

Open
fidel3d opened this issue May 21, 2020 · 1 comment
Open

No such file or directory: 'color_vectors.pickle' #2

fidel3d opened this issue May 21, 2020 · 1 comment

Comments

@fidel3d
Copy link

fidel3d commented May 21, 2020

Hi,
For some reason the 'color_vectors.pickle' file is not generated. I tried the code from the video and I try the github jupyter notebook.

All other pickle file are on the drive
Please advise,
Thanks

@earlng
Copy link

earlng commented Nov 11, 2020

OP's jupyter notebook is a bit weird. You unfortunately can't run it as-is, and need to make some changes for it to work as expected. Here are the changes I made:

run create_training_set_vectors_with_colors(model, X_train, y_train, batch_size, 'saver/model_epoch_5.ckpt', image_size), this should create the color_vectors.pickle file you need.

And then, you will need to change:
result_ids = simple_inference(model, session, train_set_vectors, test_image, color_vectors, image_size, distance='hamming')
to:
result_ids = simple_inference_with_color_filters(model, session, train_set_vectors, test_image, color_vectors, image_size, distance='hamming')

After that, you should be able to run the rest of the notebook no problem. Hope this helps!

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