While we’re on this topic, I had issues with the encoder model. I was getting the following error when trying to load the correct model:
RuntimeError: Error(s) in loading state_dict for SpeakerEncoder:
	Unexpected key(s) in state_dict: "similarity_weight", "similarity_bias". 

At the end, it turns out I was using another pytorch version
torch==1.5.1 doesn’t work
torch==1.5.0 does work