Update README.md
Browse files
README.md
CHANGED
@@ -10,4 +10,55 @@ pinned: false
|
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
## Project File Structure
|
17 |
+
|
18 |
+
```
|
19 |
+
KB-VQA
|
20 |
+
βββ Files: Various files required for the demo such as samples images,..etc.
|
21 |
+
βββ models
|
22 |
+
| βββ deformable-detr-detic: DETIC Object Detection Model.
|
23 |
+
| βββ yolov5: YOLOv5 Object Detection Model.baseline)
|
24 |
+
βββ my_model
|
25 |
+
| βββ KBVQA.py : This module is the central component for implementing the designed model architecture for the Knowledge-Based Visual Question Answering (KB-VQA) project.
|
26 |
+
| βββ state_manager.py: Manages the user interface and session state to facilitate the Run Inference tool of the Streamlit demo app.
|
27 |
+
β βββ LLAMA2
|
28 |
+
β β βββ LLAMA2_model.py: Used for loading LLaMA-2 model to be fine-tuned.
|
29 |
+
β βββ captioner
|
30 |
+
β β βββ image_captioning.py: Provides functionality for generating captions for images.
|
31 |
+
| βββ detector
|
32 |
+
β β βββ object_detection.py: Used to detect objects in images using object detection models.
|
33 |
+
| βββ fine_tuner
|
34 |
+
β β βββ fine_tuner.py: Main Fine-Tuning Script for LLaMa-2 Chat models.
|
35 |
+
β β βββ fine_tuning_data_handler.py: Handles and prepares the data for fine-tuning LLaMA-2 Chat models.
|
36 |
+
β β βββ fine_tuning_data
|
37 |
+
β β β βββfine_tuning_data_detic.csv: Fine-tuning data prepared by the prompt engineering module using DETIC detector.
|
38 |
+
β β β βββfine_tuning_data_yolov5.csv: Fine-tuning data prepared by the prompt engineering module using YOLOv5. detector.
|
39 |
+
| βββ results
|
40 |
+
β β βββ Demo_Images: Contains a pool of images used for the demo app.
|
41 |
+
β β βββ evaluation.py: Provides a comprehensive framework for evaluating the KB-VQA model.
|
42 |
+
β β βββ demo.py: Provides a comprehensive framework for visualizing and demonstrating the results of the KB-VQA evaluation.
|
43 |
+
β β βββ evaluation_results.xlsx : This file contains all the evaluation results based on the evaluation data.
|
44 |
+
| βββ tabs
|
45 |
+
β β βββ home.py: Displays an introduction to the application with brief background along with the demo tools decription.
|
46 |
+
β β βββ results.py: Manages the interactive Streamlit demo for visualizing model evaluation results and analysis.
|
47 |
+
β β βββ run_inference.py: Responsible for the 'run inference' tool to test and use the fine-tuned models.
|
48 |
+
β β βββ model_arch.py: Displays the model architecture and accompanying abstract and design details
|
49 |
+
β β βββ dataset_analysis.py: Provides tools for visualizing dataset analyses.
|
50 |
+
| βββ utilities
|
51 |
+
β β βββ ui_manager.py: Manages the user interface for the Streamlit application, handling the creation and navigation of various tabs.
|
52 |
+
β β βββ gen_utilities.py: Provides a collection of utility functions and classes commonly used across various parts
|
53 |
+
| βββ config (All Configurations files are kept separated and stored as ".py" for easy reading - this will change after the project submission.)
|
54 |
+
β β βββ kbvqa_config.py: Configuration parameters for the main KB-VQA model.
|
55 |
+
β β βββ LLAMA2_config.py: Configuration parameters for LLaMA-2 model.
|
56 |
+
β β βββ captioning_config.py : Configuration parameters for the captioning model (InstructBLIP).
|
57 |
+
β β βββ dataset_config.py: Configuration parameters for the dataset processing.
|
58 |
+
β β βββ evaluation_config.py: Configuration parameters for the KB-VQA model evaluation.
|
59 |
+
β β βββ fine_tuning_config.py: Configurable parameters for the fine-tuning nodule.
|
60 |
+
β β βββ inference_config.py: Configurable parameters for the Run Inference tool in the demo app.
|
61 |
+
βββ app.py: main entry point for streamlit - first page in the streamlit app)
|
62 |
+
βββ README.md (readme - this file)
|
63 |
+
βββ requirements.txt: Requirements file for the whole project that includes all the requirements for running the demo app on the HuggingFace space environment.
|
64 |
+
```
|