vislab icon indicating copy to clipboard operation
vislab copied to clipboard

How to load the features from a dataset end-to-end?

Open mgh1 opened this issue 10 years ago • 0 comments

Hi Sergey - I noticed in /vislab/feature.py there is a compute command which appears to load the features. I'd just like to confirm the end-to-end procedure of adding my own dataset and getting features into the db.

So - follow the "Adding your own" section of the dataset documentation:

  1. Add the file vislab/datasets/your_dataset.py that will contain a function to load a pandas.DataFrame with:
  2. unique string-based index, with name image_id
  3. image_url or image_filename in columns
  4. a column for whatever boolean label you care about (does this matter if I am just extracting neural codes?)
  5. Modify DATASETS in vislab/dataset.py to map a name to your new function.
  6. Then finally, call feature.py compute from command line? (is feature.py the main entry point?)

mgh1 avatar Sep 15 '14 22:09 mgh1