Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -12,7 +12,7 @@ def find_pad_idx(boxes):
|
|
12 |
|
13 |
|
14 |
|
15 |
-
def apply_mask_on_token_bbox(boxes, tokenized_words, only_actual_words = False, span = 4, proportion_to_mask = 0.15, special_token = 103):
|
16 |
|
17 |
# '''
|
18 |
# code taken from here: https://www.geeksforgeeks.org/python-non-overlapping-random-ranges/
|
|
|
12 |
|
13 |
|
14 |
|
15 |
+
# def apply_mask_on_token_bbox(boxes, tokenized_words, only_actual_words = False, span = 4, proportion_to_mask = 0.15, special_token = 103):
|
16 |
|
17 |
# '''
|
18 |
# code taken from here: https://www.geeksforgeeks.org/python-non-overlapping-random-ranges/
|