Datasets:
id int64 | image image | image_id string | question_id string | question string | answers list | answer string | image_emb list | question_emb list | ocr_tokens list | image_classes list | set_name string | vision_tower_hiddens list | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
129 | 2e7870b6ff79d151 | 129 | what airline did these sugar packets come from? | [
"twa",
"twa",
"twa",
"twa",
"twa",
"twa",
"twa",
"twa",
"twa",
"twa "
] | twa | [-0.06744384765625,-0.1614990234375,-0.041046142578125,0.0175933837890625,-0.036041259765625,-0.0201(...TRUNCATED) | [-0.014495849609375,-0.01047515869140625,-0.0081634521484375,0.00823974609375,-0.0157623291015625,-0(...TRUNCATED) | ["7h","the","Finest...","74","1E","TWA","8","SALT","REESE","PEPPER","NO18OW","FLY","TWA","SUPERJETS"(...TRUNCATED) | [
"Book",
"Vehicle",
"Airplane",
"Aircraft"
] | train | [0.0966796875,-0.357421875,-0.388671875,0.6875,-0.2216796875,2.46875,3.171875,-1.2578125,-3.0,-2.078(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
130 | 2e7870b6ff79d151 | 130 | what is the brand name of sugar? | ["domino","twa ","domino","flying twa super jets","domino","domino","domino","domino","domino","domi(...TRUNCATED) | domino | [-0.06744384765625,-0.1614990234375,-0.041046142578125,0.0175933837890625,-0.036041259765625,-0.0201(...TRUNCATED) | [-0.04669189453125,0.0011186599731445312,-0.102294921875,-0.007801055908203125,-0.004913330078125,-0(...TRUNCATED) | ["7h","the","Finest...","74","1E","TWA","8","SALT","REESE","PEPPER","NO18OW","FLY","TWA","SUPERJETS"(...TRUNCATED) | [
"Book",
"Vehicle",
"Airplane",
"Aircraft"
] | train | [0.0966796875,-0.357421875,-0.388671875,0.6875,-0.2216796875,2.46875,3.171875,-1.2578125,-3.0,-2.078(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
192 | 4254b138d56f688c | 192 | what is the copyright date? | [
"1975",
"1975",
"1975",
"1975",
"1975",
"1975",
"1975",
"1975 ",
"1975",
"1975"
] | 1975 | [0.0109405517578125,-0.183837890625,-0.08404541015625,0.0721435546875,0.0021419525146484375,0.026062(...TRUNCATED) | [0.004375457763671875,-0.0011053085327148438,-0.010284423828125,-0.002986907958984375,-0.00287437438(...TRUNCATED) | ["(PAR-5",")HANOI","MAY","4(AP)","Junkyard","at","Hue","sh","WS","american","material","des-","troye(...TRUNCATED) | ["Train","Book","Car","Person","Land vehicle","Cannon","Man","Tank","Vehicle","Weapon","Wheel","Clot(...TRUNCATED) | train | [1.0546875,-0.56640625,-0.158203125,0.48828125,-0.07373046875,-0.69921875,1.5859375,-1.0,-0.74609375(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
193 | 4254b138d56f688c | 193 | what is this a picture of? | ["junkyard at hue","hue 1975","junkyward","junkyard at hue","american material destroyed by bombing"(...TRUNCATED) | junkyard at hue | [0.0109405517578125,-0.183837890625,-0.08404541015625,0.0721435546875,0.0021419525146484375,0.026062(...TRUNCATED) | [0.012939453125,-0.00603485107421875,-0.02703857421875,0.026702880859375,-0.018646240234375,0.008926(...TRUNCATED) | ["(PAR-5",")HANOI","MAY","4(AP)","Junkyard","at","Hue","sh","WS","american","material","des-","troye(...TRUNCATED) | ["Train","Book","Car","Person","Land vehicle","Cannon","Man","Tank","Vehicle","Weapon","Wheel","Clot(...TRUNCATED) | train | [1.0546875,-0.56640625,-0.158203125,0.48828125,-0.07373046875,-0.69921875,1.5859375,-1.0,-0.74609375(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
230 | 52cc582d05b68e27 | 230 | who is this in memory of? | ["our shipmates and friends","shipmates and friends","our shipmates and friends","shipmates and frie(...TRUNCATED) | our shipmates and friends | [-0.01358795166015625,-0.030548095703125,-0.05377197265625,0.0201416015625,0.0203704833984375,-0.036(...TRUNCATED) | [0.02801513671875,-0.0277252197265625,-0.0318603515625,-0.022552490234375,-0.03875732421875,0.024017(...TRUNCATED) | ["IN","MEMORY","OF","OUR","SHIPMATES","AND","FRIENDS.","ON","JULY","12,","1994,","COAST","GUARD","HE(...TRUNCATED) | [
"Vehicle",
"Wheel",
"Helicopter",
"Aircraft"
] | train | [-3.015625,-4.375,1.109375,0.060302734375,-1.375,0.330078125,2.78125,-3.75,-3.40625,-0.73828125,-3.5(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
245 | 563ebece1dfc5dae | 245 | what for dummies? | [
"tcp/ip",
"tcp/ip",
"tcp/ip",
"tcp/ip",
"tcp/ip",
"tcp/ip",
"tcp/ip",
"tcp/ip",
"tcp/ip",
"tcp/ip"
] | tcp/ip | [0.0217742919921875,0.005626678466796875,-0.0609130859375,-0.11468505859375,-0.0312042236328125,0.00(...TRUNCATED) | [0.003887176513671875,-0.018768310546875,-0.0138702392578125,-0.001789093017578125,-0.01377105712890(...TRUNCATED) | ["Windows","WINDOWS","2000","Ordian","Pankzonst","CROSSINO","Wndowsator's","NFORMATIC","SHAREPOIN","(...TRUNCATED) | [
"Vehicle",
"Airplane",
"Aircraft"
] | train | [-0.66015625,-0.40625,0.037353515625,0.640625,0.48828125,-0.0703125,2.3125,-1.515625,-1.6015625,0.04(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
246 | 56619c71bcb7e0d6 | 246 | which airline does the plane belong to? | [
"delta",
"delta",
"delta",
"delta",
"delta",
"delta",
"delta",
"delta",
"delta",
"delta"
] | delta | [-0.0211944580078125,-0.2276611328125,-0.057891845703125,-0.0051422119140625,-0.007289886474609375,0(...TRUNCATED) | [-0.036956787109375,-0.02496337890625,-0.0408935546875,-0.040924072265625,-0.0274200439453125,0.0356(...TRUNCATED) | ["Delta","Follow","@Delta","Get","your","noms","ready","for","the","#Emmy","noms.","The","awards","s(...TRUNCATED) | [
"Train",
"Vehicle",
"Airplane",
"Aircraft"
] | train | [0.71875,0.35546875,-3.0,0.5078125,0.1396484375,-1.96875,-0.63671875,-0.859375,0.70703125,1.4296875,(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
247 | 56619c71bcb7e0d6 | 247 | is there people waiting to board the plane ? | ["no","delta","yes","answering does not require reading text in the image","no","answering does not (...TRUNCATED) | no | [-0.0211944580078125,-0.2276611328125,-0.057891845703125,-0.0051422119140625,-0.007289886474609375,0(...TRUNCATED) | [0.001800537109375,-0.01355743408203125,0.00981903076171875,0.0031642913818359375,-0.01373291015625,(...TRUNCATED) | ["Delta","Follow","@Delta","Get","your","noms","ready","for","the","#Emmy","noms.","The","awards","s(...TRUNCATED) | [
"Train",
"Vehicle",
"Airplane",
"Aircraft"
] | train | [0.71875,0.35546875,-3.0,0.5078125,0.1396484375,-1.96875,-0.63671875,-0.859375,0.70703125,1.4296875,(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
302 | 6bc176acb320908a | 302 | what did they use to lure choppers in for an ambush? | [
"smoke",
"smoke",
"smoke ",
"smoke",
"smoke",
"smoke",
"smoke",
"different colored smoke",
"smoke",
"smoke"
] | smoke | [-0.01226806640625,-0.242431640625,-0.0958251953125,0.003299713134765625,-0.004276275634765625,0.019(...TRUNCATED) | [0.0197296142578125,-0.037322998046875,-0.011749267578125,0.005649566650390625,-0.021270751953125,-0(...TRUNCATED) | ["COLOR","CODED","Finding","small","targetin","jungle","proved","problematic","marking","landing","z(...TRUNCATED) | [
"Person",
"Woman",
"Man",
"Girl",
"Tree",
"Vehicle",
"Helicopter",
"Aircraft"
] | train | [-1.8046875,-1.25,-0.40234375,0.8984375,-0.05126953125,-0.478515625,1.1796875,-1.4765625,-0.90234375(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) | |
303 | 6bc176acb320908a | 303 | what is the name of the image? | ["color coded","color coded","color coded","color coded","color coded","color coded","color coded","(...TRUNCATED) | color coded | [-0.01226806640625,-0.242431640625,-0.0958251953125,0.003299713134765625,-0.004276275634765625,0.019(...TRUNCATED) | [-0.00762176513671875,0.004070281982421875,-0.042633056640625,-0.006649017333984375,-0.0534362792968(...TRUNCATED) | ["COLOR","CODED","Finding","small","targetin","jungle","proved","problematic","marking","landing","z(...TRUNCATED) | [
"Person",
"Woman",
"Man",
"Girl",
"Tree",
"Vehicle",
"Helicopter",
"Aircraft"
] | train | [-1.8046875,-1.25,-0.40234375,0.8984375,-0.05126953125,-0.478515625,1.1796875,-1.4765625,-0.90234375(...TRUNCATED) | [151644,8948,198,2610,525,264,10950,17847,13,151645,198,151644,872,198,151652,151655,151655,151655,1(...TRUNCATED) | [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED) | [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100(...TRUNCATED) |
TextVQA Fine-Tuning Demo for TMLS 2026
A small Lance-formatted subset of TextVQA, sourced from lmms-lab/textvqa,
for the TMLS 2026 Workshop Demo and fine-tuning a VLM on the subset. Each row is one visual question-answering example over an image that contains scene text: inline image bytes, a natural-language question, 10 reference answers, OCR tokens, image-class labels, and paired 512-dimensional image/question embeddings are stored together in a Lance table.
The train split also includes precomputed fixed-shape tensors for a Colab fine-tuning pipeline, so the same repository can be used both for retrieval-oriented LanceDB examples and for small end-to-end model-input experiments without preparing the full TextVQA corpus.
The dataset is available directly from the Hub at:
hf://datasets/lance-format/textvqa-lance-colab
Key Features
- Small, notebook-friendly slice: 1,000 rows total, with 600 train examples and 400 validation examples.
- Self-contained multimodal rows: image bytes, question text, answers, OCR tokens, image classes, and embeddings live in the same Lance row.
- Text-centric VQA examples: questions often require reading labels, signs, packaging, book covers, or other text visible in the image.
- Paired embeddings:
image_embandquestion_embare 512-dimensional vectors suitable for lightweight semantic retrieval examples. - Colab training tensors: the train table includes
vision_tower_hiddens,input_ids,attention_mask, andlabelsfor fixed-shape tutorial pipelines. - Versioned Lance storage: the dataset can be opened directly with Lance or LanceDB, downloaded locally, subsetted, and evolved without rewriting the full table.
Splits
| Hugging Face split | Lance table | Rows | Distinct images | Notes |
|---|---|---|---|---|
train |
textvqa_colab_train |
600 | 373 | Includes raw multimodal columns plus precomputed Colab tensors |
validation |
textvqa_colab_val |
400 | 244 | Raw multimodal/retrieval columns |
The repository also includes slice_info.json, which identifies this subset as the text_dense slice.
Schema
| Column | Type | Notes |
|---|---|---|
id |
int64 |
Row id from the sampled split |
image |
large_binary |
Inline image bytes |
image_id |
string |
TextVQA image id |
question_id |
string |
TextVQA question id |
question |
string |
Natural-language visual question |
answers |
list<string> |
10 reference answers from TextVQA annotations |
answer |
string |
Convenience answer, corresponding to the first reference answer |
image_emb |
fixed_size_list<float32, 512> |
Image embedding |
question_emb |
fixed_size_list<float32, 512> |
Question-text embedding |
ocr_tokens |
list<string> |
OCR tokens associated with the image |
image_classes |
list<string> |
Image-level class labels from the upstream formatted dataset |
set_name |
string |
Original split label, train or val |
vision_tower_hiddens |
fixed_size_list<float16, 819200> |
Train table only; precomputed visual hidden-state tensor |
input_ids |
fixed_size_list<int32, 512> |
Train table only; token ids for the Colab training pipeline |
attention_mask |
fixed_size_list<int8, 512> |
Train table only; token attention mask |
labels |
fixed_size_list<int32, 512> |
Train table only; supervised training labels |
When loaded through datasets.load_dataset, Hugging Face may present a unioned feature schema across splits; validation rows can therefore expose the train-only tensor columns as None. When opened directly as Lance tables, textvqa_colab_val contains only the raw multimodal/retrieval columns.
Index Status
This Colab subset does not ship with pre-built Lance indices. Because the dataset is intentionally small, exact scans and vector search are already practical for examples and notebooks. For heavier local experiments, download the dataset and add the indices you need:
import lancedb
db = lancedb.connect("./textvqa-lance-colab")
tbl = db.open_table("textvqa_colab_train")
tbl.create_index(vector_column_name="image_emb", metric="cosine", index_type="IVF_FLAT")
tbl.create_index(vector_column_name="question_emb", metric="cosine", index_type="IVF_FLAT")
tbl.create_fts_index("question", replace=True)
Load with datasets.load_dataset
Use the standard Hugging Face datasets interface when you want familiar Dataset objects:
import datasets
ds = datasets.load_dataset("lance-format/textvqa-lance-colab", split="train")
for row in ds.select(range(3)):
print(row["question"], "->", row["answer"])
Load with LanceDB
LanceDB opens the repository as a small database with two tables:
import lancedb
db = lancedb.connect("hf://datasets/lance-format/textvqa-lance-colab")
print(db.list_tables().tables)
tbl = db.open_table("textvqa_colab_train")
print(len(tbl))
Use textvqa_colab_val for the validation split:
val_tbl = db.open_table("textvqa_colab_val")
print(len(val_tbl))
Load with Lance
Use pylance when you want lower-level access to schema, versions, fragments, or scans:
import lance
ds = lance.dataset(
"hf://datasets/lance-format/textvqa-lance-colab/textvqa_colab_train.lance"
)
print(ds.count_rows())
print(ds.schema.names)
print(ds.list_indices())
For production use or repeated experiments, download locally first:
hf download lance-format/textvqa-lance-colab --repo-type dataset --local-dir ./textvqa-lance-colab
Then open ./textvqa-lance-colab with LanceDB or ./textvqa-lance-colab/textvqa_colab_train.lance with Lance.
Search
The stored image_emb and question_emb columns make it easy to demonstrate vector retrieval without running an embedding model. The example below uses one validation question embedding as a query vector and searches the image embeddings:
import lancedb
db = lancedb.connect("hf://datasets/lance-format/textvqa-lance-colab")
tbl = db.open_table("textvqa_colab_val")
seed = (
tbl.search()
.select(["question_emb", "question", "answer"])
.limit(1)
.offset(4)
.to_list()[0]
)
hits = (
tbl.search(seed["question_emb"], vector_column_name="image_emb")
.metric("cosine")
.select(["image_id", "question", "answer"])
.limit(10)
.to_list()
)
print("query:", seed["question"], "->", seed["answer"])
for row in hits:
print(row["image_id"], row["question"], "->", row["answer"])
Swap vector_column_name="image_emb" for question_emb to retrieve nearby questions instead of visually similar examples.
Curate
Because the image and embedding columns are stored separately from the text columns, you can inspect and curate small slices without reading every image byte. This query collects validation examples whose question or answer mentions a sign:
import lancedb
db = lancedb.connect("hf://datasets/lance-format/textvqa-lance-colab")
tbl = db.open_table("textvqa_colab_val")
candidates = (
tbl.search()
.where("question LIKE '%sign%' OR answer LIKE '%sign%'")
.select(["question_id", "image_id", "question", "answer", "ocr_tokens"])
.limit(25)
.to_list()
)
for row in candidates:
print(row["question_id"], row["question"], "->", row["answer"])
The result is a plain list of dictionaries that can be reviewed, saved as a manifest, or materialized into a new local Lance table.
Evolve
Lance stores each column independently, so local copies can be extended with derived columns without rewriting all image bytes or embeddings. For example, add simple answer/question features to the validation table:
import lancedb
db = lancedb.connect("./textvqa-lance-colab") # local copy required for writes
tbl = db.open_table("textvqa_colab_val")
tbl.add_columns({
"question_length": "length(question)",
"answer_length": "length(answer)",
"num_ocr_tokens": "array_length(ocr_tokens)",
})
If you run a model over this subset, merge predictions back by question_id:
import pyarrow as pa
predictions = pa.table({
"question_id": pa.array(["34605", "34606"]),
"model_answer": pa.array(["bowmore", "10 years"]),
"model_confidence": pa.array([0.92, 0.88]),
})
tbl.merge(predictions, on="question_id")
The original columns remain unchanged, and every mutation creates a new Lance version.
Train
Projection lets a training loop read only the columns each step needs. For a lightweight VQA loop, project image bytes, questions, and answers:
import lancedb
from lancedb.permutation import Permutation
from torch.utils.data import DataLoader
db = lancedb.connect("hf://datasets/lance-format/textvqa-lance-colab")
tbl = db.open_table("textvqa_colab_train")
train_ds = Permutation.identity(tbl).select_columns(["image", "question", "answer"])
loader = DataLoader(train_ds, batch_size=16, shuffle=True, num_workers=2)
for batch in loader:
# Decode the image bytes, tokenize question/answer text, and run a VLM step.
...
For pipelines that use the precomputed Colab tensors, project those columns directly:
train_ds = Permutation.identity(tbl).select_columns([
"vision_tower_hiddens",
"input_ids",
"attention_mask",
"labels",
])
This avoids reading image bytes during training when the visual features have already been prepared.
Versioning
Every mutation to a Lance dataset commits a new version. You can inspect version history directly from the Hub copy; creating new tags requires a local copy because tags are writes:
import lancedb
db = lancedb.connect("hf://datasets/lance-format/textvqa-lance-colab")
tbl = db.open_table("textvqa_colab_train")
print("Current version:", tbl.version)
print("History:", tbl.list_versions())
print("Tags:", tbl.tags.list())
Once downloaded locally, tag a stable snapshot for reproducibility:
local_db = lancedb.connect("./textvqa-lance-colab")
local_tbl = local_db.open_table("textvqa_colab_train")
local_tbl.tags.create("colab-v1", local_tbl.version)
Tagged versions can be reopened by name, and numeric versions can be reopened by version number:
tbl_v1 = local_db.open_table("textvqa_colab_train", version="colab-v1")
tbl_v2 = local_db.open_table("textvqa_colab_train", version=2)
Materialize a Subset
Reads from the Hub are lazy, so exploratory queries transfer only the columns and row groups they touch. To create a local subset, stream batches from a filtered query into a new LanceDB table:
import lancedb
remote_db = lancedb.connect("hf://datasets/lance-format/textvqa-lance-colab")
remote_tbl = remote_db.open_table("textvqa_colab_val")
batches = (
remote_tbl.search()
.where("question LIKE '%sign%' OR answer LIKE '%sign%'")
.select(["id", "image", "image_id", "question_id", "question", "answers",
"answer", "ocr_tokens", "image_emb", "question_emb"])
.to_batches()
)
local_db = lancedb.connect("./textvqa-sign-subset")
local_db.create_table("validation", batches)
The resulting ./textvqa-sign-subset is a first-class LanceDB database.
Limitations and Considerations
- This is a small 1,000-row subset intended for examples, demos, and smoke tests. It is not a replacement for the full TextVQA benchmark.
- The subset is text-dense by construction, so it should not be treated as representative of all TextVQA questions or image types.
- The
answercolumn is a convenience field; use the fullanswerslist when evaluating model predictions against the original annotation set. - Real-world images can contain brand names, signs, labels, personal names, and noisy OCR. Review samples before using the data in public demos or downstream applications.
- The validation Lance table does not include the train-only Colab tensor columns.
Source and License
This dataset was converted from lmms-lab/textvqa, which is a formatted Hugging Face redistribution of TextVQA. TextVQA was introduced in "Towards VQA Models That Can Read" and contains questions that require reading and reasoning over text in images.
The upstream TextVQA data includes image content and annotations from the original TextVQA release. Please review the upstream TextVQA terms and the source image licensing before redistribution or commercial use. This Lance-formatted subset does not assign a new license to upstream media or annotations.
Citation
@inproceedings{singh2019towards,
title={Towards VQA Models That Can Read},
author={Singh, Amanpreet and Natarajan, Vivek and Shah, Meet and Jiang, Yu and Chen, Xinlei and Batra, Dhruv and Parikh, Devi and Rohrbach, Marcus},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={8317--8326},
year={2019}
}
- Downloads last month
- 94