Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update black version #877

Merged
merged 2 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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