LingoQA dataset for pytorch
Project description
LingoQA dataset for pytorch
How to use
from lingoqa_dataset.dataset import LingoQADataset
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.1.0.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file lingoqa_dataset-0.1.0.tar.gz
.
File metadata
- Download URL: lingoqa_dataset-0.1.0.tar.gz
- Upload date:
- Size: 2.6 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 | 3842fa9e685283c4c80da2f823a6fdb75ff052a92c5cb317bbe69e809abf0864 |
|
MD5 | 6b83d2dcfc554c52e70eb017276e3ab6 |
|
BLAKE2b-256 | 4f44497f85fc82cdb78f8060e1ae8800bc899d79fb110667ffb905bbe620f464 |
File details
Details for the file lingoqa_dataset-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lingoqa_dataset-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 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 | 92f6470dbf456fba265a7626b6785ba86c401cbe4a1f70d96736a01c92850e64 |
|
MD5 | 12833a3771a94ac1156ac4d626cd3d55 |
|
BLAKE2b-256 | d514d3af9a4e05e16abcf0b3e6d21ef0208b1f300c93fa1342804dd42ee8af74 |