SickBoy commited on
Commit
7f12ca8
·
1 Parent(s): ef8dae7

Update layout_documents.py

Browse files
Files changed (1) hide show
  1. layout_documents.py +4 -4
layout_documents.py CHANGED
@@ -16,10 +16,10 @@ def load_image(image_path):
16
 
17
  def normalize_bbox(bbox, size):
18
  return [
19
- int(1000 * bbox[0] / size[0]),
20
- int(1000 * bbox[1] / size[1]),
21
- int(1000 * bbox[2] / size[0]),
22
- int(1000 * bbox[3] / size[1]),
23
  ]
24
 
25
  logger = datasets.logging.get_logger(__name__)
 
16
 
17
  def normalize_bbox(bbox, size):
18
  return [
19
+ int(bbox[0]),
20
+ int(bbox[1]),
21
+ int(bbox[2]),
22
+ int(bbox[3]),
23
  ]
24
 
25
  logger = datasets.logging.get_logger(__name__)