sethuiyer / Image-to-Image-Search

A reverse image search engine powered by elastic search and tensorflow
MIT License
320 stars 50 forks source link

Problem with dataset.json #1

Closed DaryaMarkova closed 5 years ago

DaryaMarkova commented 5 years ago

Could you please tell me where should I take dataset.json from? What is this file? I can't find out it nowhere

sethuiyer commented 5 years ago

the dataset.json is a part of Flickr-8K data which has the information about the images present in Flickr-8K dataset.

Here I am loading the dataset.json, extracting the image paths and the corresponding description of the images. If you are using Flickr-8K data as your database, you can find the dataset.json here.

If you are using a custom database, just make sure to change the lines 12-14 of index.py with custom image path and their descriptions.

chinmaydas96 commented 5 years ago

Can you upload a link directly to dataset.json or can tell how to create dataset.json for custom dataset, the given link for data with lable . I Will very much appreciate it if you upload it. Thanks.

sethuiyer commented 5 years ago

I am not allowed to post the direct link to dataset.json as it is against the licensing requirements of Flickr 8K dataset.

The dataset.json of Flickr8k dataset basically has the information about labels.

Here I am opening that file and extracting the image path and the caption and adding that to a list of dictionary called actions.

For custom data, you have to add the custom image path and their descriptions in the actions as per the format described in the index.py file.

I will soon add the code for custom indexing as well as code to train your own image captioner.

Ashwin1234 commented 5 years ago

Can you please tell me how to prepare the dataset.json file as u have mentioned in the repository

sethuiyer commented 5 years ago

Hi everyone, I have updated the code to work in Python 3 and added a sample dataset.json in the place where it should be and also added a FAQ section which discusses about the dataset.json. Cheers!

Ashwin1234 commented 5 years ago

Should i have to enter the description for all the images one by one in the loop as given in the code or is there any other method for creating the dataset.json file.

On Sat, Mar 30, 2019 at 8:17 PM Sethu Iyer notifications@github.com wrote:

Closed #1 https://github.com/sethuiyer/Image-to-Image-search/issues/1.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sethuiyer/Image-to-Image-search/issues/1#event-2241068486, or mute the thread https://github.com/notifications/unsubscribe-auth/AONydHTU1u79Y6D2eet9TB9hYv-76z02ks5vb3j4gaJpZM4agGrV .