Skip to content

Commit

Permalink
Adding bucket/path (blobstore) in dataset descriptor (facebookresearc…
Browse files Browse the repository at this point in the history
…h#3848)

Summary:
Pull Request resolved: facebookresearch#3848

same as title.
Dataset can be referred from blobstore

Reviewed By: satymish

Differential Revision: D62476993

fbshipit-source-id: db2b4088ab6e02278b8b91194bf916fc476b79ec
  • Loading branch information
kuarora authored and facebook-github-bot committed Sep 12, 2024
1 parent d85fda7 commit a166e13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchs/bench_fw/descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class DatasetDescriptor:
# sampling column for xdb
sampling_column: Optional[str] = None

# blob store
bucket: Optional[str] = None
path: Optional[str] = None

def __hash__(self):
return hash(self.get_filename())

Expand Down
5 changes: 5 additions & 0 deletions contrib/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ def get_groundtruth(self, k=100):
dataset_basedir = 'data/'


def set_dataset_basedir(path):
global dataset_basedir
dataset_basedir = path


class DatasetSIFT1M(Dataset):
"""
The original dataset is available at: http://corpus-texmex.irisa.fr/
Expand Down

0 comments on commit a166e13

Please sign in to comment.