Unverified Commit cd8f87bd authored by moto's avatar moto Committed by GitHub
Browse files

Default pretrained weights to eval mode (#1843)

parent 78c382ee
......@@ -72,6 +72,7 @@ class Wav2Vec2PretrainedModelBundle:
dl_kwargs = {} if dl_kwargs is None else dl_kwargs
state_dict = load_state_dict_from_url(url, **dl_kwargs)
model.load_state_dict(state_dict)
model.eval()
return model
def get_labels(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment