-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a04961f
commit 10af1b4
Showing
37 changed files
with
191 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""UNet Pydantic model.""" | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Literal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""VAE Pydantic model.""" | ||
|
||
from typing import Literal | ||
|
||
from pydantic import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Activations supported by CAREamics.""" | ||
|
||
from careamics.utils import BaseEnum | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Architectures supported by CAREamics.""" | ||
|
||
from careamics.utils import BaseEnum | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Data supported by CAREamics.""" | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Union | ||
|
25 changes: 0 additions & 25 deletions
25
src/careamics/config/support/supported_extraction_strategies.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Logger supported by CAREamics.""" | ||
|
||
from careamics.utils import BaseEnum | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Losses supported by CAREamics.""" | ||
|
||
from careamics.utils import BaseEnum | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""Optimizers and schedulers supported by CAREamics.""" | ||
|
||
from careamics.utils import BaseEnum | ||
|
||
|
||
|
6 changes: 3 additions & 3 deletions
6
src/careamics/config/support/supported_pixel_manipulations.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
"""Pixel manipulation methods supported by CAREamics.""" | ||
|
||
from careamics.utils import BaseEnum | ||
|
||
|
||
class SupportedPixelManipulation(str, BaseEnum): | ||
"""_summary_. | ||
"""Supported Noise2Void pixel manipulations. | ||
- Uniform: Replace masked pixel value by a (uniformly) randomly selected neighbor | ||
pixel value. | ||
- Median: Replace masked pixel value by the mean of the neighborhood. | ||
""" | ||
|
||
# TODO docs | ||
|
||
UNIFORM = "uniform" | ||
MEDIAN = "median" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"""StructN2V axes supported by CAREamics.""" | ||
|
||
from careamics.utils import BaseEnum | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
"""Transforms supported by CAREamics.""" | ||
|
||
from careamics.utils import BaseEnum | ||
|
||
|
||
class SupportedTransform(str, BaseEnum): | ||
"""Transforms officially supported by CAREamics. | ||
- Flip: from Albumentations, randomly flip the input horizontally, vertically or | ||
both, parameter `p` can be used to set the probability to apply the transform. | ||
- XYRandomRotate90: #TODO | ||
- Normalize # TODO add details, in particular about the parameters | ||
- ManipulateN2V # TODO add details, in particular about the parameters | ||
- XYFlip | ||
Note that while any Albumentations (see https://albumentations.ai/) transform can be | ||
used in CAREamics, no check are implemented to verify the compatibility of any other | ||
transforms than the ones officially supported. | ||
""" | ||
"""Transforms officially supported by CAREamics.""" | ||
|
||
XY_FLIP = "XYFlip" | ||
XY_RANDOM_ROTATE90 = "XYRandomRotate90" | ||
NORMALIZE = "Normalize" | ||
N2V_MANIPULATE = "N2VManipulate" | ||
# CUSTOM = "Custom" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.