-
Notifications
You must be signed in to change notification settings - Fork 518
/
places365.py
35 lines (29 loc) · 976 Bytes
/
places365.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# For licensing see accompanying LICENSE file.
# Copyright (C) 2024 Apple Inc. All Rights Reserved.
#
import argparse
from corenet.data.datasets import DATASET_REGISTRY
from corenet.data.datasets.classification.base_image_classification_dataset import (
BaseImageClassificationDataset,
)
@DATASET_REGISTRY.register(name="places365", type="classification")
class Places365Dataset(BaseImageClassificationDataset):
"""
Places365 dataset that follows the structure of ImageClassificationDataset.
"Places: A 10 million Image Database for Scene Recognition"
B. Zhou, A. Lapedriza, A. Khosla, A. Oliva, and A. Torralba
IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
"""
def __init__(
self,
opts: argparse.Namespace,
*args,
**kwargs,
) -> None:
BaseImageClassificationDataset.__init__(
self,
opts=opts,
*args,
**kwargs,
)