File size: 936 Bytes
da6986a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """HEG BRep two-pass component-identification pipeline (unified, in-process)."""
import os
# Two OpenMP runtimes (MKL's libiomp5md + torch's libomp) get loaded into the
# same process because conda's numpy and pip-installed torch don't share an OMP
# build. The duplicate-load check is overly conservative for inference workloads;
# allow it.
os.environ.setdefault("KMP_DUPLICATE_LIB_OK", "TRUE")
from pathlib import Path
PACKAGE_ROOT = Path(__file__).resolve().parent
REPO_ROOT = PACKAGE_ROOT.parent
DEFAULT_PASS1_MODEL = REPO_ROOT / "brep_two_pass" / "artifacts" / "pass1_parent_brep_v1" / "best_model_halfedge.pt"
DEFAULT_ELBOW_MODEL = REPO_ROOT / "artifacts_he_elbow_only_v4" / "best_model_halfedge.pt"
DEFAULT_TEE_MODEL = REPO_ROOT / "artifacts_he_tee_only_v1" / "best_model_halfedge.pt"
DEFAULT_FEATURE_LIST = REPO_ROOT / "BRepExtractor" / "feature_lists" / "all.json"
DEFAULT_BREPEXTRACTOR_DIR = REPO_ROOT / "BRepExtractor"
|