Skip to content

Commit

Permalink
fix a nit init bug broke test (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: zhehuaichen <dian.chenzhehuai@gmail.com>
  • Loading branch information
zhehuaichen committed Oct 4, 2023
1 parent 11eb478 commit 325fb9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nemo/collections/multimodal/modules/speechllm_perception.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def __init__(self, cfg: DictConfig):
# Initialize components
self.preprocessor = self.from_config_dict(cfg.preprocessor)
self.encoder = self.from_config_dict(cfg.encoder)
self.spec_augmentation = self.from_config_dict(cfg.spec_augment)
if 'spec_augment' in cfg and cfg.spec_augment is not None:
self.spec_augmentation = self.from_config_dict(cfg.spec_augment)
else:
self.spec_augmentation = None
self.matcher = self.from_config_dict(cfg.matcher)
self.proj = nn.Linear(cfg.matcher.d_model, cfg.output_dim)

Expand Down

0 comments on commit 325fb9c

Please sign in to comment.