Skip to content

Commit

Permalink
update black version (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcakyon authored May 15, 2023
1 parent 38946fa commit 0077a14
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pyyaml
fire
terminaltables
requests
click==8.0.4
click
12 changes: 6 additions & 6 deletions sahi/scripts/coco_error_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ def _analyze_individual_category(k, cocoDt, cocoGt, catId, iou_type, areas=None,
cocoEval.params.useCats = 1
if areas:
cocoEval.params.areaRng = [
[0 ** 2, areas[2]],
[0 ** 2, areas[0]],
[0**2, areas[2]],
[0**2, areas[0]],
[areas[0], areas[1]],
[areas[1], areas[2]],
]
Expand All @@ -271,8 +271,8 @@ def _analyze_individual_category(k, cocoDt, cocoGt, catId, iou_type, areas=None,
cocoEval.params.useCats = 1
if areas:
cocoEval.params.areaRng = [
[0 ** 2, areas[2]],
[0 ** 2, areas[0]],
[0**2, areas[2]],
[0**2, areas[0]],
[areas[0], areas[1]],
[areas[1], areas[2]],
]
Expand Down Expand Up @@ -328,8 +328,8 @@ def _analyse_results(
cocoEval.params.maxDets = [max_detections]
if areas is not None:
cocoEval.params.areaRng = [
[0 ** 2, areas[2]],
[0 ** 2, areas[0]],
[0**2, areas[2]],
[0**2, areas[0]],
[areas[0], areas[1]],
[areas[1], areas[2]],
]
Expand Down
4 changes: 2 additions & 2 deletions sahi/scripts/coco_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def evaluate_core(
cocoEval = COCOeval(cocoGt, cocoDt, iou_type)
if areas is not None:
cocoEval.params.areaRng = [
[0 ** 2, areas[2]],
[0 ** 2, areas[0]],
[0**2, areas[2]],
[0**2, areas[0]],
[areas[0], areas[1]],
[areas[1], areas[2]],
]
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def get_version():
python_requires=">=3.6",
install_requires=get_requirements(),
extras_require={
"tests": ["mmdet==2.25.1", "pycocotools==2.0.5"],
"tests": ["mmdet==2.28.1", "pycocotools==2.0.6"],
"dev": [
"black==21.7b0",
"black==22.3.0",
"flake8==3.9.2",
"importlib-metadata>=1.1.0,<4.3;python_version<'3.8'",
"isort==5.9.2",
Expand All @@ -51,7 +51,6 @@ def get_version():
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down

0 comments on commit 0077a14

Please sign in to comment.