Directory Overview: This directory contains all the atreamlit application pages:
################################################################
1. results.py
The results.py module manages the interactive Streamlit demo for visualizing model evaluation results and analysis. It provides an interface for users to explore different aspects of model performance and evaluation samples.
Notes
Ensure the necessary dependencies are installed and properly configured.
The run_demo function
relies on the ResultDemonstrator class to generate plots and display results.
################################################################
2. run_inference.py
The run_inference.py is responsible for the running inference to test and use the fine-tuned models. It manages the user interface and interactions for a Streamlit-based Knowledge-Based Visual Question Answering (KBVQA) application. This module handles image uploads, displays sample images, and facilitates the question-answering process using the KBVQA model.
Notes
- Ensure the necessary dependencies are installed and properly configured.
- The
InferenceRunner
class relies on the KBVQA model to generate answers to questions based on image analysis.
################################################################
3. model_arch.py
The model_arch.py
displays the model architecture and accompanying abstract and design details for the Knowledge-Based Visual Question Answering (KB-VQA) model.
################################################################