openfocus 2.1.0__cp313-cp313-win_amd64.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.
Files changed (233) hide show
  1. build_identity.py +2 -0
  2. constants.py +53 -0
  3. core/__init__.py +39 -0
  4. core/_alignment_kernels.py +1519 -0
  5. core/_background_focus_gpu.py +183 -0
  6. core/_ecc_area_gpu.py +357 -0
  7. core/_ecc_native.py +1260 -0
  8. core/_native.py +42 -0
  9. core/_openfocus_native.cp313-win_amd64.pyd +0 -0
  10. core/_perspective_gpu.py +567 -0
  11. core/accelerator_linux_x86_64.json +136 -0
  12. core/accelerator_macos_arm64.json +67 -0
  13. core/accelerator_win64.json +87 -0
  14. core/adaptive_split.py +703 -0
  15. core/algorithm_adapters.py +302 -0
  16. core/algorithms.py +485 -0
  17. core/aligned_previews.py +131 -0
  18. core/app.py +355 -0
  19. core/background_fill.py +2260 -0
  20. core/batch_converter.py +943 -0
  21. core/cli.py +2837 -0
  22. core/color_management.py +347 -0
  23. core/compare_worker.py +363 -0
  24. core/control/__init__.py +1 -0
  25. core/control/client.py +422 -0
  26. core/control/color_dialogs.py +54 -0
  27. core/control/protocol.py +241 -0
  28. core/control/server.py +1943 -0
  29. core/depth_map.py +634 -0
  30. core/depth_products.py +253 -0
  31. core/developer_options.py +600 -0
  32. core/exif_macros.py +334 -0
  33. core/experimental.py +31 -0
  34. core/exposure_split.py +307 -0
  35. core/filename_template.py +297 -0
  36. core/focus_order.py +302 -0
  37. core/frame_resolution_cache.py +624 -0
  38. core/frame_storage.py +1384 -0
  39. core/frame_transport.py +325 -0
  40. core/fusion_diagnostics.py +23 -0
  41. core/fusion_live_preview.py +115 -0
  42. core/gallery_cache.py +635 -0
  43. core/gallery_media.py +752 -0
  44. core/gallery_state.py +1366 -0
  45. core/grouped_fusion.py +251 -0
  46. core/html_3d_export.py +1531 -0
  47. core/html_animation_export.py +1509 -0
  48. core/html_viewer_i18n.py +1223 -0
  49. core/image_loader.py +2144 -0
  50. core/inference_pack.py +765 -0
  51. core/inference_process.py +58 -0
  52. core/inference_tensorrt.py +312 -0
  53. core/inference_worker.py +284 -0
  54. core/live_preview.py +2912 -0
  55. core/models/__init__.py +26 -0
  56. core/models/attention_workspace.py +16 -0
  57. core/models/stackmff_v1/__init__.py +0 -0
  58. core/models/stackmff_v1/network.py +124 -0
  59. core/models/stackmff_v2/__init__.py +0 -0
  60. core/models/stackmff_v2/network.py +81 -0
  61. core/models/stackmff_v3/__init__.py +7 -0
  62. core/models/stackmff_v3/model_io.py +112 -0
  63. core/models/stackmff_v3/network.py +603 -0
  64. core/models/stackmff_v4/__init__.py +10 -0
  65. core/models/stackmff_v4/network.py +628 -0
  66. core/models/stackmff_v4/streaming.py +369 -0
  67. core/mosaic.py +1287 -0
  68. core/mosaic_blend.py +146 -0
  69. core/mosaic_control.py +489 -0
  70. core/mosaic_hdr.py +402 -0
  71. core/mosaic_photo.py +515 -0
  72. core/mosaic_projection.py +597 -0
  73. core/mosaic_seam.py +292 -0
  74. core/mosaic_stitcher.py +494 -0
  75. core/multi_focus_fusion.py +2633 -0
  76. core/openfocus_alignment.py +2461 -0
  77. core/psd_export.py +1168 -0
  78. core/raw_container_previews.py +214 -0
  79. core/raw_develop.py +627 -0
  80. core/recipes.py +430 -0
  81. core/registration.py +3238 -0
  82. core/registration_errors.py +19 -0
  83. core/render_context.py +709 -0
  84. core/render_preflight.py +266 -0
  85. core/render_process.py +1065 -0
  86. core/render_queue.py +513 -0
  87. core/resource_policy.py +1002 -0
  88. core/scratch_registry.py +505 -0
  89. core/source_frames.py +2807 -0
  90. core/source_previews.py +513 -0
  91. core/stack_review.py +67 -0
  92. core/stereo_3d_export.py +1208 -0
  93. core/storage_preflight.py +51 -0
  94. core/substack_utils.py +250 -0
  95. core/torch_backend.py +430 -0
  96. core/transparency.py +55 -0
  97. core/video_import.py +163 -0
  98. core/watch_folder.py +747 -0
  99. core/windows_shell.py +199 -0
  100. core/workers.py +2683 -0
  101. fusion_methods/__init__.py +22 -0
  102. fusion_methods/_dct_kernels.py +541 -0
  103. fusion_methods/_depth_kernel.py +297 -0
  104. fusion_methods/_depth_warmup.py +45 -0
  105. fusion_methods/_dtcwt_kernels.py +119 -0
  106. fusion_methods/_dtcwt_native.py +2295 -0
  107. fusion_methods/_gff_kernels.py +620 -0
  108. fusion_methods/_gfg_kernels.py +1660 -0
  109. fusion_methods/_openfocus_depth_rows.py +520 -0
  110. fusion_methods/_openfocus_execution.py +273 -0
  111. fusion_methods/_openfocus_gpu.py +2486 -0
  112. fusion_methods/_openfocus_gpu_a.py +708 -0
  113. fusion_methods/_openfocus_gpu_c.py +827 -0
  114. fusion_methods/_openfocus_gpu_dct.py +996 -0
  115. fusion_methods/_openfocus_gpu_dtcwt.py +2520 -0
  116. fusion_methods/_openfocus_gpu_gff.py +1468 -0
  117. fusion_methods/_openfocus_gpu_gfg.py +1561 -0
  118. fusion_methods/_openfocus_kernels.py +1418 -0
  119. fusion_methods/_openfocus_pixels.py +137 -0
  120. fusion_methods/_openfocus_pyramid.py +1329 -0
  121. fusion_methods/_openfocus_resample.py +361 -0
  122. fusion_methods/_stackmff_kernels.py +913 -0
  123. fusion_methods/dct.py +546 -0
  124. fusion_methods/dtcwt.py +1145 -0
  125. fusion_methods/gff.py +803 -0
  126. fusion_methods/gfg_fgf.py +1027 -0
  127. fusion_methods/inference_client.py +152 -0
  128. fusion_methods/neural_common.py +723 -0
  129. fusion_methods/neural_runtime.py +1272 -0
  130. fusion_methods/openfocus_a.py +568 -0
  131. fusion_methods/openfocus_ab.py +309 -0
  132. fusion_methods/openfocus_bc.py +438 -0
  133. fusion_methods/openfocus_depth.py +621 -0
  134. fusion_methods/stackmff_v1.py +107 -0
  135. fusion_methods/stackmff_v2.py +328 -0
  136. fusion_methods/stackmff_v2_tiled.py +483 -0
  137. fusion_methods/stackmffv3.py +497 -0
  138. fusion_methods/stackmffv4.py +148 -0
  139. locales/__init__.py +1368 -0
  140. locales/_extra.py +3522 -0
  141. locales/_retouch_macro.py +485 -0
  142. locales/context_help_i18n.py +961 -0
  143. locales/de.py +1751 -0
  144. locales/en.py +1769 -0
  145. locales/export_3d_i18n.py +883 -0
  146. locales/fr.py +1751 -0
  147. locales/gallery_i18n.py +5136 -0
  148. locales/it.py +1751 -0
  149. locales/ko.py +1751 -0
  150. locales/live_preview_i18n.py +573 -0
  151. locales/nl.py +1751 -0
  152. locales/pl.py +1751 -0
  153. locales/pro_exports_i18n.py +473 -0
  154. locales/pt.py +1751 -0
  155. locales/raw_develop_i18n.py +713 -0
  156. locales/render_queue_i18n.py +436 -0
  157. locales/ru.py +1751 -0
  158. locales/stackmff_v4_i18n.py +118 -0
  159. locales/substack_i18n.py +401 -0
  160. locales/ui_polish_i18n.py +118 -0
  161. locales/watch_templates_i18n.py +610 -0
  162. locales/zh.py +1756 -0
  163. openfocus-2.1.0.dist-info/METADATA +453 -0
  164. openfocus-2.1.0.dist-info/RECORD +233 -0
  165. openfocus-2.1.0.dist-info/WHEEL +5 -0
  166. openfocus-2.1.0.dist-info/entry_points.txt +3 -0
  167. openfocus-2.1.0.dist-info/licenses/LICENSE +202 -0
  168. openfocus-2.1.0.dist-info/licenses/NOTICE +4 -0
  169. openfocus-2.1.0.dist-info/licenses/docs/THIRD_PARTY_NOTICES.md +342 -0
  170. utils/__init__.py +53 -0
  171. utils/_account_callback_page.py +163 -0
  172. utils/_image_kernels.py +583 -0
  173. utils/account_client.py +1307 -0
  174. utils/align_cache.py +613 -0
  175. utils/app_paths.py +118 -0
  176. utils/colormap.py +149 -0
  177. utils/community_icons.py +256 -0
  178. utils/design_tokens.py +257 -0
  179. utils/diagnostics.py +291 -0
  180. utils/dust_map.py +185 -0
  181. utils/export_paths.py +241 -0
  182. utils/file_dialogs.py +565 -0
  183. utils/file_manager.py +179 -0
  184. utils/file_modes.py +75 -0
  185. utils/fonts.py +280 -0
  186. utils/frame_pixels.py +416 -0
  187. utils/gallery_client.py +2051 -0
  188. utils/image_utils.py +1905 -0
  189. utils/label_model.py +181 -0
  190. utils/layered_tiff.py +212 -0
  191. utils/license_info.py +147 -0
  192. utils/linear_dng.py +963 -0
  193. utils/logging_setup.py +513 -0
  194. utils/memory.py +437 -0
  195. utils/mesh_export.py +273 -0
  196. utils/output_share.py +126 -0
  197. utils/output_sharpen.py +47 -0
  198. utils/path_identity.py +63 -0
  199. utils/performance_profile.py +615 -0
  200. utils/platform_utils.py +538 -0
  201. utils/project_file.py +1233 -0
  202. utils/raw_exif.py +778 -0
  203. utils/recovery.py +193 -0
  204. utils/release_delta.py +259 -0
  205. utils/release_notes.py +405 -0
  206. utils/report_bundle.py +578 -0
  207. utils/report_client.py +457 -0
  208. utils/reporting.py +70 -0
  209. utils/retouch.py +2222 -0
  210. utils/retouch_checkpoint.py +915 -0
  211. utils/scalebar.py +675 -0
  212. utils/self_update.py +868 -0
  213. utils/sensor_cleanup.py +246 -0
  214. utils/settings_store.py +868 -0
  215. utils/sorting.py +34 -0
  216. utils/sound_notify.py +51 -0
  217. utils/standalone_retouch.py +152 -0
  218. utils/tls.py +164 -0
  219. utils/ui_utils.py +329 -0
  220. utils/updater.py +514 -0
  221. utils/usage_analytics.py +164 -0
  222. utils/validators.py +378 -0
  223. utils/watermark.py +1129 -0
  224. utils/weights.py +32 -0
  225. weights/__init__.py +1 -0
  226. weights/stackmff_final.onnx +0 -0
  227. weights/stackmff_final.pth +0 -0
  228. weights/stackmff_v2_final.onnx +0 -0
  229. weights/stackmff_v2_final.pth +0 -0
  230. weights/stackmff_v3_final.onnx +0 -0
  231. weights/stackmff_v3_final.pth +0 -0
  232. weights/stackmff_v4_flash.onnx +0 -0
  233. weights/stackmff_v4_flash.pth +0 -0
