quadra 2.3.0a1__py3-none-any.whl → 2.3.0a3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
quadra/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.3.0a1"
1
+ __version__ = "2.3.0a3"
2
2
 
3
3
 
4
4
  def get_version():
@@ -30,3 +30,16 @@ progress_bar:
30
30
  lightning_trainer_setup:
31
31
  _target_: quadra.callbacks.lightning.LightningTrainerBaseSetup
32
32
  log_every_n_steps: 1
33
+
34
+ batch_size_finder:
35
+ _target_: quadra.callbacks.lightning.BatchSizeFinder
36
+ mode: power
37
+ steps_per_trial: 3
38
+ init_val: 2
39
+ max_trials: 5 # Max 64
40
+ batch_arg_name: batch_size
41
+ disable: false
42
+ find_train_batch_size: true
43
+ find_validation_batch_size: false
44
+ find_test_batch_size: false
45
+ find_predict_batch_size: false
@@ -9,9 +9,6 @@ model_checkpoint:
9
9
  filename: "epoch_{epoch:03d}"
10
10
  auto_insert_metric_name: False
11
11
 
12
- log_gradients:
13
- _target_: quadra.callbacks.mlflow.LogGradients
14
- norm: 2
15
12
  lr_monitor:
16
13
  _target_: pytorch_lightning.callbacks.LearningRateMonitor
17
14
  logging_interval: "epoch"
@@ -44,9 +44,6 @@ upload_ckpts_as_artifact:
44
44
  upload_best_only: true
45
45
  delete_after_upload: true
46
46
  upload: false
47
- log_gradients:
48
- _target_: quadra.callbacks.mlflow.LogGradients
49
- norm: 2
50
47
  lr_monitor:
51
48
  _target_: pytorch_lightning.callbacks.LearningRateMonitor
52
49
  logging_interval: "epoch"
