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.
- build_identity.py +2 -0
- constants.py +53 -0
- core/__init__.py +39 -0
- core/_alignment_kernels.py +1519 -0
- core/_background_focus_gpu.py +183 -0
- core/_ecc_area_gpu.py +357 -0
- core/_ecc_native.py +1260 -0
- core/_native.py +42 -0
- core/_openfocus_native.cp313-win_amd64.pyd +0 -0
- core/_perspective_gpu.py +567 -0
- core/accelerator_linux_x86_64.json +136 -0
- core/accelerator_macos_arm64.json +67 -0
- core/accelerator_win64.json +87 -0
- core/adaptive_split.py +703 -0
- core/algorithm_adapters.py +302 -0
- core/algorithms.py +485 -0
- core/aligned_previews.py +131 -0
- core/app.py +355 -0
- core/background_fill.py +2260 -0
- core/batch_converter.py +943 -0
- core/cli.py +2837 -0
- core/color_management.py +347 -0
- core/compare_worker.py +363 -0
- core/control/__init__.py +1 -0
- core/control/client.py +422 -0
- core/control/color_dialogs.py +54 -0
- core/control/protocol.py +241 -0
- core/control/server.py +1943 -0
- core/depth_map.py +634 -0
- core/depth_products.py +253 -0
- core/developer_options.py +600 -0
- core/exif_macros.py +334 -0
- core/experimental.py +31 -0
- core/exposure_split.py +307 -0
- core/filename_template.py +297 -0
- core/focus_order.py +302 -0
- core/frame_resolution_cache.py +624 -0
- core/frame_storage.py +1384 -0
- core/frame_transport.py +325 -0
- core/fusion_diagnostics.py +23 -0
- core/fusion_live_preview.py +115 -0
- core/gallery_cache.py +635 -0
- core/gallery_media.py +752 -0
- core/gallery_state.py +1366 -0
- core/grouped_fusion.py +251 -0
- core/html_3d_export.py +1531 -0
- core/html_animation_export.py +1509 -0
- core/html_viewer_i18n.py +1223 -0
- core/image_loader.py +2144 -0
- core/inference_pack.py +765 -0
- core/inference_process.py +58 -0
- core/inference_tensorrt.py +312 -0
- core/inference_worker.py +284 -0
- core/live_preview.py +2912 -0
- core/models/__init__.py +26 -0
- core/models/attention_workspace.py +16 -0
- core/models/stackmff_v1/__init__.py +0 -0
- core/models/stackmff_v1/network.py +124 -0
- core/models/stackmff_v2/__init__.py +0 -0
- core/models/stackmff_v2/network.py +81 -0
- core/models/stackmff_v3/__init__.py +7 -0
- core/models/stackmff_v3/model_io.py +112 -0
- core/models/stackmff_v3/network.py +603 -0
- core/models/stackmff_v4/__init__.py +10 -0
- core/models/stackmff_v4/network.py +628 -0
- core/models/stackmff_v4/streaming.py +369 -0
- core/mosaic.py +1287 -0
- core/mosaic_blend.py +146 -0
- core/mosaic_control.py +489 -0
- core/mosaic_hdr.py +402 -0
- core/mosaic_photo.py +515 -0
- core/mosaic_projection.py +597 -0
- core/mosaic_seam.py +292 -0
- core/mosaic_stitcher.py +494 -0
- core/multi_focus_fusion.py +2633 -0
- core/openfocus_alignment.py +2461 -0
- core/psd_export.py +1168 -0
- core/raw_container_previews.py +214 -0
- core/raw_develop.py +627 -0
- core/recipes.py +430 -0
- core/registration.py +3238 -0
- core/registration_errors.py +19 -0
- core/render_context.py +709 -0
- core/render_preflight.py +266 -0
- core/render_process.py +1065 -0
- core/render_queue.py +513 -0
- core/resource_policy.py +1002 -0
- core/scratch_registry.py +505 -0
- core/source_frames.py +2807 -0
- core/source_previews.py +513 -0
- core/stack_review.py +67 -0
- core/stereo_3d_export.py +1208 -0
- core/storage_preflight.py +51 -0
- core/substack_utils.py +250 -0
- core/torch_backend.py +430 -0
- core/transparency.py +55 -0
- core/video_import.py +163 -0
- core/watch_folder.py +747 -0
- core/windows_shell.py +199 -0
- core/workers.py +2683 -0
- fusion_methods/__init__.py +22 -0
- fusion_methods/_dct_kernels.py +541 -0
- fusion_methods/_depth_kernel.py +297 -0
- fusion_methods/_depth_warmup.py +45 -0
- fusion_methods/_dtcwt_kernels.py +119 -0
- fusion_methods/_dtcwt_native.py +2295 -0
- fusion_methods/_gff_kernels.py +620 -0
- fusion_methods/_gfg_kernels.py +1660 -0
- fusion_methods/_openfocus_depth_rows.py +520 -0
- fusion_methods/_openfocus_execution.py +273 -0
- fusion_methods/_openfocus_gpu.py +2486 -0
- fusion_methods/_openfocus_gpu_a.py +708 -0
- fusion_methods/_openfocus_gpu_c.py +827 -0
- fusion_methods/_openfocus_gpu_dct.py +996 -0
- fusion_methods/_openfocus_gpu_dtcwt.py +2520 -0
- fusion_methods/_openfocus_gpu_gff.py +1468 -0
- fusion_methods/_openfocus_gpu_gfg.py +1561 -0
- fusion_methods/_openfocus_kernels.py +1418 -0
- fusion_methods/_openfocus_pixels.py +137 -0
- fusion_methods/_openfocus_pyramid.py +1329 -0
- fusion_methods/_openfocus_resample.py +361 -0
- fusion_methods/_stackmff_kernels.py +913 -0
- fusion_methods/dct.py +546 -0
- fusion_methods/dtcwt.py +1145 -0
- fusion_methods/gff.py +803 -0
- fusion_methods/gfg_fgf.py +1027 -0
- fusion_methods/inference_client.py +152 -0
- fusion_methods/neural_common.py +723 -0
- fusion_methods/neural_runtime.py +1272 -0
- fusion_methods/openfocus_a.py +568 -0
- fusion_methods/openfocus_ab.py +309 -0
- fusion_methods/openfocus_bc.py +438 -0
- fusion_methods/openfocus_depth.py +621 -0
- fusion_methods/stackmff_v1.py +107 -0
- fusion_methods/stackmff_v2.py +328 -0
- fusion_methods/stackmff_v2_tiled.py +483 -0
- fusion_methods/stackmffv3.py +497 -0
- fusion_methods/stackmffv4.py +148 -0
- locales/__init__.py +1368 -0
- locales/_extra.py +3522 -0
- locales/_retouch_macro.py +485 -0
- locales/context_help_i18n.py +961 -0
- locales/de.py +1751 -0
- locales/en.py +1769 -0
- locales/export_3d_i18n.py +883 -0
- locales/fr.py +1751 -0
- locales/gallery_i18n.py +5136 -0
- locales/it.py +1751 -0
- locales/ko.py +1751 -0
- locales/live_preview_i18n.py +573 -0
- locales/nl.py +1751 -0
- locales/pl.py +1751 -0
- locales/pro_exports_i18n.py +473 -0
- locales/pt.py +1751 -0
- locales/raw_develop_i18n.py +713 -0
- locales/render_queue_i18n.py +436 -0
- locales/ru.py +1751 -0
- locales/stackmff_v4_i18n.py +118 -0
- locales/substack_i18n.py +401 -0
- locales/ui_polish_i18n.py +118 -0
- locales/watch_templates_i18n.py +610 -0
- locales/zh.py +1756 -0
- openfocus-2.1.0.dist-info/METADATA +453 -0
- openfocus-2.1.0.dist-info/RECORD +233 -0
- openfocus-2.1.0.dist-info/WHEEL +5 -0
- openfocus-2.1.0.dist-info/entry_points.txt +3 -0
- openfocus-2.1.0.dist-info/licenses/LICENSE +202 -0
- openfocus-2.1.0.dist-info/licenses/NOTICE +4 -0
- openfocus-2.1.0.dist-info/licenses/docs/THIRD_PARTY_NOTICES.md +342 -0
- utils/__init__.py +53 -0
- utils/_account_callback_page.py +163 -0
- utils/_image_kernels.py +583 -0
- utils/account_client.py +1307 -0
- utils/align_cache.py +613 -0
- utils/app_paths.py +118 -0
- utils/colormap.py +149 -0
- utils/community_icons.py +256 -0
- utils/design_tokens.py +257 -0
- utils/diagnostics.py +291 -0
- utils/dust_map.py +185 -0
- utils/export_paths.py +241 -0
- utils/file_dialogs.py +565 -0
- utils/file_manager.py +179 -0
- utils/file_modes.py +75 -0
- utils/fonts.py +280 -0
- utils/frame_pixels.py +416 -0
- utils/gallery_client.py +2051 -0
- utils/image_utils.py +1905 -0
- utils/label_model.py +181 -0
- utils/layered_tiff.py +212 -0
- utils/license_info.py +147 -0
- utils/linear_dng.py +963 -0
- utils/logging_setup.py +513 -0
- utils/memory.py +437 -0
- utils/mesh_export.py +273 -0
- utils/output_share.py +126 -0
- utils/output_sharpen.py +47 -0
- utils/path_identity.py +63 -0
- utils/performance_profile.py +615 -0
- utils/platform_utils.py +538 -0
- utils/project_file.py +1233 -0
- utils/raw_exif.py +778 -0
- utils/recovery.py +193 -0
- utils/release_delta.py +259 -0
- utils/release_notes.py +405 -0
- utils/report_bundle.py +578 -0
- utils/report_client.py +457 -0
- utils/reporting.py +70 -0
- utils/retouch.py +2222 -0
- utils/retouch_checkpoint.py +915 -0
- utils/scalebar.py +675 -0
- utils/self_update.py +868 -0
- utils/sensor_cleanup.py +246 -0
- utils/settings_store.py +868 -0
- utils/sorting.py +34 -0
- utils/sound_notify.py +51 -0
- utils/standalone_retouch.py +152 -0
- utils/tls.py +164 -0
- utils/ui_utils.py +329 -0
- utils/updater.py +514 -0
- utils/usage_analytics.py +164 -0
- utils/validators.py +378 -0
- utils/watermark.py +1129 -0
- utils/weights.py +32 -0
- weights/__init__.py +1 -0
- weights/stackmff_final.onnx +0 -0
- weights/stackmff_final.pth +0 -0
- weights/stackmff_v2_final.onnx +0 -0
- weights/stackmff_v2_final.pth +0 -0
- weights/stackmff_v3_final.onnx +0 -0
- weights/stackmff_v3_final.pth +0 -0
- weights/stackmff_v4_flash.onnx +0 -0
- weights/stackmff_v4_flash.pth +0 -0
build_identity.py
ADDED
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
|
+
]
|