Unverified Commit 3308cd92 authored by Soumith Chintala's avatar Soumith Chintala Committed by GitHub

Merge pull request #41 from killthekitten/patch-2

Fix BoxList constructor call in README.md
parents 5386f3c5 91322a54
......@@ -163,7 +163,7 @@ class MyDataset(object):
labels = torch.tensor([10, 20])
# 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
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