Skip to content

Commit

Permalink
Merge branch 'master' into add_gradcam
Browse files Browse the repository at this point in the history
  • Loading branch information
pourmand1376 committed May 6, 2023
2 parents d48d339 + c3e4e94 commit 5307867
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.3.2
hooks:
- id: pyupgrade
name: Upgrade code
Expand All @@ -35,7 +35,7 @@ repos:
name: Sort imports

- repo: https://github.com/google/yapf
rev: v0.32.0
rev: v0.33.0
hooks:
- id: yapf
name: YAPF formatting
Expand Down
5 changes: 3 additions & 2 deletions models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@ def __init__(self, weights='yolov5s.pt', device=torch.device('cpu'), dnn=False,
model.half() if fp16 else model.float()
if extra_files['config.txt']: # load metadata dict
d = json.loads(extra_files['config.txt'],
object_hook=lambda d: {int(k) if k.isdigit() else k: v
for k, v in d.items()})
object_hook=lambda d: {
int(k) if k.isdigit() else k: v
for k, v in d.items()})
stride, names = int(d['stride']), d['names']
elif dnn: # ONNX OpenCV DNN
LOGGER.info(f'Loading {w} for ONNX OpenCV DNN inference...')
Expand Down
2 changes: 1 addition & 1 deletion utils/google_app_engine/additional_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# add these requirements in your app on top of the existing ones
pip==21.1
Flask==1.0.2
Flask==2.3.2
gunicorn==19.10.0
werkzeug>=2.2.3 # not directly required, pinned by Snyk to avoid a vulnerability

0 comments on commit 5307867

Please sign in to comment.