Fix path errors in TAS due to lib->xautodl

This commit is contained in:
D-X-Y
2021-05-20 10:53:57 +08:00
parent b50ad2a522
commit b4e8eae63a
15 changed files with 57 additions and 56 deletions

View File

@@ -10,6 +10,10 @@ from tqdm import tqdm
from copy import deepcopy
from pathlib import Path
lib_dir = (Path(__file__).parent / "..").resolve()
if str(lib_dir) not in sys.path:
sys.path.insert(0, str(lib_dir))
from xautodl.procedures import (
prepare_seed,
prepare_logger,