Views
No views yet
| Component | Model |
|---|---|
| Vision Encoder | google/vit-base-patch16-224 |
| Text Encoder | CLIP Text (openai/clip-vit-base-patch16) |
| Decoder (Answer Generator) | google/flan-t5-small |
| Dataset | OK-VQA (train + val split) |
best_baseline_model.pth (309 MB)best_fusion_model.pth (313 MB)best_attention_model.pth (325 MB)1import torch
2from transformers import ViTModel, AutoTokenizer, AutoModelForSeq2SeqLM
3
4device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
5
6# Load base models
7t5_tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-small")
8t5 = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-small").to(device)
9vit = ViTModel.from_pretrained("google/vit-base-patch16-224").to(device)
10
11# Define your model class (see notebook for full definitions)
12# Then load weights:
13model = YourModelClass().to(device)
14model.load_state_dict(torch.load("best_baseline_model.pth", map_location=device))1@misc{knowledge-guided-vqa-2026,
2 title={Knowledge-Guided Visual Question Answering with Adaptive Vision-Language Integration},
3 author={Aneerban},
4 year={2026},
5 publisher={Hugging Face},
6 url={https://huggingface.co/rishii100/knowledge-guided-vqa-models}
7}