Updates for coverage
Browse files- .github/workflows/testing.yml +1 -1
- README.rst +2 -2
- app.py +1 -1
.github/workflows/testing.yml
CHANGED
|
@@ -48,7 +48,7 @@ jobs:
|
|
| 48 |
|
| 49 |
- name: Run coverage
|
| 50 |
run: |
|
| 51 |
-
coverage xml
|
| 52 |
|
| 53 |
- name: Upload coverage to Codecov
|
| 54 |
uses: codecov/codecov-action@v1.2.1
|
|
|
|
| 48 |
|
| 49 |
- name: Run coverage
|
| 50 |
run: |
|
| 51 |
+
coverage xml
|
| 52 |
|
| 53 |
- name: Upload coverage to Codecov
|
| 54 |
uses: codecov/codecov-action@v1.2.1
|
README.rst
CHANGED
|
@@ -126,7 +126,7 @@ The code base has been formatted by Brunette, which is a fork and more configura
|
|
| 126 |
:target: https://github.com/WildMeOrg/scoutbot/actions/workflows/testing.yml
|
| 127 |
:alt: GitHub CI
|
| 128 |
|
| 129 |
-
.. |Codecov| image:: https://codecov.io/gh/WildMeOrg/scoutbot/branch/main/graph/badge.svg?token=
|
| 130 |
:target: https://codecov.io/gh/WildMeOrg/scoutbot
|
| 131 |
:alt: Codecov
|
| 132 |
|
|
@@ -142,6 +142,6 @@ The code base has been formatted by Brunette, which is a fork and more configura
|
|
| 142 |
:target: https://wildme-scoutbot.readthedocs.io/en/latest/?badge=latest
|
| 143 |
:alt: ReadTheDocs
|
| 144 |
|
| 145 |
-
.. |Huggingface| image:: https://img.shields.io/badge/HuggingFace-
|
| 146 |
:target: https://huggingface.co/spaces/WildMeOrg/scoutbot
|
| 147 |
:alt: Huggingface
|
|
|
|
| 126 |
:target: https://github.com/WildMeOrg/scoutbot/actions/workflows/testing.yml
|
| 127 |
:alt: GitHub CI
|
| 128 |
|
| 129 |
+
.. |Codecov| image:: https://codecov.io/gh/WildMeOrg/scoutbot/branch/main/graph/badge.svg?token=FR6ITMWQNI
|
| 130 |
:target: https://codecov.io/gh/WildMeOrg/scoutbot
|
| 131 |
:alt: Codecov
|
| 132 |
|
|
|
|
| 142 |
:target: https://wildme-scoutbot.readthedocs.io/en/latest/?badge=latest
|
| 143 |
:alt: ReadTheDocs
|
| 144 |
|
| 145 |
+
.. |Huggingface| image:: https://img.shields.io/badge/HuggingFace-running-success
|
| 146 |
:target: https://huggingface.co/spaces/WildMeOrg/scoutbot
|
| 147 |
:alt: Huggingface
|
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def predict(filepath, wic_thresh, loc_thresh, nms_thresh):
|
|
| 44 |
)
|
| 45 |
color = (255, 0, 0)
|
| 46 |
img = cv2.rectangle(img, point1, point2, color, 2)
|
| 47 |
-
loc_detections.append(f'{detect.class_label}: {detect.confidence:0.
|
| 48 |
loc_detections = '\n'.join(loc_detections)
|
| 49 |
|
| 50 |
return img, wic_confidence, loc_detections
|
|
|
|
| 44 |
)
|
| 45 |
color = (255, 0, 0)
|
| 46 |
img = cv2.rectangle(img, point1, point2, color, 2)
|
| 47 |
+
loc_detections.append(f'{detect.class_label}: {detect.confidence:0.04f}')
|
| 48 |
loc_detections = '\n'.join(loc_detections)
|
| 49 |
|
| 50 |
return img, wic_confidence, loc_detections
|