-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add automatic batch size and safe testing (#68) * feat: Add automatic batch size lightning callback, is disabled by default * feat: Automatically skip callbacks if there's a disable parameter set to true * feat: Implement automatic batch computation for sklearn based tasks * feat: Add safe test execution with batch scaling for inference tasks * fix: Fix wrong datamodule initialization * build: Bump version 1.2.6 -> 1.3.0 * feat: Add automatic batch size callback in anomalib callbacks config * docs: Update changelog * docs: Add information about automatic batch size for training * feat: Add improvement over lightning callback to fix training stage issue and allow selecting application stages Approved By: @rcmalli * test: Improve test speed, fix tasks crashing when no checkpoint is provided Reduce test time (#69) * test: Start setting up training mocking * build: Add pytest-mock to requirements * build: Add --mock-training flag to test pipeline * fix: Fix export crash when no checkpoint is provided * fix: Fix breaking task when no checkpoint is available * test: Fix train mock for patchcore and efficient_ad, reduce test dataset dimension * test: Add mock training possibility for segmentation tests, reduce default test datasets * fix: Fix wrong datamodule initialization * test: Add mock training fixture for classification training, remove test with run_test flag set to false * test: Reduce the number of patches for patch training * test: Add mock training fixture to multilabel classification * feat: Add safe test execution with batch scaling for inference tasks * fix: Fix number of threads for torch not set properly, set onnx threads for export * docs: Update changelog * test: Mark csflow test as slow * test: Mark draem test as slow * build: Allow installation using python 3.10, deprecate 3.8 * build: Upgrade minimum requirement to python 3.9, fix packages for 3.10 installation * refactor: Wrong indentation * docs: Add python 3.10 information in readme * test: Run automations using python 3.10 * test: Run automatic tests on both python 3.9 and 3.10 Approved By: @rcmalli * fix: Fix missing string marks * feat: Use multiclass datamodule for segmentation generic example (#73) Update oxford pet segmentation example to multiclass segmentation task (#73) * feat: update oxford segmentation example * fix: update parameter name for the model * feat: update analysis logs Approved-By: @lorenzomammana --------- Co-authored-by: Refik Can Malli <[email protected]>
- Loading branch information
Showing
35 changed files
with
526 additions
and
122 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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "quadra" | ||
version = "1.2.7" | ||
version = "1.3.0" | ||
description = "Deep Learning experiment orchestration library" | ||
authors = [ | ||
{ name = "Alessandro Polidori", email = "[email protected]" }, | ||
|
@@ -16,7 +16,7 @@ authors = [ | |
keywords = ["deep learning", "experiment", "lightning", "hydra-core"] | ||
license = { file = "LICENSE" } | ||
readme = { file = "README.md", content-type = "text/markdown" } | ||
requires-python = ">=3.8,<3.10" | ||
requires-python = ">=3.9,<3.11" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Intended Audience :: Developers", | ||
|
@@ -52,6 +52,7 @@ dependencies = [ | |
"python-dotenv==0.21.*", | ||
"rich==13.2.*", | ||
"scikit-learn==1.2.*", | ||
"pydantic==1.10.10", | ||
"grad-cam==1.4.6", | ||
"matplotlib==3.6.*", | ||
"seaborn==0.12.*", | ||
|
@@ -62,13 +63,13 @@ dependencies = [ | |
"tripy==1.0.*", | ||
"h5py==3.8.*", | ||
"timm==0.6.12", # required by smp | ||
"segmentation-models-pytorch==0.3.*", | ||
"anomalib@git+https://github.com/orobix/[email protected]+obx.1.2.1", | ||
"segmentation-models-pytorch==0.3.2", | ||
"anomalib@git+https://github.com/orobix/[email protected]+obx.1.2.3", | ||
"xxhash==3.2.*", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest==7.2.*", "pytest-cov==4.0.*", "pytest-lazy-fixture==0.6.*"] | ||
test = ["pytest==7.2.*", "pytest-cov==4.0.*", "pytest-lazy-fixture==0.6.*", "pytest-mock==3.11.*"] | ||
|
||
dev = [ | ||
"interrogate==1.5.*", | ||
|
@@ -118,7 +119,7 @@ repository = "https://github.com/orobix/quadra" | |
|
||
# Adapted from https://realpython.com/pypi-publish-python-package/#version-your-package | ||
[tool.bumpver] | ||
current_version = "1.2.7" | ||
current_version = "1.3.0" | ||
version_pattern = "MAJOR.MINOR.PATCH" | ||
commit_message = "build: Bump version {old_version} -> {new_version}" | ||
commit = true | ||
|
@@ -193,6 +194,7 @@ ignore_regex = [ | |
".*on_train.*", | ||
".*on_validation.*", | ||
".*on_test.*", | ||
".*on_predict.*", | ||
".*forward.*", | ||
".*backward.*", | ||
".*training_step.*", | ||
|
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,4 @@ | ||
__version__ = "1.2.7" | ||
__version__ = "1.3.0" | ||
|
||
|
||
def get_version(): | ||
|
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
2 changes: 2 additions & 0 deletions
2
quadra/configs/datamodule/generic/oxford_pet/segmentation/base.yaml
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,7 +1,10 @@ | ||
_target_: quadra.tasks.SklearnClassification | ||
device: "cuda:0" | ||
device: cuda:0 | ||
automatic_batch_size: | ||
starting_batch_size: 1024 | ||
disable: true | ||
output: | ||
folder: "classification_experiment" | ||
folder: classification_experiment | ||
report: true | ||
example: true | ||
test_full_data: true |
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.