SuperBitDev commited on
Commit
b52fcb0
·
verified ·
1 Parent(s): 77ee914

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. chute_config.yml +2 -2
  2. miner.py +4 -3
  3. weights.onnx +2 -2
chute_config.yml CHANGED
@@ -2,8 +2,8 @@ Image:
2
  from_base: parachutes/python:3.12
3
  run_command:
4
  - pip install --upgrade setuptools wheel
5
- - pip install 'numpy>=1.23' 'onnxruntime-gpu>=1.16' 'opencv-python>=4.7' 'pillow>=9.5' 'huggingface_hub>=0.19.4' 'pydantic>=2.0' 'pyyaml>=6.0' 'aiohttp>=3.9'
6
- - pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128
7
 
8
  NodeSelector:
9
  gpu_count: 1
 
2
  from_base: parachutes/python:3.12
3
  run_command:
4
  - pip install --upgrade setuptools wheel
5
+ - pip install 'numpy>=1.23' 'onnxruntime-gpu[cuda,cudnn]>=1.16' 'opencv-python>=4.7' 'pillow>=9.5' 'huggingface_hub>=0.19.4' 'pydantic>=2.0' 'pyyaml>=6.0' 'aiohttp>=3.9'
6
+ - pip install torch torchvision
7
 
8
  NodeSelector:
9
  gpu_count: 1
miner.py CHANGED
@@ -37,7 +37,7 @@ class Miner:
37
  # balaclava=0, hoodie=1, glove=2, bat=3, spray paint=4, graffiti=5
38
  self.class_names = ['balaclava', 'hoodie', 'glove', 'bat', 'spray paint', 'graffiti']
39
  # ONNX class index order from training export (Ultralytics names 0..5 in dataset.yaml).
40
- model_class_order = ['balaclava', 'bat', 'glove', 'graffiti', 'hoodie', 'spray paint']
41
  self._train_cls_to_canonical = np.array(
42
  [self.class_names.index(n) for n in model_class_order],
43
  dtype=np.int32
@@ -91,10 +91,10 @@ class Miner:
91
  # (glove, spray paint), long handhelds (bat) and large markings
92
  # (graffiti). Confidence peaks vary widely so we keep a moderate
93
  # floor and lean on TTA consensus for the soft tail.
94
- self.conf_thres = 0.15
95
 
96
  # Above this on orig view, accept directly. Below it, require TTA agreement.
97
- self.conf_high = 0.32
98
 
99
  # Standard NMS IoU; balaclavas / hoodies on the same person can
100
  # overlap heavily but they're different classes so the per-class
@@ -536,6 +536,7 @@ class Miner:
536
  - any box with conf >= conf_high
537
  - low/medium-conf boxes only if confirmed across TTA views
538
  Then run final hard NMS.
 
539
  All thresholds default to the instance attributes when not supplied,
540
  so the non-sweep path can call this without args. The sweep path
541
  passes explicit values to avoid mutating shared state across
 
37
  # balaclava=0, hoodie=1, glove=2, bat=3, spray paint=4, graffiti=5
38
  self.class_names = ['balaclava', 'hoodie', 'glove', 'bat', 'spray paint', 'graffiti']
39
  # ONNX class index order from training export (Ultralytics names 0..5 in dataset.yaml).
40
+ model_class_order = ['balaclava', 'hoodie', 'glove', 'bat', 'spray paint', 'graffiti']
41
  self._train_cls_to_canonical = np.array(
42
  [self.class_names.index(n) for n in model_class_order],
43
  dtype=np.int32
 
91
  # (glove, spray paint), long handhelds (bat) and large markings
92
  # (graffiti). Confidence peaks vary widely so we keep a moderate
93
  # floor and lean on TTA consensus for the soft tail.
94
+ self.conf_thres = 0.25
95
 
96
  # Above this on orig view, accept directly. Below it, require TTA agreement.
97
+ self.conf_high = 0.35
98
 
99
  # Standard NMS IoU; balaclavas / hoodies on the same person can
100
  # overlap heavily but they're different classes so the per-class
 
536
  - any box with conf >= conf_high
537
  - low/medium-conf boxes only if confirmed across TTA views
538
  Then run final hard NMS.
539
+
540
  All thresholds default to the instance attributes when not supplied,
541
  so the non-sweep path can call this without args. The sweep path
542
  passes explicit values to avoid mutating shared state across
weights.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:71009e2a8381b151383d0f6d1c87b2d0af7911664a267a30e3e7160143a83f94
3
- size 19157269
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97d6a4c1a6ec630ce8cf98d507b4838a3616592fa431e55533aaea19876c64b9
3
+ size 19409709