build_identity.py ADDED
@@ -0,0 +1,2 @@
1
+ """Build-time suffix; release automation replaces it for packaged betas."""
2
+ BETA_SUFFIX = ""
constants.py ADDED
@@ -0,0 +1,53 @@
1
+ APP_VERSION = "2.1.0"
2
+ DISCORD_INVITE_URL = "https://discord.gg/Jamr2SR5"
3
+
4
+
5
+ def app_display_version():
6
+ """Return the build identity while preserving the numeric package version."""
7
+ from build_identity import BETA_SUFFIX
8
+ return APP_VERSION + BETA_SUFFIX
9
+
10
+
11
+ WINDOW_WIDTH = 1600
12
+ WINDOW_HEIGHT = 950
13
+
14
+ TILE_BLOCK_SIZE = 1024
15
+ TILE_OVERLAP = 256
16
+ TILE_THRESHOLD = 2048
17
+ TILE_BLOCK_MIN = 64
18
+ TILE_BLOCK_MAX = 16384
19
+ TILE_OVERLAP_MAX = 4096
20
+ TILE_THRESHOLD_MIN = 256
21
+ TILE_THRESHOLD_MAX = 131072
22
+
23
+ REG_DOWNSCALE_WIDTH = 1024
24
+ HOMOGRAPHY_DOWNSCALE_WIDTH = 1600
25
+ ECC_DOWNSCALE_WIDTH = 1000
26
+
27
+ STATUS_UPDATE_INTERVAL_MS = 2000
28
+
29
+ BYTES_TO_GB = 1024 ** 3
30
+
31
+ # Shared snapshots and numerical scratch leave room for source/preview caches.
32
+ FRAME_RAM_BUDGET_BYTES = 384 * 1024 ** 2
33
+ OPENFOCUS_MAX_IN_FLIGHT_FRAMES = 2
34
+
35
+ FEATURE_MAX_KEYPOINTS = 200
36
+ FEATURE_MATCH_THRESHOLD = 0.01
37
+ FEATURE_RANSAC_REJECTS = 30
38
+ FEATURE_RANSAC_MAX_ITER = 3
39
+
40
+ MAGNIFIER_SIZE = 320
41
+ ANIMATION_DURATION_MS = 400
42
+
43
+ DEFAULT_THREAD_COUNT = 4
44
+ MIN_THREAD_COUNT = 1
45
+ MAX_THREAD_COUNT = 16
46
+ NATIVE_WORKER_STACK_BYTES = 8 * 1024 ** 2
47
+
48
+ AI_BATCH_SIZE = 2
49
+ AI_BATCH_SIZE_MIN = 1
50
+ AI_BATCH_SIZE_MAX = 16
51
+
52
+ KERNEL_SIZE_MIN = 3
53
+ KERNEL_SIZE_MAX = 51
core/__init__.py ADDED
@@ -0,0 +1,39 @@
1
+ """
2
+ Core modules for OpenFocus.
3
+
4
+ Modules:
5
+ - image_loader: Image stack loading and processing
6
+ - registration: Image registration algorithms
7
+ - multi_focus_fusion: Multi-focus image fusion orchestrator
8
+ - workers: Background thread workers for rendering
9
+ - models: Neural network models (StackMFF-V3)
10
+ """
11
+
12
+ from importlib import import_module
13
+
14
+ _EXPORTS = {
15
+ 'ImageStackLoader': ('core.image_loader', 'ImageStackLoader'),
16
+ 'MultiFocusFusion': ('core.multi_focus_fusion', 'MultiFocusFusion'),
17
+ 'is_ai_fusion_available': ('core.multi_focus_fusion', 'is_ai_fusion_available'),
18
+ 'RenderWorker': ('core.workers', 'RenderWorker'),
19
+ 'ROIAlignmentWorker': ('core.workers', 'ROIAlignmentWorker'),
20
+ 'OpenFocusApplication': ('core.app', 'OpenFocusApplication'),
21
+ 'process_command_line_args': ('core.app', 'process_command_line_args'),
22
+ }
23
+
24
+
25
+ def __getattr__(name):
26
+ try:
27
+ module, attribute = _EXPORTS[name]
28
+ except KeyError:
29
+ raise AttributeError(name) from None
30
+ value = getattr(import_module(module), attribute)
31
+ globals()[name] = value
32
+ return value
33
+
34
+ __all__ = [
35
+ 'ImageStackLoader',
36
+ 'MultiFocusFusion',
37
+ 'is_ai_fusion_available',
38
+ 'RenderWorker',
39
+ ]