m7mdal7aj commited on
Commit
cd272e3
·
verified ·
1 Parent(s): bad218d

Update my_model/tabs/dataset_analysis.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/dataset_analysis.py +8 -6
my_model/tabs/dataset_analysis.py CHANGED
@@ -246,17 +246,19 @@ class OKVQADatasetAnalyzer:
246
 
247
 
248
  def run_dataset_analyzer():
249
- datasets_comparison_table = pd.read_excel("dataset_analyses.xlsx", sheet_name="VQA Datasets Comparison")
250
- okvqa_dataset_characteristics = pd.read_excel("dataset_analyses.xlsx", sheet_name="OK-VQA Dataset Characteristics")
251
- val_data = process_okvqa_dataset('OpenEnded_mscoco_val2014_questions.json', 'mscoco_val2014_annotations.json',
 
 
252
  save_to_csv=False)
253
- train_data = process_okvqa_dataset('OpenEnded_mscoco_train2014_questions.json', 'mscoco_train2014_annotations.json',
254
  save_to_csv=False)
255
 
256
 
257
 
258
- dataset_analyzer = OKVQADatasetAnalyzer('OpenEnded_mscoco_train2014_questions.json',
259
- 'OpenEnded_mscoco_val2014_questions.json', 'train_test')
260
 
261
  with st.container():
262
  st.markdown("## Overview of KB-VQA Datasets")
 
246
 
247
 
248
  def run_dataset_analyzer():
249
+
250
+ datasets_comparison_table = pd.read_excel(CONFIG.DATASET_ANALYSES_PATH, sheet_name="VQA Datasets Comparison")
251
+ okvqa_dataset_characteristics = pd.read_excel(CONFIG.DATASET_ANALYSES_PATH, sheet_name="OK-VQA Dataset Characteristics")
252
+
253
+ val_data = process_okvqa_dataset(config.DATASET_VAL_QUESTIONS_PATH, config.DATASET_VAL_ANNOTATIONS_PATH,
254
  save_to_csv=False)
255
+ train_data = process_okvqa_dataset(config.DATASET_TRAIN_QUESTIONS_PATH, config.DATASET_TRAIN_ANNOTATIONS_PATH ,
256
  save_to_csv=False)
257
 
258
 
259
 
260
+ dataset_analyzer = OKVQADatasetAnalyzer(config.DATASET_TRAIN_QUESTIONS_PATH,
261
+ config.DATASET_VAL_QUESTIONS_PATH, 'train_test')
262
 
263
  with st.container():
264
  st.markdown("## Overview of KB-VQA Datasets")