Skip to content

Commit

Permalink
Fix issue when there is one sample in last batch
Browse files Browse the repository at this point in the history
  • Loading branch information
psj1997 committed Sep 19, 2023
1 parent 4dcde47 commit 615e223
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SemiBin/semi_supervised_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ def train(out, contig_fastas, binned_lengths, logger, datas, data_splits, cannot
dataset=dataset_unlabeled,
batch_size=batchsize,
shuffle=True,
num_workers=0)
num_workers=0,
drop_last=True)

for train_input1, train_input2, train_label in train_loader:
model.train()
Expand Down

0 comments on commit 615e223

Please sign in to comment.