Skip to content

Commit

Permalink
pre-commit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klemen1999 committed Feb 24, 2025
1 parent 401e612 commit 07dc932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datadreamer/dataset_annotation/owlv2_annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ def release(self, empty_cuda_cache: bool = False) -> None:

# Image-driven annotation
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
im = Image.open(requests.get(url, stream=True).raw) # nosemgrep
im = Image.open(requests.get(url, stream=True).raw) # nosemgrep

Check failure on line 413 in datadreamer/dataset_annotation/owlv2_annotator.py

View workflow job for this annotation

GitHub Actions / semgrep/ci

Semgrep Issue

Detected a request using 'http://'. This request will be unencrypted, and attackers could listen into traffic on the network and be able to obtain sensitive information. Use 'https://' instead.
query_url = "http://images.cocodataset.org/val2017/000000058111.jpg"
query_image = Image.open(requests.get(query_url, stream=True).raw) # nosemgrep
query_image = Image.open(requests.get(query_url, stream=True).raw) # nosemgrep

Check failure on line 415 in datadreamer/dataset_annotation/owlv2_annotator.py

View workflow job for this annotation

GitHub Actions / semgrep/ci

Semgrep Issue

Detected a request using 'http://'. This request will be unencrypted, and attackers could listen into traffic on the network and be able to obtain sensitive information. Use 'https://' instead.

final_boxes, final_scores, final_labels = annotator.annotate_batch(
[im], [query_image], conf_threshold=0.9
Expand Down

0 comments on commit 07dc932

Please sign in to comment.