fixed rerun
This commit is contained in:
parent
aff1c17d2e
commit
b8d6a33bf8
@ -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])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user