Update my_model/KBVQA.py
Browse files- my_model/KBVQA.py +1 -2
my_model/KBVQA.py
CHANGED
@@ -7,7 +7,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
|
7 |
from typing import Tuple, Optional
|
8 |
from my_model.utilities.gen_utilities import free_gpu_resources
|
9 |
from my_model.captioner.image_captioning import ImageCaptioningModel
|
10 |
-
from my_model.
|
11 |
import my_model.config.kbvqa_config as config
|
12 |
|
13 |
|
@@ -51,7 +51,6 @@ class KBVQA:
|
|
51 |
|
52 |
def __init__(self):
|
53 |
|
54 |
-
# self.col1, self.col2, self.col3 = st.columns([0.2, 0.6, 0.2])
|
55 |
if st.session_state["method"] == "7b-Fine-Tuned Model":
|
56 |
self.kbvqa_model_name: str = config.KBVQA_MODEL_NAME_7b
|
57 |
elif st.session_state["method"] == "13b-Fine-Tuned Model":
|
|
|
7 |
from typing import Tuple, Optional
|
8 |
from my_model.utilities.gen_utilities import free_gpu_resources
|
9 |
from my_model.captioner.image_captioning import ImageCaptioningModel
|
10 |
+
from my_model.object_detection import ObjectDetector
|
11 |
import my_model.config.kbvqa_config as config
|
12 |
|
13 |
|
|
|
51 |
|
52 |
def __init__(self):
|
53 |
|
|
|
54 |
if st.session_state["method"] == "7b-Fine-Tuned Model":
|
55 |
self.kbvqa_model_name: str = config.KBVQA_MODEL_NAME_7b
|
56 |
elif st.session_state["method"] == "13b-Fine-Tuned Model":
|