image-search-engine icon indicating copy to clipboard operation
image-search-engine copied to clipboard

No such file or directory: 'color_vectors.pickle'

Open fidel3d opened this issue 6 years ago • 1 comments

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

fidel3d avatar May 21 '20 21:05 fidel3d

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!

earlng avatar Nov 11 '20 03:11 earlng