update exe GUI build
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user