Skip to content

Commit

Permalink
fix the text classification labels_file artifact. (#2751)
Browse files Browse the repository at this point in the history
  • Loading branch information
VahidooX authored Aug 31, 2021
1 parent b2ace62 commit 122ee9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, cfg: DictConfig, trainer: Trainer = None):

# register the file containing the labels into the artifacts to get stored in the '.nemo' file later
if 'class_labels' in cfg and 'class_labels_file' in cfg.class_labels and cfg.class_labels.class_labels_file:
self.register_artifact('class_labels', cfg.class_labels.class_labels_file)
self.register_artifact('class_labels.class_labels_file', cfg.class_labels.class_labels_file)

def create_loss_module(self):
# create the loss module if it is not yet created by the training data loader
Expand Down

0 comments on commit 122ee9a

Please sign in to comment.