office31
Office31
¶
Bases: BaseDownloadableDataset
A custom train/test split of Office31Full.
Extends BaseDownloadableDataset,
so the dataset can be downloaded by setting download=True
when
initializing.
Source code in pytorch_adapt\datasets\office31.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
__init__(root, domain, train, transform=None, **kwargs)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
root |
str
|
The dataset must be located at |
required |
domain |
str
|
One of |
required |
train |
bool
|
Whether or not to use the training set. |
required |
transform |
The image transform applied to each sample. |
None
|
Source code in pytorch_adapt\datasets\office31.py
50 51 52 53 54 55 56 57 58 59 60 |
|
Office31Full
¶
Bases: BaseDataset
A small dataset consisting of 31 classes in 3 domains: amazon, dslr, webcam.
Source code in pytorch_adapt\datasets\office31.py
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 |
|
__init__(root, domain, transform)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
root |
str
|
The dataset must be located at |
required |
domain |
str
|
One of |
required |
transform |
The image transform applied to each sample. |
required |
Source code in pytorch_adapt\datasets\office31.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|