fixed rerun

This commit is contained in:
gauthiier 2022-02-10 08:56:33 +01:00
parent aff1c17d2e
commit b8d6a33bf8

View File

@ -20,7 +20,10 @@ def train(ouputdir: Path, blocksize: int, vocabsize: int, num_steps: int, gpu: b
from aitextgen import aitextgen
exts = ['.json', '.gz']
files = [x for x in ouputdir.glob('*') if x.suffix in exts and x != "config.json"]
files = [x for x in ouputdir.glob('*') if x.suffix in exts and x.name != "config.json"]
print(files)
if len(files) == 2:
if files[0].suffix == '.json':
tok = str(files[0])