Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FBurkhardt committed Nov 16, 2023
1 parent fdc6a9d commit 5a1fdb4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nkululeko/models/model_cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ def load(self, run, epoch):
drop = self.util.config_val("MODEL", "drop", False)
if drop:
self.util.debug(f"loading: dropout set to: {drop}")
self.model = self.MLP(
self.feats_train.shape[1], layers, self.class_num, drop
).to(self.device)
self.model = myCNN(layers, self.class_num).to(self.device)
self.model.load_state_dict(torch.load(self.store_path))
self.model.eval()

Expand Down

0 comments on commit 5a1fdb4

Please sign in to comment.