Refine lib -> xautodl
This commit is contained in:
		| @@ -21,15 +21,12 @@ ImageFile.LOAD_TRUNCATED_IMAGES = True | ||||
| from copy import deepcopy | ||||
| from pathlib import Path | ||||
|  | ||||
| lib_dir = (Path(__file__).parent / ".." / ".." / "lib").resolve() | ||||
| if str(lib_dir) not in sys.path: | ||||
|     sys.path.insert(0, str(lib_dir)) | ||||
| from config_utils import dict2config, load_config | ||||
| from procedures import bench_evaluate_for_seed | ||||
| from procedures import get_machine_info | ||||
| from datasets import get_datasets | ||||
| from log_utils import Logger, AverageMeter, time_string, convert_secs2time | ||||
| from utils import split_str2indexes | ||||
| from xautodl.config_utils import dict2config, load_config | ||||
| from xautodl.procedures import bench_evaluate_for_seed | ||||
| from xautodl.procedures import get_machine_info | ||||
| from xautodl.datasets import get_datasets | ||||
| from xautodl.log_utils import Logger, AverageMeter, time_string, convert_secs2time | ||||
| from xautodl.utils import split_str2indexes | ||||
|  | ||||
|  | ||||
| def evaluate_all_datasets( | ||||
|   | ||||
| @@ -25,16 +25,13 @@ ImageFile.LOAD_TRUNCATED_IMAGES = True | ||||
| from copy import deepcopy | ||||
| from pathlib import Path | ||||
|  | ||||
| lib_dir = (Path(__file__).parent / ".." / ".." / "lib").resolve() | ||||
| if str(lib_dir) not in sys.path: | ||||
|     sys.path.insert(0, str(lib_dir)) | ||||
| from config_utils import dict2config, load_config | ||||
| from procedures import bench_evaluate_for_seed | ||||
| from procedures import get_machine_info | ||||
| from datasets import get_datasets | ||||
| from log_utils import Logger, AverageMeter, time_string, convert_secs2time | ||||
| from models import CellStructure, CellArchitectures, get_search_spaces | ||||
| from utils import split_str2indexes | ||||
| from xautodl.config_utils import dict2config, load_config | ||||
| from xautodl.procedures import bench_evaluate_for_seed | ||||
| from xautodl.procedures import get_machine_info | ||||
| from xautodl.datasets import get_datasets | ||||
| from xautodl.log_utils import Logger, AverageMeter, time_string, convert_secs2time | ||||
| from xautodl.models import CellStructure, CellArchitectures, get_search_spaces | ||||
| from xautodl.utils import split_str2indexes | ||||
|  | ||||
|  | ||||
| def evaluate_all_datasets( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user