-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace albumentations transforms with torchvision * define model-specific transform * include transforms in exported model * update inferencers * fix data types * remove old import * update synthetic dataset * formatting * address pre-commit issues * rename methods * add todo * add transform arguments to datamodule * simplify transform retrieval * make transform optional * update folder dataset * read image as float in torch inferencer * Compose -> Transform * fix tests * fix folder tests * remove image_size from config * fix visualizer tests * Compose -> Transform * update license headers * disable argument linking for image size * add new engine method for updating transform * default_transform -> configure_transforms * update padim * add image_size parameter to datamodule * improve logic in transform setup * simplify datamodule/dataset setup * add unit tests for transform setup * update tests * remove get_transforms * remove references to old transforms * disable antialias when exporting to onnx/openvino * add default transforms for patchcore and efficientad * add model-specific transform to ai-vad * add default transform to base model * call setup trainer in export entrypoint * add model-specific transforms to winclip model * add default transform for uflow model * fix centercrop export * fix model and tools integration tests * update cli export test * typing and docstrings * make transforms argument optional in datasets * remove commented code * use conditional formatting * read anomaly source images with PIL * fix synthetic anomaly tests * docstring * typing and docstrings * remove whitespace * use LabelName * update and use read_image * replace cv2.imread * Fix tests * update config upgrade tests * dynamically set input size parameter * fix minor mistakes * include transform in checkpoint * fix get_model tests * fix viz callback tests * change workflow to address minor issues * update setup_transform tests * pass explicit arguments * type annotation for torch model * use hasatr * use getattr instead of hasattr * update unittest names * remove input_size argument from padim model * remove image_size argument from patchcore model * remove image_size argument from cfa model * remove image_size argument from cflow model * remove image_size argument from dfa model * remove image_size argument from efficient_ad model * replace albumentations with torchvision in efficient_ad * use _setup to build csflow torch model * use _setup to build fastflow torch model * use _setup to build ganomaly torch model * remove input_size parameter from stfpm model * use _setup to build revdist torch model * use _setup to build uflow torch model * add read_mask function * replace to_tensor * allow default model transform in export * fix trainer availability check * setup transforms in dataloaders during predict * update cli tests * rename updated class * remove reference to albumentations from docstrings * remove albumentations from conftest * revert to using padim for predict tests * fix cli predict on PredictDataset bug * add image_size parameter to folder datamodule * update notebooks * remove albumentations from requirements * fix torch inference test * read mask as uint8 * create default resize transform in datamodule * fix fastflow notebook * pass image_size to folder datamodule in notebook * reduce num workers in notebooks * read numpy image in [0-1] range * use read_image in openvino inference * update getting_started notebook * enable antialias in default transform * use read_image in PredictDataset * fix fastflow notebook --------- Co-authored-by: Ashwin Vaidya <[email protected]>
- Loading branch information
1 parent
fa5ac1a
commit 80c0756
Showing
85 changed files
with
3,238 additions
and
2,164 deletions.
There are no files selected for viewing
441 changes: 382 additions & 59 deletions
441
notebooks/000_getting_started/001_getting_started.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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,4 +1,3 @@ | ||
albumentations>=1.1.0 | ||
av>=10.0.0 | ||
einops>=0.3.2 | ||
freia>=0.2 | ||
|
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.