Silly98 commited on
Commit
1bbfde0
·
verified ·
1 Parent(s): 741d479

Update sample.txt

Browse files
Files changed (1) hide show
  1. sample.txt +54 -0
sample.txt CHANGED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ REM HEG BRep batch CLI: STEP folder -> Excel.
3
+ REM
4
+ REM Usage:
5
+ REM heg_brep_batch.bat <step_folder> [output.xlsx] [--device cpu|cuda] ...
6
+
7
+ setlocal
8
+ set HERE=%~dp0
9
+ set PYTHONPATH=%HERE%;%HERE%BRepExtractor;%PYTHONPATH%
10
+ set PYTHONUNBUFFERED=1
11
+ set PYTHONWARNINGS=ignore::DeprecationWarning
12
+ REM Mimic conda activation so MKL / OCC / torch DLLs are findable.
13
+ set PATH=%HERE%python;%HERE%python\Library\bin;%HERE%python\Scripts;%PATH%
14
+
15
+ "%HERE%python\python.exe" -u -m heg_brep.batch ^
16
+ --pass1_model "%HERE%models\pass1.pt" ^
17
+ --elbow_model "%HERE%models\elbow.pt" ^
18
+ --tee_model "%HERE%models\tee.pt" ^
19
+ %*
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+ @echo off
29
+ REM HEG BRep classification service launcher.
30
+ REM
31
+ REM Spawns the FastAPI service from the bundled Python. Prints `READY port=<N>`
32
+ REM to stdout once models are loaded; from then on the host (C# 3D viewer)
33
+ REM should POST to http://127.0.0.1:<N>/classify.
34
+ REM
35
+ REM Forward all command-line args (e.g. --device cpu, --pass2_min_conf 0.9).
36
+
37
+ setlocal
38
+ set HERE=%~dp0
39
+ set PYTHONPATH=%HERE%;%HERE%BRepExtractor;%PYTHONPATH%
40
+ set PYTHONUNBUFFERED=1
41
+ set PYTHONWARNINGS=ignore::DeprecationWarning
42
+ REM Mimic conda activation so MKL / OCC / torch DLLs are findable.
43
+ set PATH=%HERE%python;%HERE%python\Library\bin;%HERE%python\Scripts;%PATH%
44
+
45
+ REM Override default model locations to point at the bundled models folder.
46
+ set HEG_PASS1_MODEL=%HERE%models\pass1.pt
47
+ set HEG_ELBOW_MODEL=%HERE%models\elbow.pt
48
+ set HEG_TEE_MODEL=%HERE%models\tee.pt
49
+
50
+ "%HERE%python\python.exe" -u -m heg_brep.server ^
51
+ --pass1_model "%HEG_PASS1_MODEL%" ^
52
+ --elbow_model "%HEG_ELBOW_MODEL%" ^
53
+ --tee_model "%HEG_TEE_MODEL%" ^
54
+ %*