LingoQA dataset for pytorch
Project description
LingoQA dataset for pytorch
How to use
from lingoqa_dataset.lingoqa_dataset import LingoQADataset, DatasetType
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
dataset = LingoQADataset(
DatasetType.EVALUATION, transforms=transforms.Resize((256, 512))
)
dataloader = DataLoader(dataset=dataset, batch_size=3, shuffle=True)
for data, question, answer in dataloader:
pass
data
- type: torch.Tensor
- size : torch.Size([batch_size, 3 * number_of_images, height, width])
- description : Images in the target sequences.
question
- type: torch.Tuple(str)
- size: batch_size
- description : Questions in the batch.
answer
- type: torch.Tuple(str)
- size: batch_size
- description : Answers in the batch.
Special thanks
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
lingoqa_dataset-0.2.0.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file lingoqa_dataset-0.2.0.tar.gz
.
File metadata
- Download URL: lingoqa_dataset-0.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.4 Linux/6.5.0-26-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a76b634bee69868e424a1e351763493d8fcf03797847fa8a58a0c27a6de3889 |
|
MD5 | 27dae1b1ef1205c129d87bcc6bd5b114 |
|
BLAKE2b-256 | dc0cd42e3ca636240ab42c9d85bef5fe70f173e14e762351649ee7bc8d7a2fd6 |
File details
Details for the file lingoqa_dataset-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: lingoqa_dataset-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.4 Linux/6.5.0-26-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8840f62bd1fd2ccbccf563c0397d5c61c59d13c74a9a53629848c55dc65ca9a2 |
|
MD5 | 2ab12504d4702a9b9937c2a2ceaf5efa |
|
BLAKE2b-256 | 9ae3363fba381c283a24012790cc5c4d9848d4bfeb255d3b1926b682ef79c37f |