Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
improved fruits and background merging
Browse files Browse the repository at this point in the history
  • Loading branch information
mcreng committed Jan 14, 2019
1 parent 4f4cb5f commit c0e8896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion im_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_bounding_box(img):
ms_colors = [(0, 187, 255), (0, 187, 124),
(241, 161, 0), (20, 83, 246)] # in BGR
color_idx = np.random.randint(0, 4) # [0, 4)
output[output[:, :, 3] == 0] = (*ms_colors[color_idx], 255)
output[output[:, :, 3] <= 100] = (*ms_colors[color_idx], 255)
return output, annos


Expand Down

0 comments on commit c0e8896

Please sign in to comment.