Open therc01 opened 3 years ago
problem is in glob i.e. file reading from directory. its not reading files from directory.
I'm unable to train lr models due to out of index error in following code ` models_per_condition = []
for plane in planes: checkpoint_pattern = glob(f'{models_dir}/*{plane}*{condition}*.pt') checkpoint_path = sorted(checkpoint_pattern)[-1] checkpoint = torch.load(checkpoint_path, map_location=device)`
im getting error at
sorted(checkpoint_pattern)[-1]
I ran the previous scripts as directed in readme of this repo.I'm unable to train lr models due to out of index error in following code ` models_per_condition = []
for plane in planes: checkpoint_pattern = glob(f'{models_dir}/*{plane}*{condition}*.pt') checkpoint_path = sorted(checkpoint_pattern)[-1] checkpoint = torch.load(checkpoint_path, map_location=device)`
im getting error at
sorted(checkpoint_pattern)[-1]
I ran the previous scripts as directed in readme of this repo.
You can try to move all .pt files under one folder.
I'm unable to train lr models due to out of index error in following code ` models_per_condition = []
im getting error at
sorted(checkpoint_pattern)[-1]
I ran the previous scripts as directed in readme of this repo.