File size: 1,646 Bytes
1bbfde0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
REM HEG BRep batch CLI: STEP folder -> Excel.
REM
REM Usage:
REM   heg_brep_batch.bat <step_folder> [output.xlsx] [--device cpu|cuda] ...

setlocal
set HERE=%~dp0
set PYTHONPATH=%HERE%;%HERE%BRepExtractor;%PYTHONPATH%
set PYTHONUNBUFFERED=1
set PYTHONWARNINGS=ignore::DeprecationWarning
REM Mimic conda activation so MKL / OCC / torch DLLs are findable.
set PATH=%HERE%python;%HERE%python\Library\bin;%HERE%python\Scripts;%PATH%

"%HERE%python\python.exe" -u -m heg_brep.batch ^
    --pass1_model "%HERE%models\pass1.pt" ^
    --elbow_model "%HERE%models\elbow.pt" ^
    --tee_model   "%HERE%models\tee.pt" ^
    %*








@echo off
REM HEG BRep classification service launcher.
REM
REM Spawns the FastAPI service from the bundled Python. Prints `READY port=<N>`
REM to stdout once models are loaded; from then on the host (C# 3D viewer)
REM should POST to http://127.0.0.1:<N>/classify.
REM
REM Forward all command-line args (e.g. --device cpu, --pass2_min_conf 0.9).

setlocal
set HERE=%~dp0
set PYTHONPATH=%HERE%;%HERE%BRepExtractor;%PYTHONPATH%
set PYTHONUNBUFFERED=1
set PYTHONWARNINGS=ignore::DeprecationWarning
REM Mimic conda activation so MKL / OCC / torch DLLs are findable.
set PATH=%HERE%python;%HERE%python\Library\bin;%HERE%python\Scripts;%PATH%

REM Override default model locations to point at the bundled models folder.
set HEG_PASS1_MODEL=%HERE%models\pass1.pt
set HEG_ELBOW_MODEL=%HERE%models\elbow.pt
set HEG_TEE_MODEL=%HERE%models\tee.pt

"%HERE%python\python.exe" -u -m heg_brep.server ^
    --pass1_model "%HEG_PASS1_MODEL%" ^
    --elbow_model "%HEG_ELBOW_MODEL%" ^
    --tee_model   "%HEG_TEE_MODEL%" ^
    %*