Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Add sample visualization option to the DataModule API #74

Closed
aribornstein opened this issue Feb 6, 2021 · 2 comments
Closed

Add sample visualization option to the DataModule API #74

aribornstein opened this issue Feb 6, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@aribornstein
Copy link
Contributor

🚀 Feature

It would be great to have the ability to sample image, text, tabular and audio samples from the flash datamodule.

Motivation

In ImageClassificationData, TextClassificationData, TabularClassificationData etc it would be great to have an overridable .visualize() method that plots or visualizes a sample of data.

Pitch

datamodule = ImageClassificationData.from_folders(
train_folder="data/hymenoptera_data/train/",
valid_folder="data/hymenoptera_data/val/",
test_folder="data/hymenoptera_data/test/",
)

datamodule.visualize(train, num_samples=6)

[ 1, 2, 3,
4, 5, 6]

Alternatives

Open to other ideas.

Additional context

@aribornstein aribornstein added enhancement New feature or request help wanted Extra attention is needed labels Feb 6, 2021
@t-vi
Copy link
Contributor

t-vi commented Feb 9, 2021

Ideally, this could be either before or after augmentation / pipeline collation.

@edgarriba
Copy link
Contributor

merged #228

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants