Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoXing1996 committed Jun 29, 2022
1 parent 5edcf62 commit bc282be
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .dev_scripts/github/update_model_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def parse_md(md_file, task):
Returns:
Bool: If the target YAML file is different from the original.
"""
unique_dict = generate_unique_name(md_file)
# unique_dict = generate_unique_name(md_file)

collection_name = osp.splitext(osp.basename(md_file))[0]
collection = dict(
Expand Down Expand Up @@ -227,13 +227,6 @@ def parse_md(md_file, task):
checkpoint = line[checkpoint_idx][left:right]
name_key = osp.splitext(osp.basename(config))[0]
model_name = name_key
# if name_key in unique_dict:
# model_name = unique_dict[name_key]
# else:
# model_name = name_key
# warnings.warn(
# f'Config file of {model_name} is not found,'
# 'please check it again.')

# find dataset in config file
dataset = 'Others'
Expand Down

0 comments on commit bc282be

Please sign in to comment.