phyloforfun commited on
Commit
7e12cb7
1 Parent(s): 806953a

Major update. Support for 15 LLMs, World Flora Online taxonomy validation, geolocation, 2 OCR methods, significant UI changes, stability improvements, consistent JSON parsing

Browse files
vouchervision/VoucherVision_Config_Builder.py CHANGED
@@ -2,7 +2,7 @@ import os #, yaml, platform, traceback
2
  from vouchervision.LeafMachine2_Config_Builder import get_default_download_folder #, write_config_file
3
  # from vouchervision.general_utils import validate_dir, print_main_fail
4
  # from vouchervision.vouchervision_main import voucher_vision
5
- from general_utils import get_cfg_from_full_path
6
 
7
  def build_VV_config(loaded_cfg=None):
8
  if loaded_cfg is None:
 
2
  from vouchervision.LeafMachine2_Config_Builder import get_default_download_folder #, write_config_file
3
  # from vouchervision.general_utils import validate_dir, print_main_fail
4
  # from vouchervision.vouchervision_main import voucher_vision
5
+ from vouchervision.general_utils import get_cfg_from_full_path
6
 
7
  def build_VV_config(loaded_cfg=None):
8
  if loaded_cfg is None:
vouchervision/vouchervision_main.py CHANGED
@@ -7,13 +7,13 @@ currentdir = os.path.dirname(os.path.dirname(inspect.getfile(inspect.currentfram
7
  parentdir = os.path.dirname(currentdir)
8
  sys.path.append(parentdir)
9
  sys.path.append(currentdir)
10
- from vouchervision.component_detector.component_detector import detect_plant_components, detect_archival_components
11
- from general_utils import save_token_info_as_csv, print_main_start, check_for_subdirs_VV, load_config_file, load_config_file_testing, report_config, save_config_file, crop_detections_from_images_VV
12
- from directory_structure_VV import Dir_Structure
13
- from data_project import Project_Info
14
- from LM2_logger import start_logging
15
- from fetch_data import fetch_data
16
- from utils_VoucherVision import VoucherVision, space_saver
17
  from vouchervision.utils_hf import upload_to_drive
18
 
19
  def voucher_vision(cfg_file_path, dir_home, path_custom_prompts, cfg_test, progress_report, json_report, path_api_cost=None, test_ind = None, is_hf = True, is_real_run=False):
 
7
  parentdir = os.path.dirname(currentdir)
8
  sys.path.append(parentdir)
9
  sys.path.append(currentdir)
10
+ from component_detector.component_detector import detect_plant_components, detect_archival_components
11
+ from vouchervision.general_utils import save_token_info_as_csv, print_main_start, check_for_subdirs_VV, load_config_file, load_config_file_testing, report_config, save_config_file, crop_detections_from_images_VV
12
+ from vouchervision.directory_structure_VV import Dir_Structure
13
+ from vouchervision.data_project import Project_Info
14
+ from vouchervision.LM2_logger import start_logging
15
+ from vouchervision.fetch_data import fetch_data
16
+ from vouchervision.utils_VoucherVision import VoucherVision, space_saver
17
  from vouchervision.utils_hf import upload_to_drive
18
 
19
  def voucher_vision(cfg_file_path, dir_home, path_custom_prompts, cfg_test, progress_report, json_report, path_api_cost=None, test_ind = None, is_hf = True, is_real_run=False):