Skip to content

Commit

Permalink
Merge pull request #46 from andreped/README-typo-fix
Browse files Browse the repository at this point in the history
Docs: Fixed normalizer variable typo in README example
  • Loading branch information
carloalbertobarbano committed May 25, 2023
2 parents 6fa5030 + 3e84cc6 commit 3a3eb2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ T = transforms.Compose([
transforms.Lambda(lambda x: x*255)
])

torch_normalizer = torchstain.normalizers.MacenkoNormalizer(backend='torch')
torch_normalizer.fit(T(target))
normalizer = torchstain.normalizers.MacenkoNormalizer(backend='torch')
normalizer.fit(T(target))

t_to_transform = T(to_transform)
norm, H, E = normalizer.normalize(I=t_to_transform, stains=True)
Expand Down

0 comments on commit 3a3eb2c

Please sign in to comment.