Spaces:
Sleeping
Sleeping
Update my_model/KBVQA.py
Browse files- my_model/KBVQA.py +2 -1
my_model/KBVQA.py
CHANGED
|
@@ -172,7 +172,7 @@ class KBVQA:
|
|
| 172 |
"""
|
| 173 |
Forces a reload of all models, freeing up GPU resources. This method deletes the current models and calls `free_gpu_resources`.
|
| 174 |
"""
|
| 175 |
-
|
| 176 |
free_gpu_resources()
|
| 177 |
if self.kbvqa_model is not None:
|
| 178 |
del self.kbvqa_model
|
|
@@ -274,6 +274,7 @@ def prepare_kbvqa_model(only_reload_detection_model: bool = False, force_reload:
|
|
| 274 |
# Progress bar for model loading
|
| 275 |
|
| 276 |
if force_reload:
|
|
|
|
| 277 |
self.delete_model()
|
| 278 |
loading_message = 'Force Reloading model.. this should take no more than a few minutes!'
|
| 279 |
else: loading_message = 'Looading model.. this should take no more than a few minutes!'
|
|
|
|
| 172 |
"""
|
| 173 |
Forces a reload of all models, freeing up GPU resources. This method deletes the current models and calls `free_gpu_resources`.
|
| 174 |
"""
|
| 175 |
+
st.write('UUUUUUU')
|
| 176 |
free_gpu_resources()
|
| 177 |
if self.kbvqa_model is not None:
|
| 178 |
del self.kbvqa_model
|
|
|
|
| 274 |
# Progress bar for model loading
|
| 275 |
|
| 276 |
if force_reload:
|
| 277 |
+
st.write('FFFFFFFFF')
|
| 278 |
self.delete_model()
|
| 279 |
loading_message = 'Force Reloading model.. this should take no more than a few minutes!'
|
| 280 |
else: loading_message = 'Looading model.. this should take no more than a few minutes!'
|