henry000 commited on
Commit
9e143b2
Β·
1 Parent(s): 44abd6c

πŸ“ [Update] README Link & requirement

Browse files
.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.9, '3.10']
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
- build:
11
  runs-on: ubuntu-latest
12
 
13
  steps:
14
  - name: Checkout repository
15
- uses: actions/checkout@v2
16
 
17
  - name: Set up Python 3.10
18
- uses: actions/setup-python@v2
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
  ![GitHub License](https://img.shields.io/github/license/WongKinYiu/YOLO)
4
  ![WIP](https://img.shields.io/badge/status-WIP-orange)
5
- ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/WongKinYiu/YOLO/main.yaml)
 
6
 
7
  [![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/yolov9-learning-what-you-want-to-learn-using/real-time-object-detection-on-coco)](https://paperswithcode.com/sota/real-time-object-detection-on-coco)
8
 
 
2
 
3
  ![GitHub License](https://img.shields.io/github/license/WongKinYiu/YOLO)
4
  ![WIP](https://img.shields.io/badge/status-WIP-orange)
5
+ ![](https://img.shields.io/github/actions/workflow/status/WongKinYiu/YOLO/deploy.yaml)
6
+
7
 
8
  [![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/yolov9-learning-what-you-want-to-learn-using/real-time-object-detection-on-coco)](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 tqdm import tqdm
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 tqdm(image_annotations.items(), desc="Processing annotations"):
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