Continual Loader (CLLoader)
A library for PyTorch's loading of datasets in the field of Continual Learning
Aka Continual Learning, Lifelong-Learning, Incremental Learning, etc.
Example:
from torch.utils.data import DataLoader
from clloader import CLLoader
from clloader.datasets import MNIST
clloader = CLLoader(
MNIST("my/data/path", download=True),
increment=1,
initial_increment=5
)
print(f"Number of classes: {clloader.nb_classes}.")
print(f"Number of tasks: {clloader.nb_tasks}.")
for task_id, (train_dataset, test_dataset) in enumerate(clloader):
train_loader = DataLoader(train_dataset)
test_loader = DataLoader(test_dataset)
# Do your cool stuff here
Supported Scenarios
| Name | Acronym | Supported |
|---|---|---|
| New Instances | NI | :x: |
| New Classes | NC | :white_check_mark: |
| New Instances & Classes | NIC | :x: |
Supported Datasets:
Note that the task sizes are fully customizable.
| Name | Nb classes | Image Size | Automatic Download |
|---|---|---|---|
| MNIST | 10 | 28x28x1 | :white_check_mark: |
| Fashion MNIST | 10 | 28x28x1 | :white_check_mark: |
| KMNIST | 10 | 28x28x1 | :white_check_mark: |
| EMNIST | 10 | 28x28x1 | :white_check_mark: |
| QMNIST | 10 | 28x28x1 | :white_check_mark: |
| MNIST Fellowship | 30 | 28x28x1 | :white_check_mark: |
| CIFAR10 | 10 | 32x32x3 | :white_check_mark: |
| CIFAR100 | 100 | 32x32x3 | :white_check_mark: |
| CIFAR Fellowship | 110 | 32x32x3 | :white_check_mark: |
| ImageNet100 | 100 | 224x224x3 | :x: |
| ImageNet1000 | 1000 | 224x224x3 | :x: |
| Permuted MNIST | 10 + X * 10 | 224x224x3 | :white_check_mark: |
Furthermore some "Meta"-datasets are available:
- InMemoryDataset: for in-memory numpy array
- PyTorchDataset: for any dataset defined in torchvision
- ImageFolderDataset: for datasets having a tree-like structure, with one folder per class
- Fellowship: to combine several datasets
Sample Images
MNIST:
| Task 0 | Task 1 | Task 2 | Task 3 | Task 4 |
FashionMNIST:
| Task 0 | Task 1 | Task 2 | Task 3 | Task 4 |
CIFAR10:
| Task 0 | Task 1 | Task 2 | Task 3 | Task 4 |
MNIST Fellowship (MNIST + FashionMNIST + KMNIST):
| Task 0 | Task 1 | Task 2 |
PermutedMNIST:
| Task 0 | Task 1 | Task 2 | Task 3 | Task 4 |
Metadata
Release files for clloader-arthurdouillard 0.0.1
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 |
|---|---|---|---|---|
| clloader-arthurdouillard-0.0.1.tar.gz | 409.8 kB | Without provenance | Details for clloader-arthurdouillard-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clloader_arthurdouillard-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for clloader_arthurdouillard-0.0.1-py3-none-any.whl |
Total release size: 421.6 kB
Release files / clloader-arthurdouillard-0.0.1.tar.gz
| Download URL | clloader-arthurdouillard-0.0.1.tar.gz |
|---|---|
| Size | 409.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89551bb617ee77d92ef3c7e9184315419a6f8f09bd6602017708b5575424edb6
|
|
BLAKE2b-256 checksum How to use checksums |
9931bd2599e2ddbceea37cea43f011c407d4cb3a5cd620c3da626c5efd9f345e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.6
|
Release files / clloader_arthurdouillard-0.0.1-py3-none-any.whl
| Download URL | clloader_arthurdouillard-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fd2d2bf93814a8f4ce0c8b6f9b10dfcca2a8ee8b25939b9891c58ee86236046
|
|
BLAKE2b-256 checksum How to use checksums |
70575b7182ad26a819afde674c79b230c339dea387250c3dec6d4a1a88e9f34a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.6
|
Security for clloader-arthurdouillard 0.0.1
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.