You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/checkpoint_averaging/checkpoint_averaging.py
+11-7
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
importsys
36
36
37
37
importtorch
38
+
fromtqdm.autoimporttqdm
38
39
39
40
fromnemo.coreimportModelPT
40
41
fromnemo.utilsimportlogging, model_utils
@@ -44,13 +45,14 @@ def main():
44
45
parser=argparse.ArgumentParser()
45
46
parser.add_argument(
46
47
'model_fname_list',
47
-
metavar='N',
48
+
metavar='NEMO_FILE_OR_FOLDER',
48
49
type=str,
49
50
nargs='+',
50
51
help='Input .nemo files (or folders who contains them) to parse',
51
52
)
52
53
parser.add_argument(
53
54
'--import_fname_list',
55
+
metavar='FILE',
54
56
type=str,
55
57
nargs='+',
56
58
default=[],
@@ -59,7 +61,7 @@ def main():
59
61
args=parser.parse_args()
60
62
61
63
logging.info(
62
-
f"\n\nIMPORTANT: Use --import_fname_list for all files that contain missing classes (AttributeError: Can't get attribute '???' on <module '__main__' from '???'>)\n\n"
64
+
f"\n\nIMPORTANT:\nIf you get the following error:\n\t(AttributeError: Can't get attribute '???' on <module '__main__' from '???'>)\nuse:\n\t--import_fname_list\nfor all files that contain missing classes.\n\n"
0 commit comments