Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update development branch #59

Merged
merged 30 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
78c57ab
Improve code readability and speed
ajinkya-kulkarni Apr 2, 2023
7fc0efa
update ubuntu flavor
carloalbertobarbano Apr 3, 2023
8eed1bf
update ubuntu flavor
carloalbertobarbano Apr 3, 2023
706bea1
Minor update to the `apply_along_axis` method
ajinkya-kulkarni Apr 6, 2023
5079ae3
Added bug report issue template [no ci]
andreped May 4, 2023
fd56e0a
Added feature request issue template [no ci]
andreped May 4, 2023
47a2a78
Numpy Macenko augmentor added
andreped May 8, 2023
4a3f08b
tf macenko aug added
andreped May 8, 2023
14e7b73
torch macenko aug works - all backends supported
andreped May 8, 2023
3e84cc6
Fixed normalizer variable typo in README example
andreped May 22, 2023
6fa5030
Merge pull request #44 from andreped/issue-templates
carloalbertobarbano May 25, 2023
3a3eb2c
Merge pull request #46 from andreped/README-typo-fix
carloalbertobarbano May 25, 2023
11025a2
Fixed scaling value in torch rgb2lab
andreped Aug 11, 2023
06c4dd6
Use shell: bash when installing wheels in CIs
andreped Aug 21, 2023
a2c885e
Added -* to whl + refactored CIs
andreped Aug 21, 2023
a9023aa
Fixed broken DOI badge
andreped Oct 14, 2023
b13ad2a
Added missing transpose to aug numpy macenko
andreped Apr 1, 2024
c046144
Revert change
andreped Apr 1, 2024
694f5d0
Allow for sigma1 and sigma2 to be set for the Macenko augmentor
andreped Apr 1, 2024
b3100c6
Tried fixing download artifact step in test CIs
andreped Apr 1, 2024
bf8e77d
Run tests on macos-12
andreped Apr 1, 2024
2f7dd68
Add multitarget Macenko normalizer
desi-ivanov Jan 7, 2025
b366a03
Fix typo
desi-ivanov Jan 7, 2025
08ae553
Merge pull request #58 from desi-ivanov/multitarget
carloalbertobarbano Jan 7, 2025
33498a2
Merge pull request #53 from andreped/doi-fix
carloalbertobarbano Jan 8, 2025
841e89e
Merge pull request #52 from andreped/whl-install-fix
carloalbertobarbano Jan 8, 2025
3111cd8
Merge pull request #51 from andreped/rgb2lab
carloalbertobarbano Jan 8, 2025
db43d62
Merge pull request #45 from andreped/augmentation
carloalbertobarbano Jan 8, 2025
401514e
Merge pull request #41 from ajinkya-kulkarni/patch-3
carloalbertobarbano Jan 8, 2025
204354f
Update build.yaml
carloalbertobarbano Jan 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow for sigma1 and sigma2 to be set for the Macenko augmentor
andreped committed Apr 1, 2024
commit 694f5d0b484b0660a575c66e7e9a3790d1eaff5d
8 changes: 4 additions & 4 deletions torchstain/base/augmentors/macenko.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
def MacenkoAugmentor(backend='torch'):
def MacenkoAugmentor(backend='torch', sigma1=0.2, sigma2=0.2):
if backend == 'numpy':
from torchstain.numpy.augmentors import NumpyMacenkoAugmentor
return NumpyMacenkoAugmentor()
return NumpyMacenkoAugmentor(sigma1=sigma1, sigma2=sigma2)
elif backend == "torch":
from torchstain.torch.augmentors import TorchMacenkoAugmentor
return TorchMacenkoAugmentor()
return TorchMacenkoAugmentor(sigma1=sigma1, sigma2=sigma2)
elif backend == "tensorflow":
from torchstain.tf.augmentors import TensorFlowMacenkoAugmentor
return TensorFlowMacenkoAugmentor()
return TensorFlowMacenkoAugmentor(sigma1=sigma1, sigma2=sigma2)
else:
raise Exception(f'Unknown backend {backend}')