Skip to content

Commit

Permalink
Version update
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrevmatias committed May 10, 2021
1 parent 3d89c26 commit de226d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def evaluate_detection_example():
mask_shape = (480, 640)

# Creating fake data
gt_bbox_1 = BBox(10, 10, 10, 10, 0)
pred_bbox_1 = BBox(10, 10, 10, 10, 0)
gt_bbox_1 = BBox(10, 10, 10, 10, 0, 1)
pred_bbox_1 = BBox(10, 10, 10, 10, 0, 1)

gt_bbox_2 = BBox(110, 110, 320, 280, 1)
pred_bbox_2 = BBox(70, 50, 240, 220, 1)
gt_bbox_2 = BBox(110, 110, 320, 280, 1, 1)
pred_bbox_2 = BBox(70, 50, 240, 220, 1, 1)

# Creating data suplier iterator
# It is not necessary here, but it's useful if you want to yield data
Expand Down
4 changes: 4 additions & 0 deletions lapixdl/evaluation/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def show_segmentations(

cmap_colors = __get_colors(cmap)

assert len(cmap_colors) >= len(class_names), "The color map length must be greater or equal the length of the class names."

rows = len(results)
fig, axes = plt.subplots(rows, 3)
if rows == 1:
Expand Down Expand Up @@ -140,6 +142,8 @@ def show_detections(results: List[Result[List[BBox]]],

cmap_colors = __get_colors(cmap)

assert len(cmap_colors) >= len(class_names), "The color map length must be greater or equal the length of the class names."

rows = len(results)
fig, axes = plt.subplots(rows, 3)
if rows == 1:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
name='lapixdl',
packages=find_packages(exclude=['tests']),
version='0.7.12',
version='0.7.13',
description='Utils for Computer Vision Deep Learning research',

long_description=long_description,
Expand Down

0 comments on commit de226d9

Please sign in to comment.