update exe GUI build

This commit is contained in:
ykcheungab
2026-06-21 12:01:34 +08:00
parent 258948bcb7
commit 7feae9550e
18 changed files with 862 additions and 173 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ import numpy as np
import scipy.fft
from scipy import ndimage
import cv2
from numba import njit
# from numba import njit
@njit(cache=False)
# @njit(cache=False)
def _blend_kernel(blend_patch, wsum_patch, cov_patch, src_patch, w_patch):
"""Fused incremental weighted-average composite (numba-accelerated)."""
sh = src_patch.shape[0]
+4 -1
View File
@@ -1,5 +1,6 @@
from __future__ import annotations
import sys
from dataclasses import dataclass
from pathlib import Path
@@ -44,10 +45,12 @@ def _candidate_export_dirs(export_dir) -> list[Path]:
here = Path(__file__).resolve()
candidates = [
Path.cwd() / raw, # repo root / user cwd
Path.cwd() / raw,
here.parents[1] / raw, # packaged wheel: orisys/assets/...
here.parents[3] / raw, # editable install: repo/assets/...
]
if getattr(sys, "frozen", False):
candidates.insert(0, Path(sys.executable).resolve().parent / raw)
unique: list[Path] = []
for candidate in candidates:
resolved = candidate.resolve()