Skip to content

Commit 5b7a92c

Browse files
authored
Merge pull request #17 from torokati44/master
Fix model loading
2 parents 36509dc + 5fcdcae commit 5b7a92c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textgenrnn/textgenrnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def save(self, weights_path="textgenrnn_weights_saved.hdf5"):
225225
self.model.save_weights(weights_path)
226226

227227
def load(self, weights_path):
228-
self.model = textgenrnn_model(weights_path, self.num_classes)
228+
self.model = textgenrnn_model(self.num_classes, cfg=self.config, weights_path=weights_path)
229229

230230
def reset(self):
231231
self.config = self.default_config.copy()

0 commit comments

Comments
 (0)