quadra/utils/export.py CHANGED
@@ -381,7 +381,7 @@ def _safe_export_half_precision_onnx(
381
381
  with open(os.devnull, "w") as f, contextlib.redirect_stdout(f):
382
382
  # This function prints a lot of information that is not useful for the user
383
383
  model_fp16 = auto_convert_mixed_precision(
384
- model_fp32, test_data, rtol=0.01, atol=0.001, keep_io_types=False
384
+ model_fp32, test_data, rtol=0.01, atol=5e-3, keep_io_types=False
385
385
  )
386
386
  onnx.save(model_fp16, export_model_path)
387
387
 
@@ -1,19 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quadra
3
- Version: 2.3.0a1
3
+ Version: 2.3.0a3
4
4
  Summary: Deep Learning experiment orchestration library
5
5
  Home-page: https://orobix.github.io/quadra
6
6
  License: Apache-2.0
7
7
  Keywords: deep learning,experiment,lightning,hydra-core
8
8
  Author: Federico Belotti
9
9
  Author-email: federico.belotti@orobix.com
10
- Requires-Python: >=3.9,<3.11
10
+ Requires-Python: >=3.10,<3.11
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: Intended Audience :: Education
13
13
  Classifier: Intended Audience :: Science/Research
14
14
  Classifier: License :: OSI Approved :: Apache Software License
15
15
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.9
17
16
  Classifier: Programming Language :: Python :: 3.10
18
17
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
18
  Classifier: Topic :: Software Development
@@ -21,7 +20,7 @@ Classifier: Topic :: Software Development :: Libraries
21
20
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
21
  Provides-Extra: onnx
23
22
  Requires-Dist: albumentations (>=1.3,<1.4)
24
- Requires-Dist: anomalib-orobix (==0.7.0.dev143)
23
+ Requires-Dist: anomalib-orobix (==0.7.0.dev150)
25
24
  Requires-Dist: boto3 (>=1.26,<1.27)
26
25
  Requires-Dist: grad-cam-orobix (==1.5.3.dev001)
27
26
  Requires-Dist: h5py (>=3.8,<3.9)
@@ -32,6 +31,7 @@ Requires-Dist: label_studio_converter (>=0.0,<0.1)
32
31
  Requires-Dist: matplotlib (>=3.6,<3.7)
33
32
  Requires-Dist: minio (>=7.1,<7.2)
34
33
  Requires-Dist: mlflow-skinny (>=2.3.1,<3.0.0)
34
+ Requires-Dist: numpy (<2)
35
35
  Requires-Dist: nvitop (>=0.11,<0.12)
36
36
  Requires-Dist: onnx (==1.15.0) ; extra == "onnx"
37
37
  Requires-Dist: onnxconverter-common (>=1.14.0,<2.0.0) ; extra == "onnx"
@@ -39,10 +39,10 @@ Requires-Dist: onnxruntime_gpu (==1.20.0) ; extra == "onnx"
39
39
  Requires-Dist: onnxsim (==0.4.28) ; extra == "onnx"
40
40
  Requires-Dist: opencv_python_headless (>=4.7.0,<4.8.0)
41
41
  Requires-Dist: pandas (<2.0)
42
- Requires-Dist: pillow (>=9.3,<9.4)
43
- Requires-Dist: pydantic (>=1.10.10)
42
+ Requires-Dist: pillow (>=10,<11)
43
+ Requires-Dist: pydantic (==1.10.10)
44
44
  Requires-Dist: python_dotenv (>=0.21,<0.22)
45
- Requires-Dist: pytorch_lightning (>=2.1,<2.2)
45
+ Requires-Dist: pytorch_lightning (>=2.4,<2.5)
46
46
  Requires-Dist: rich (>=13.2,<13.3)
47
47
  Requires-Dist: scikit_learn (>=1.2,<1.3)
48
48
  Requires-Dist: scikit_multilearn (>=0.2,<0.3)
@@ -50,11 +50,11 @@ Requires-Dist: seaborn (>=0.12,<0.13)
50
50
  Requires-Dist: segmentation_models_pytorch-orobix (==0.3.3.dev1)
51
51
  Requires-Dist: tensorboard (>=2.11,<2.12)
52
52
  Requires-Dist: timm (==0.9.12)
53
- Requires-Dist: torch (==2.1.2)
53
+ Requires-Dist: torch (==2.4.1)
54
54
  Requires-Dist: torchinfo (>=1.8,<1.9)
55
55
  Requires-Dist: torchmetrics (>=0.10,<0.11)
56
56
  Requires-Dist: torchsummary (>=1.5,<1.6)
57
- Requires-Dist: torchvision (>=0.16,<0.17)
57
+ Requires-Dist: torchvision (>=0.19,<0.20)
58
58
  Requires-Dist: tripy (>=1.0,<1.1)
59
59
  Requires-Dist: typing_extensions (==4.11.0) ; python_version < "3.10"
60
60
  Requires-Dist: xxhash (>=3.2,<3.3)
@@ -1,4 +1,4 @@
1
- quadra/__init__.py,sha256=vxRo6uJuoohmIxvYi6McQA_GMN9wnOLDPrQ1Ub7Crsg,114
1
+ quadra/__init__.py,sha256=Y2WIePdnaKPseYL22K9Grnpqwa7aMazgU0CWRWBoaJc,114
2
2
  quadra/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  quadra/callbacks/anomalib.py,sha256=Z0Xx3M9UEMYGY0BpSsqemgQSQ6jAr4SrvlbDg_oG9C8,11913
4
4
  quadra/callbacks/lightning.py,sha256=1OTM6fB7qBVLPWNBAZJOb3B00q0kAxMWkPjTEn9YgF0,20182
@@ -32,9 +32,9 @@ quadra/configs/backbone/vit16_base.yaml,sha256=LWMAx3uwKQClDds1zUMzdNercHgO3kanV
32
32
  quadra/configs/backbone/vit16_small.yaml,sha256=8VkdiFCDugoSwz3tEbTNYp54P2eHElC8dR9Tea2Qir8,198
33
33
  quadra/configs/backbone/vit16_tiny.yaml,sha256=iHk8eUeieg-MJF4YA7m7p5WiTz5KT_rmNmYA5LLjdaw,197
34
34
  quadra/configs/backbone/xcit_tiny_24_p8_224.yaml,sha256=GnlQpUcahn_kZpj109kCC_5X4HP9-BSlgXRkiQJTlGU,196
35
- quadra/configs/callbacks/all.yaml,sha256=KYEDjqAf7lC5gpU8uUjlfpETIiDaWq5AlnQN-OCOTZU,1113
36
- quadra/configs/callbacks/default.yaml,sha256=sJBXHcrgycjGiz2lfSn54s1c1fbuED2QLKMaJdos078,1254
37
- quadra/configs/callbacks/default_anomalib.yaml,sha256=spzxnmnl5RRWOxzWSIZDmtb3cz9bGAErZEO-PIAFoqE,2330
35
+ quadra/configs/callbacks/all.yaml,sha256=LZx8d0apwv9t0KlKqzFCrYo2NpuNBgcUnHhG_kud5fQ,1437
36
+ quadra/configs/callbacks/default.yaml,sha256=ZFPU1bm36hJsxI-85uiJx7TpX7qWkR8dibBKWtES4Yc,1180
37
+ quadra/configs/callbacks/default_anomalib.yaml,sha256=FjjSj6HgMvH18MV4AKR4Ew0pOerPefj9eUGinUkODLE,2256
38
38
  quadra/configs/config.yaml,sha256=IULhqUF8Z7Cqr5Xx41EGj8dwtPQWSRiZ5jwzNg0Rjwk,686
39
39
  quadra/configs/core/default.yaml,sha256=IfgjKHXuOknq3CKvKKBqMPfiqmZSUOnc80Q2Jkbm7go,239
40
40
  quadra/configs/datamodule/base/anomaly.yaml,sha256=CILLAoQHunrT4BN0ynOzizTX29k-7B9vDVIZUYm-cBU,377
@@ -262,7 +262,7 @@ quadra/utils/anomaly.py,sha256=49vFvT5-4SxczsEM2Akcut_M1DDwKlOVdGv36oLTgR0,4067
262
262
  quadra/utils/classification.py,sha256=7Phbywpd1CNzwLM5F7zV9FrzdHGd6EkR6LRTRpkerTc,24882
263
263
  quadra/utils/deprecation.py,sha256=zF_S-yqenaZxRBOudhXts0mX763WjEUWCnHd09TZnwY,852
264
264
  quadra/utils/evaluation.py,sha256=5Occ6ONsjnvMkaFFjohtgSvffxEKfjdvMbxqzgtmiHQ,18538
265
- quadra/utils/export.py,sha256=PoKaADeSwGPIW5TEHP3Klw_SUSV1gP1dIN4CN-AgDm0,20836
265
+ quadra/utils/export.py,sha256=2yRA9KQgZGi3742JyDTfDSdmDJCOiv5pCObp2QoA330,20835
266
266
  quadra/utils/imaging.py,sha256=Cz7sGb_axEmnGcwQJP2djFZpIpGCPFIBGT8NWVV-OOE,866
267
267
  quadra/utils/logger.py,sha256=tQJ4xpTAFKx1g-UUm5K1x7zgoP6qoXpcUHQyu0rOr1w,556
268
268
  quadra/utils/mlflow.py,sha256=7E09JShGm2qO7bLb_8srA_RYdVAudxeDYmX7pMdjoVU,3524
@@ -293,8 +293,8 @@ quadra/utils/validator.py,sha256=eFCGr0ss1gYSpsL31JbsCXPZUMJAI9_H-mGodt6UGsU,466
293
293
  quadra/utils/visualization.py,sha256=UvGHX0dumfjpT_KX3Yc1W2B5sAXXaZZWIwXQAi4sdoQ,15950
294
294
  quadra/utils/vit_explainability.py,sha256=hY0awehj6UkyBhnBlW5uWoJTsBfgow5Nll9fAqrzmMo,13337
295
295
  hydra_plugins/quadra_searchpath_plugin.py,sha256=AAn4TzR87zUK7nwSsK-KoqALiPtfQ8FvX3fgZPTGIJ0,1189
296
- quadra-2.3.0a1.dist-info/LICENSE,sha256=8cTbQtcWa02YJoSpMeV_gxj3jpMTkxvl-w3WJ5gV_QE,11342
297
- quadra-2.3.0a1.dist-info/METADATA,sha256=zK3qs3yIokFgVMZzZ2jfV23i-1hBFvrFtBMxmKuZM0w,17625
298
- quadra-2.3.0a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
299
- quadra-2.3.0a1.dist-info/entry_points.txt,sha256=sRYonBZyx-sAJeWcQNQoVQIU5lm02cnCQt6b15k0WHU,43
300
- quadra-2.3.0a1.dist-info/RECORD,,
296
+ quadra-2.3.0a3.dist-info/LICENSE,sha256=8cTbQtcWa02YJoSpMeV_gxj3jpMTkxvl-w3WJ5gV_QE,11342
297
+ quadra-2.3.0a3.dist-info/METADATA,sha256=CKo1FLWFEb14VrBJ-ClCXHWrSHdgBAqzo3tosK2qdeo,17600
298
+ quadra-2.3.0a3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
299
+ quadra-2.3.0a3.dist-info/entry_points.txt,sha256=sRYonBZyx-sAJeWcQNQoVQIU5lm02cnCQt6b15k0WHU,43
300
+ quadra-2.3.0a3.dist-info/RECORD,,