Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
Results on the MP-DocVQA dataset are reported in Table 2.
Training hyperparameters can be found in Table 8 of Appendix D.
How to use
How to use this model to perform inference on a sample question and context in PyTorch:
from transformers import BigBirdForQuestionAnswering, BigBirdTokenizerFast
# by default its in `block_sparse` mode with num_random_blocks=3, block_size=64
model = BigBirdForQuestionAnswering.from_pretrained("rubentito/bigbird-base-itc-mpdocvqa")
# you can change `attention_type` to full attention like this:
model = BigBirdForQuestionAnswering.from_pretrained("rubentito/bigbird-base-itc-mpdocvqa", attention_type="original_full")
# you can change `block_size` & `num_random_blocks` like this:
model = BigBirdForQuestionAnswering.from_pretrained("rubentito/bigbird-base-itc-mpdocvqa", block_size=16, num_random_blocks=2)
tokenizer = BigBirdTokenizerFast.from_pretrained("rubentito/bigbird-base-itc-mpdocvqa")
question = "Replace me by any text you'd like."
context = "Put some context for answering"
encoded_input = tokenizer(question, context, return_tensors='pt')
output = model(**encoded_input)
start_pos = torch.argmax(output.start_logits, dim=-1).item()
end_pos = torch.argmax(output.end_logits, dim=-1).item()
context_tokens = tokenizer.convert_ids_to_tokens(encoded_input["input_ids"][0].tolist())
answer_tokens = context_tokens[start_pos: end_pos]
answer = tokenizer.decode(tokenizer.convert_tokens_to_ids(answer_tokens))
Metrics
Average Normalized Levenshtein Similarity (ANLS)
The standard metric for text-based VQA tasks (ST-VQA and DocVQA). It evaluates the method's reasoning capabilities while smoothly penalizes OCR recognition errors.
Check
Scene Text Visual Question Answering
for detailed information.
Answer Page Prediction Accuracy (APPA)
In the MP-DocVQA task, the models can provide the index of the page where the information required to answer the question is located. For this subtask accuracy is used to evaluate the predictions: i.e. if the predicted page is correct or not.
Check
Hierarchical multimodal transformers for Multi-Page DocVQA
for detailed information.
bigbird-base-itc-mpdocvqa huggingface.co is an AI model on huggingface.co that provides bigbird-base-itc-mpdocvqa's model effect (), which can be used instantly with this rubentito bigbird-base-itc-mpdocvqa model. huggingface.co supports a free trial of the bigbird-base-itc-mpdocvqa model, and also provides paid use of the bigbird-base-itc-mpdocvqa. Support call bigbird-base-itc-mpdocvqa model through api, including Node.js, Python, http.
bigbird-base-itc-mpdocvqa huggingface.co is an online trial and call api platform, which integrates bigbird-base-itc-mpdocvqa's modeling effects, including api services, and provides a free online trial of bigbird-base-itc-mpdocvqa, you can try bigbird-base-itc-mpdocvqa online for free by clicking the link below.
rubentito bigbird-base-itc-mpdocvqa online free url in huggingface.co:
bigbird-base-itc-mpdocvqa is an open source model from GitHub that offers a free installation service, and any user can find bigbird-base-itc-mpdocvqa on GitHub to install. At the same time, huggingface.co provides the effect of bigbird-base-itc-mpdocvqa install, users can directly use bigbird-base-itc-mpdocvqa installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bigbird-base-itc-mpdocvqa install url in huggingface.co: