Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Linear Evaluation on VOC07 #558

Closed
ShramanPramanick opened this issue Jul 8, 2022 · 1 comment
Closed

Linear Evaluation on VOC07 #558

ShramanPramanick opened this issue Jul 8, 2022 · 1 comment

Comments

@ShramanPramanick
Copy link

Hi,

I have installed VISSL using conda pre-built binaries and have successfully trained SimClr on ImageNet following https://vissl.readthedocs.io/en/v0.1.5/getting_started.html. Next, I evaluated the saved model checkpoint on ImageNet Linear Evaluation following https://vissl.readthedocs.io/en/v0.1.5/evaluations/linear_benchmark.html#benchmark-imagenet-1k.

Now, I want to perform linear classification on voc07. However, I am not sure how to register the voc07 dataset in my python interpreter, and what is the expected data format. For Imagenet, I followed the following steps:

>>> json_data = {
        "imagenet1k_folder": {
            "train": ["<img_path>", "<lbl_path>"],
            "val": ["<img_path>", "<lbl_path>"]
        }
    }
>>> from vissl.utils.io import save_file
>>> save_file(json_data, "/tmp/configs/config/dataset_catalog.json")
>>> from vissl.data.dataset_catalog import VisslDatasetCatalog
>>> print(VisslDatasetCatalog.list())
['imagenet1k_folder']
>>> print(VisslDatasetCatalog.get("imagenet1k_folder"))
{'train': ['<img_path>', '<lbl_path>'], 'val': ['<img_path>', '<lbl_path>']}

What will be the commands for registering voc07?

@ShramanPramanick
Copy link
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant