Skip to content

Commit

Permalink
minor commit for v0.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
SilvioGiancola committed Sep 6, 2021
1 parent 6b93b81 commit 0a92792
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ from cloudlabeling import cloudlabeling

cloud_labeler = cloudlabeling.CloudLabeling()

results = cloud_labeler.infer_remotely(image_path, project_id="MSCOCO")
results = cloud_labeler.infer_remotely(image_path, project_id="MSCOCO", user_token=<token_from_cloudlabeling.org>)
```

Results output in JSON format
Expand Down
2 changes: 1 addition & 1 deletion cloudlabeling/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

__version_info__ = ('0', '0', '11')
__version_info__ = ('0', '0', '13')
__version__ = '.'.join(__version_info__)
__authors__ = "Silvio Giancola"
__authors_username__ = "giancos"
Expand Down
4 changes: 2 additions & 2 deletions cloudlabeling/cloudlabeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def infer_remotely(self, image_path, project_id="MSCOCO", request_type="image/jp

# Arrange results
new_results = []
for box, label, label_idx, score in zip(results["boxes"], results["labels_words"], results["labels_idx"], results["scores"]):
new_results.append({"box":box, "label":label, "label_idx":label_idx, "confidence":score})
for box, label, score in zip(results["boxes"], results["labels_words"], results["scores"]):
new_results.append({"box":box, "label":label, "confidence":score})
# list of labels
labels =list(set([r["label"] for r in new_results]))

Expand Down

0 comments on commit 0a92792

Please sign in to comment.