Skip to content

Commit 53f7293

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b34adee commit 53f7293

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pathology/multiple_instance_learning/panda_mil_train_evaluate_pytorch_gpu.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ def save_checkpoint(model, epoch, args, filename='model.tar', best_acc=0):
232232
class LabelEncodeIntegerGraded(transforms.Transform):
233233
"""
234234
Convert to integer label to encoded array representation of length num_classes,
235-
with 1 filled in up to label index, and 0 otherwise. For example for num_classes=5,
236-
embedding of 2 -> (1,1,0,0,0)
235+
with 1 filled in up to label index, and 0 otherwise. For example for num_classes=5,
236+
embedding of 2 -> (1,1,0,0,0)
237237
238238
Args:
239239
num_classes: the number of classes to convert to encoded format.
@@ -465,4 +465,4 @@ def main_worker(gpu, args):
465465
print('ALL DONE')
466466

467467
if __name__ == '__main__':
468-
main()
468+
main()

0 commit comments

Comments
 (0)