Commit c8f3e3b3 authored by Mitchell Below's avatar Mitchell Below Committed by Francisco Massa

Update ABSTRACTIONS.md (#82)

Replace BoxList argument size with image_size.
parent 0e53eabe
...@@ -49,7 +49,7 @@ boxes = [ ...@@ -49,7 +49,7 @@ boxes = [
[10, 10, 50, 50] [10, 10, 50, 50]
] ]
# create a BoxList with 3 boxes # create a BoxList with 3 boxes
bbox = BoxList(boxes, size=(width, height), mode='xyxy') bbox = BoxList(boxes, image_size=(width, height), mode='xyxy')
# perform some box transformations, has similar API as PIL.Image # perform some box transformations, has similar API as PIL.Image
bbox_scaled = bbox.resize((width * 2, height * 3)) bbox_scaled = bbox.resize((width * 2, height * 3))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment