Splits for Office31 domain adaptation tasks
This repository contains the revised protocol for creating Office31 splits for few shot domain adaptation.
Contrary to the usual splits, we define an independent test split here (split using a hardcoded seed), and let the train-val split vary according to a user-defined random seed.
Installation
pip install office31
Usage
Getting the splits is a simple as:
from office31 import office31
train, val, test = office31(
source_name = "webcam",
target_name = "amazon",
seed=1,
same_to_diff_class_ratio=3,
image_resize=(240, 240),
group_in_out=True, # groups data: ((img_s, img_t), (lbl_s, _lbl_t))
framework_conversion="tensorflow",
office_path = None, #automatically downloads to "~/data"
)
The function automatically downloads and unpacks the data if necessary. It then creates the splits using the Dataset Ops library. Depending on your choice of machine learning library, the dataset can be converted to Tensorflow or PyTorch (assuming either is pre-installed) using Dataset Ops.
Metadata
Release files for office31 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| office31-0.1.3.tar.gz | 3.8 kB | Without provenance | Details for office31-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| office31-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for office31-0.1.3-py3-none-any.whl |
Total release size: 9.0 kB
Release files / office31-0.1.3.tar.gz
| Download URL | office31-0.1.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95294eab32037978fd5b0739763baaa22ff5e9a8f1dacb201eec62ffbf2c5a3f
|
|
BLAKE2b-256 checksum How to use checksums |
8645096804504a66dfa8f29943e030f6bf9b13dc0a48f4466b7c25a73de6bddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / office31-0.1.3-py3-none-any.whl
| Download URL | office31-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92a796c87014ca7d93240e6df08b9d6f9d221b7921ba77f066fe09dbd35460d9
|
|
BLAKE2b-256 checksum How to use checksums |
2337aa4e67a0b3dfda4388f69c31e2929c5c925d87a533013b78f9d5dea6fe61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Security for office31 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.