Skip to content

Commit 2e64cb0

Browse files
authored
Fixing examples for release 0.12.0 (#120)
This addresses some spelling errors, and also removes the "kernel crashed" error message from the saved notebooks. Also fixes an error in Images class, due to the new API changes.
1 parent 492c7df commit 2e64cb0

File tree

4 files changed

+1049
-137
lines changed

4 files changed

+1049
-137
lines changed

aperturedb/Images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ def __retrieve_bounding_boxes(self, index):
265265
"_ref": 2,
266266
"blobs": False,
267267
"coordinates": True,
268-
"labels": True,
269-
"bounds": True,
268+
"labels": True
270269
}
271270
}]
272271

@@ -286,6 +285,7 @@ def __retrieve_bounding_boxes(self, index):
286285

287286
except:
288287
print(self.db_connector.get_last_response_str())
288+
raise
289289

290290
def total_results(self):
291291

examples/CocoDataPytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def generate_query(self, idx: int):
4141
bbox = meta_info["bbox"]
4242
q.append({
4343
"AddBoundingBox": {
44-
"image": 1,
44+
"image_ref": 1,
4545
"rectangle": {
4646
"x": int(bbox[0]),
4747
"y": int(bbox[1]),

examples/image_classification/pytorch_classification.ipynb

Lines changed: 930 additions & 33 deletions
Large diffs are not rendered by default.

examples/loaders_101/loaders.ipynb

Lines changed: 116 additions & 101 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)