sinapsis-anomalib 0.1.10__py3-none-any.whl → 0.1.11__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.

Potentially problematic release.


This version of sinapsis-anomalib might be problematic. Click here for more details.

@@ -61,7 +61,7 @@ class TrainerConfig(BaseModel):
61
61
  devices: int | list[int] | str | None = "auto"
62
62
  accelerator: Literal["cpu", "gpu", "tpu", "hpu", "auto"] = "cpu"
63
63
  min_epochs: int = 1
64
- max_epochs: int | None = None
64
+ max_epochs: int | None = 5
65
65
  model_config = ConfigDict(extra="allow")
66
66
 
67
67
 
@@ -47,6 +47,7 @@ class AnomalibExportAttributes(AnomalibBaseAttributes):
47
47
  ckpt_path (str | None): Explicit path to model checkpoint.
48
48
  generic_key_chkpt (str | None): Key to retrieve training results.
49
49
  """
50
+
50
51
  folder_attributes: dict | None = None
51
52
  export_type: ExportType = ExportType.TORCH
52
53
  export_root: str | Path | None = None
@@ -153,7 +154,8 @@ class AnomalibExport(AnomalibBase):
153
154
  generic_data = self._get_generic_data(container, self.attributes.generic_key_chkpt)
154
155
  if generic_data and isinstance(generic_data, AnomalibTrainDataClass):
155
156
  return generic_data.checkpoint_path
156
-
157
+ if generic_data and isinstance(generic_data, dict):
158
+ return generic_data.get("checkpoint_path")
157
159
  raise ValueError("No checkpoint path found")
158
160
 
159
161
  def export_model(self, container: DataContainer) -> AnomalibExportDataClass:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sinapsis-anomalib
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: Templates for anomaly detection with computer vision using anomalib library.
5
5
  Author-email: SinapsisAI <dev@sinapsis.tech>
6
6
  Project-URL: Homepage, https://sinapsis.tech
@@ -1,17 +1,17 @@
1
1
  sinapsis_anomalib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  sinapsis_anomalib/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  sinapsis_anomalib/helpers/config_factory.py,sha256=M7CPS2qHgUWBUTYkuVGhaa2S6IJZ8C3zGPulVjgXr_U,4493
4
- sinapsis_anomalib/helpers/configs.py,sha256=A1Ap7kGCoQhmE72YonmPxp92tkynGdIHeca2UJd6cFE,3472
4
+ sinapsis_anomalib/helpers/configs.py,sha256=LEcZjYWD00RnI_dpzP_AkC1tRewEkY-gxrSXpCghpxA,3469
5
5
  sinapsis_anomalib/helpers/tags.py,sha256=Oj8vSh8AbnOfDY4UadOOteQOhjKwXSB3Rv82hpeP2YE,325
6
6
  sinapsis_anomalib/templates/__init__.py,sha256=ltv45AB2oIhPw0jRrL0S6HMYYQp63Cr-DBjD0HjK1i0,904
7
7
  sinapsis_anomalib/templates/anomalib_base.py,sha256=SBj4-9cM_6uh5HbU_iASGzHAtXOBK7xkZklZ0y8MQss,8532
8
8
  sinapsis_anomalib/templates/anomalib_base_inference.py,sha256=YxYpiRK8CwzLjYJpSnNZkUq6OE9zSAbYnqNStPV9RBI,8996
9
- sinapsis_anomalib/templates/anomalib_export.py,sha256=bREulkjbipka2AsESaYFut0lOFFJn3grxeIUITiNvsE,7881
9
+ sinapsis_anomalib/templates/anomalib_export.py,sha256=vpuu-Rfg0L3zD-ssOKgyKQVsmAwKSs8iAbYcxvSTMSU,7996
10
10
  sinapsis_anomalib/templates/anomalib_openvino_inference.py,sha256=FPr2iwC3JbasJnlOgdWzO5ugbQj3Kan3xp-oxJGkC1Q,3207
11
11
  sinapsis_anomalib/templates/anomalib_torch_inference.py,sha256=Q6aqspIjFpI7WY90jcnqNmqalhYIm_Um2As9Sx1AOeU,2862
12
12
  sinapsis_anomalib/templates/anomalib_train.py,sha256=nS0oLtB5lk-RwKTtuH1bWZc4YM3m6LTl_qowc1wBHs4,7424
13
- sinapsis_anomalib-0.1.10.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
- sinapsis_anomalib-0.1.10.dist-info/METADATA,sha256=GHf5VliXX9fTO5PKzeTmNToU2g2x5DeML8Vf5XjvqMg,7553
15
- sinapsis_anomalib-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- sinapsis_anomalib-0.1.10.dist-info/top_level.txt,sha256=p9ltOdENM_b-Ekvb0AvXmvZRV4Bwtly7c7qeOokACvE,18
17
- sinapsis_anomalib-0.1.10.dist-info/RECORD,,
13
+ sinapsis_anomalib-0.1.11.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
+ sinapsis_anomalib-0.1.11.dist-info/METADATA,sha256=AUU-2fva58pQZus5gzKQMrGBw7_khPUS2DdTL3HZTR8,7553
15
+ sinapsis_anomalib-0.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ sinapsis_anomalib-0.1.11.dist-info/top_level.txt,sha256=p9ltOdENM_b-Ekvb0AvXmvZRV4Bwtly7c7qeOokACvE,18
17
+ sinapsis_anomalib-0.1.11.dist-info/RECORD,,