deepdoctection 1.2.7__tar.gz → 1.2.9__tar.gz

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.
Files changed (58) hide show
  1. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/PKG-INFO +1 -1
  2. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/pyproject.toml +1 -1
  3. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/__init__.py +1 -1
  4. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/anngen.py +4 -4
  5. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection.egg-info/PKG-INFO +1 -1
  6. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/README.md +0 -0
  7. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/setup.cfg +0 -0
  8. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/analyzer/__init__.py +0 -0
  9. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/analyzer/config.py +0 -0
  10. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/analyzer/dd.py +0 -0
  11. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/analyzer/factory.py +0 -0
  12. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/configs/__init__.py +0 -0
  13. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/configs/conf_dd_one.yaml +0 -0
  14. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/configs/conf_tesseract.yaml +0 -0
  15. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/configs/profiles.jsonl +0 -0
  16. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/eval/__init__.py +0 -0
  17. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/eval/accmetric.py +0 -0
  18. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/eval/base.py +0 -0
  19. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/eval/cocometric.py +0 -0
  20. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/eval/eval.py +0 -0
  21. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/eval/registry.py +0 -0
  22. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/eval/tedsmetric.py +0 -0
  23. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/__init__.py +0 -0
  24. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/base.py +0 -0
  25. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/d2detect.py +0 -0
  26. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/deskew.py +0 -0
  27. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/doctrocr.py +0 -0
  28. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/hfdetr.py +0 -0
  29. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/hflayoutlm.py +0 -0
  30. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/hflm.py +0 -0
  31. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/model.py +0 -0
  32. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/pdftext.py +0 -0
  33. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/tessocr.py +0 -0
  34. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/extern/texocr.py +0 -0
  35. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/__init__.py +0 -0
  36. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/base.py +0 -0
  37. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/common.py +0 -0
  38. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/concurrency.py +0 -0
  39. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/doctectionpipe.py +0 -0
  40. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/language.py +0 -0
  41. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/layout.py +0 -0
  42. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/lm.py +0 -0
  43. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/order.py +0 -0
  44. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/refine.py +0 -0
  45. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/registry.py +0 -0
  46. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/segment.py +0 -0
  47. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/sub_layout.py +0 -0
  48. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/text.py +0 -0
  49. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/pipe/transform.py +0 -0
  50. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/py.typed +0 -0
  51. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/train/__init__.py +0 -0
  52. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/train/d2_frcnn_train.py +0 -0
  53. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/train/hf_detr_train.py +0 -0
  54. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection/train/hf_layoutlm_train.py +0 -0
  55. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection.egg-info/SOURCES.txt +0 -0
  56. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection.egg-info/dependency_links.txt +0 -0
  57. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection.egg-info/requires.txt +0 -0
  58. {deepdoctection-1.2.7 → deepdoctection-1.2.9}/src/deepdoctection.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepdoctection
3
- Version: 1.2.7
3
+ Version: 1.2.9
4
4
  Summary: Repository for Document AI - server/inference core package
5
5
  Author: Dr. Janis Meyer
6
6
  License: Apache License 2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "deepdoctection"
7
- version = "1.2.7"
7
+ version = "1.2.9"
8
8
  authors = [
9
9
  {name = "Dr. Janis Meyer"}
10
10
  ]
@@ -12,7 +12,7 @@ from dd_core.utils.env_info import collect_env_info
12
12
  from dd_core.utils.file_utils import _LazyModule
13
13
  from dd_core.utils.logger import LoggingRecord, logger
14
14
 
15
- __version__ = "1.2.7"
15
+ __version__ = "1.2.9"
16
16
  _IMPORT_STRUCTURE = {
17
17
  "analyzer": ["config_sanity_checks", "get_dd_analyzer", "ServiceFactory", "update_cfg_from_defaults"],
18
18
  "eval": [
@@ -127,7 +127,7 @@ class LocalDataPointCacheStore(DataPointCacheStore):
127
127
  Args:
128
128
  max_pages (int): Maximum number of pages to keep per document.
129
129
  """
130
- self._max_pages = max_pages
130
+ self.max_pages = max_pages
131
131
  self._pages: dict[str, dict[int, dict[str, Any]]] = {}
132
132
 
133
133
  def _get_cache_key(self, document_id: str, job_id: str | None) -> str:
@@ -165,8 +165,8 @@ class LocalDataPointCacheStore(DataPointCacheStore):
165
165
  pages = {}
166
166
  self._pages[cache_key] = pages
167
167
  pages[page_number] = image_to_cache_dict(image)
168
- if self._max_pages > 0 and len(pages) > self._max_pages:
169
- for k in sorted(pages.keys())[: -self._max_pages]:
168
+ if self.max_pages > 0 and len(pages) > self.max_pages:
169
+ for k in sorted(pages.keys())[: -self.max_pages]:
170
170
  pages.pop(k, None)
171
171
 
172
172
  def get_datapoints(self, document_id: str, last_d: int, job_id: str | None = None) -> tuple[Image, ...]:
@@ -230,10 +230,10 @@ class DatapointManager:
230
230
 
231
231
  if num_cached_datapoints < 0:
232
232
  raise ValueError("num_cached_datapoints must be >= 0")
233
- self.num_cached_datapoints = num_cached_datapoints
234
233
  self.remove_pixel_values_from_cache = remove_pixel_values_from_cache
235
234
 
236
235
  self._cache_store = cache_store or LocalDataPointCacheStore(max_pages=num_cached_datapoints)
236
+ self.num_cached_datapoints = self._cache_store.max_pages
237
237
 
238
238
  def maybe_cache_datapoint(self, image: Optional[Image], job_id: str | None = None) -> None:
239
239
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepdoctection
3
- Version: 1.2.7
3
+ Version: 1.2.9
4
4
  Summary: Repository for Document AI - server/inference core package
5
5
  Author: Dr. Janis Meyer
6
6
  License: Apache License 2.0
File without changes
File without changes