MTerryJack commited on
Commit
cd50ef8
·
verified ·
1 Parent(s): 99da924

subnet_bridge: copy winning miner repo into library

Browse files
Files changed (6) hide show
  1. README.md +7 -7
  2. chute_config.yml +20 -20
  3. main.py +1 -1
  4. miner.py +0 -0
  5. pyproject.toml +4 -3
  6. weights.onnx +2 -2
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  tags:
3
  - element_type:detect
4
- - model:onnxruntime
5
  - subnet:winner
6
  - object:fire
7
  - object:smoke
@@ -10,18 +10,18 @@ tags:
10
  manako:
11
  source: winner_fetch
12
  manifest_element_name: manak0/Detect-fire
13
- winner_repo_id: happydev93/firedetect1007
14
- winner_revision: 89d9e46273bab6f91bfa5b9e2057e71f4dd52f4e
15
- note: E=0.03070886 (map50=0.600000, size_mb=19.538334)
16
  ---
17
 
18
  # Detect-fire-winner
19
 
20
  Published winning miner converted into a library element.
21
 
22
- - Source winner repo: `happydev93/firedetect1007`
23
- - Source revision: `89d9e46273bab6f91bfa5b9e2057e71f4dd52f4e`
24
  - Manifest element: `manak0/Detect-fire`
25
  - Element type: `Detect`
26
  - Objects: fire, smoke, fire extinguisher
27
- - Runtime model type: `onnxruntime`
 
1
  ---
2
  tags:
3
  - element_type:detect
4
+ - model:ultralytics-yolo
5
  - subnet:winner
6
  - object:fire
7
  - object:smoke
 
10
  manako:
11
  source: winner_fetch
12
  manifest_element_name: manak0/Detect-fire
13
+ winner_repo_id: SuperBitDev/bev5
14
+ winner_revision: 42f54c2a500a1f78032404887c29a0d77e3942b3
15
+ note: E=0.03106038 (map50=0.600000, size_mb=19.317213)
16
  ---
17
 
18
  # Detect-fire-winner
19
 
20
  Published winning miner converted into a library element.
21
 
22
+ - Source winner repo: `SuperBitDev/bev5`
23
+ - Source revision: `42f54c2a500a1f78032404887c29a0d77e3942b3`
24
  - Manifest element: `manak0/Detect-fire`
25
  - Element type: `Detect`
26
  - Objects: fire, smoke, fire extinguisher
27
+ - Runtime model type: `ultralytics-yolo`
chute_config.yml CHANGED
@@ -1,20 +1,20 @@
1
- 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[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
10
- min_vram_gb_per_gpu: 16
11
- include:
12
- - pro_6000
13
-
14
- Chute:
15
- timeout_seconds: 900
16
- concurrency: 4
17
- max_instances: 5
18
- scaling_threshold: 0.5
19
- shutdown_after_seconds: 288000
20
- tee: true
 
1
+ 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
10
+ min_vram_gb_per_gpu: 16
11
+ include:
12
+ - pro_6000
13
+
14
+ Chute:
15
+ timeout_seconds: 900
16
+ concurrency: 4
17
+ max_instances: 5
18
+ scaling_threshold: 0.5
19
+ shutdown_after_seconds: 288000
20
+ tee: true
main.py CHANGED
@@ -28,7 +28,7 @@ Miner = _load_local_miner_class()
28
 
29
 
30
  CLASS_NAMES = ['fire', 'smoke', 'fire extinguisher']
31
- MODEL_TYPE = 'onnxruntime'
32
 
33
 
34
  def _to_dict(value: Any) -> dict[str, Any]:
 
28
 
29
 
30
  CLASS_NAMES = ['fire', 'smoke', 'fire extinguisher']
31
+ MODEL_TYPE = 'ultralytics-yolo'
32
 
33
 
34
  def _to_dict(value: Any) -> dict[str, Any]:
miner.py CHANGED
The diff for this file is too large to render. See raw diff
 
pyproject.toml CHANGED
@@ -5,13 +5,14 @@ requires-python = ">=3.9"
5
 
6
  dependencies = [
7
  "numpy>=1.23",
8
- "onnxruntime[cuda,cudnn]>=1.16",
9
  "opencv-python>=4.7",
10
  "pillow>=9.5",
11
  "huggingface_hub>=0.19.4",
12
  "pydantic>=2.0",
13
  "pyyaml>=6.0",
14
  "aiohttp>=3.9",
15
- "torch",
16
- "torchvision",
 
17
  ]
 
5
 
6
  dependencies = [
7
  "numpy>=1.23",
8
+ "onnxruntime>=1.16",
9
  "opencv-python>=4.7",
10
  "pillow>=9.5",
11
  "huggingface_hub>=0.19.4",
12
  "pydantic>=2.0",
13
  "pyyaml>=6.0",
14
  "aiohttp>=3.9",
15
+ "torch==2.8.0",
16
+ "torchvision==0.23.0",
17
+ "torchaudio==2.8.0",
18
  ]
weights.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dbd2d9858bb969a4c3e83f95b2ff4bcbb34bb8add46b2bc6ac9fa72fb4966bf5
3
- size 19407313
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7f53c40f57cc11d3923f3ca78984725bee6131511466c8163ef21c6fd625bfa
3
+ size 19286315