Revised splits for Office31 domain adaptation experiments
Project description
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,
some_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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file office31-0.1.1.tar.gz
.
File metadata
- Download URL: office31-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47e414a4d3509a401e2971f7b30cd273c9fa53ebb5b115336cb969fda542dbd7 |
|
MD5 | 04db2570999fa33cc34ecc9c3d0b4e17 |
|
BLAKE2b-256 | 67de12c584aa5e15db9ca9465e1e5c752a69b7f33cfacecd0abb208f1bb41b50 |
File details
Details for the file office31-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: office31-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccbec9db173f0911e27609df83076f76b5715b22f09e7924ccaafc9a930ea820 |
|
MD5 | c664573bc2e0fdf94969b941d4e7f866 |
|
BLAKE2b-256 | 6cc99199c3ee36f530b02597af2ec6ad75c3d9c725cc67bf5d8aa5a2c42db696 |