π [Update] README Link & requirement
Browse files- .github/workflows/deploy.yaml +1 -1
- .github/workflows/develop.yaml +4 -4
- README.md +2 -1
- requirements-dev.txt +5 -0
- requirements.txt +0 -3
- yolo/tools/data_conversion.py +2 -2
.github/workflows/deploy.yaml
CHANGED
@@ -13,7 +13,7 @@ jobs:
|
|
13 |
strategy:
|
14 |
matrix:
|
15 |
operating-system: [ubuntu-latest, macos-latest]
|
16 |
-
python-version: [3.8, 3.
|
17 |
fail-fast: false
|
18 |
|
19 |
steps:
|
|
|
13 |
strategy:
|
14 |
matrix:
|
15 |
operating-system: [ubuntu-latest, macos-latest]
|
16 |
+
python-version: [3.8, '3.10', '3.12']
|
17 |
fail-fast: false
|
18 |
|
19 |
steps:
|
.github/workflows/develop.yaml
CHANGED
@@ -7,15 +7,15 @@ on:
|
|
7 |
branches: [main]
|
8 |
|
9 |
jobs:
|
10 |
-
|
11 |
runs-on: ubuntu-latest
|
12 |
|
13 |
steps:
|
14 |
- name: Checkout repository
|
15 |
-
uses: actions/checkout@
|
16 |
|
17 |
- name: Set up Python 3.10
|
18 |
-
uses: actions/setup-python@
|
19 |
with:
|
20 |
python-version: '3.10'
|
21 |
|
@@ -30,7 +30,7 @@ jobs:
|
|
30 |
- name: Install dependencies
|
31 |
run: |
|
32 |
python -m pip install --upgrade pip
|
33 |
-
pip install -r requirements.txt
|
34 |
|
35 |
- name: Install pre-commit
|
36 |
run: pip install pre-commit
|
|
|
7 |
branches: [main]
|
8 |
|
9 |
jobs:
|
10 |
+
build_and_test:
|
11 |
runs-on: ubuntu-latest
|
12 |
|
13 |
steps:
|
14 |
- name: Checkout repository
|
15 |
+
uses: actions/checkout@v3
|
16 |
|
17 |
- name: Set up Python 3.10
|
18 |
+
uses: actions/setup-python@v4
|
19 |
with:
|
20 |
python-version: '3.10'
|
21 |
|
|
|
30 |
- name: Install dependencies
|
31 |
run: |
|
32 |
python -m pip install --upgrade pip
|
33 |
+
pip install -r requirements-dev.txt
|
34 |
|
35 |
- name: Install pre-commit
|
36 |
run: pip install pre-commit
|
README.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2 |
|
3 |

|
4 |

|
5 |
-
](https://paperswithcode.com/sota/real-time-object-detection-on-coco)
|
8 |
|
|
|
2 |
|
3 |

|
4 |

|
5 |
+

|
6 |
+
|
7 |
|
8 |
[](https://paperswithcode.com/sota/real-time-object-detection-on-coco)
|
9 |
|
requirements-dev.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
-r requirements.txt
|
2 |
+
pytest
|
3 |
+
pytest-cov
|
4 |
+
pre-commit
|
5 |
+
pycocotools
|
requirements.txt
CHANGED
@@ -6,11 +6,8 @@ numpy
|
|
6 |
opencv-python
|
7 |
Pillow
|
8 |
pycocotools
|
9 |
-
pytest
|
10 |
-
pyyaml
|
11 |
requests
|
12 |
rich
|
13 |
torch
|
14 |
torchvision
|
15 |
-
tqdm
|
16 |
wandb
|
|
|
6 |
opencv-python
|
7 |
Pillow
|
8 |
pycocotools
|
|
|
|
|
9 |
requests
|
10 |
rich
|
11 |
torch
|
12 |
torchvision
|
|
|
13 |
wandb
|
yolo/tools/data_conversion.py
CHANGED
@@ -2,7 +2,7 @@ import json
|
|
2 |
from pathlib import Path
|
3 |
from typing import Dict, List, Optional
|
4 |
|
5 |
-
from
|
6 |
|
7 |
|
8 |
def discretize_categories(categories: List[Dict[str, int]]) -> Dict[int, int]:
|
@@ -23,7 +23,7 @@ def process_annotations(
|
|
23 |
"""
|
24 |
Process and save annotations to files, with option to remap category IDs.
|
25 |
"""
|
26 |
-
for image_id, annotations in
|
27 |
file_path = output_dir / "{image_id:0>12}.txt"
|
28 |
if not annotations:
|
29 |
continue
|
|
|
2 |
from pathlib import Path
|
3 |
from typing import Dict, List, Optional
|
4 |
|
5 |
+
from rich.progress import track
|
6 |
|
7 |
|
8 |
def discretize_categories(categories: List[Dict[str, int]]) -> Dict[int, int]:
|
|
|
23 |
"""
|
24 |
Process and save annotations to files, with option to remap category IDs.
|
25 |
"""
|
26 |
+
for image_id, annotations in track(image_annotations.items(), description="Processing annotations"):
|
27 |
file_path = output_dir / "{image_id:0>12}.txt"
|
28 |
if not annotations:
|
29 |
continue
|