Skip to content

Commit

Permalink
Improve bulk_runner for 'all resolution' mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rwightman committed Nov 23, 2023
1 parent 40d55ab commit e7abc32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bulk_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@ def main():
model_cfgs.append((n, None))
elif args.model_list == 'all_res':
model_names = list_models()
model_names += [n.split('.')[0] for n in list_models(pretrained=True)]
model_names += list_models(pretrained=True)
model_cfgs = set()
for n in model_names:
pt_cfg = get_pretrained_cfg(n)
if pt_cfg is None:
print(f'Model {n} is missing pretrained cfg, skipping.')
continue
n = n.split('.')[0]
model_cfgs.add((n, pt_cfg.input_size[-1]))
if pt_cfg.test_input_size is not None:
model_cfgs.add((n, pt_cfg.test_input_size[-1]))
Expand Down

0 comments on commit e7abc32

Please sign in to comment.