Unverified Commit 91322a54 authored by Nikolay Shebanov's avatar Nikolay Shebanov Committed by GitHub

Fix BoxList constructor call in README.md

parent 5386f3c5
...@@ -163,7 +163,7 @@ class MyDataset(object): ...@@ -163,7 +163,7 @@ class MyDataset(object):
labels = torch.tensor([10, 20]) labels = torch.tensor([10, 20])
# create a BoxList from the boxes # create a BoxList from the boxes
boxlist = BoxList(boxes, size=image.size, mode="xyxy") boxlist = BoxList(boxes, image.size, mode="xyxy")
# add the labels to the boxlist # add the labels to the boxlist
boxlist.add_field("labels", labels) boxlist.add_field("labels", labels)
......
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