Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

add dcn from mmdetection #693

Merged
merged 33 commits into from
Apr 19, 2019
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f93b369
make pixel indexes 0-based for bounding box in pascal voc dataset
zimenglan-sysu-512 Nov 25, 2018
45e4ba8
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Nov 29, 2018
86caae2
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Dec 5, 2018
a46bfb9
replacing all instances of torch.distributed.deprecated with torch.di…
zimenglan-sysu-512 Dec 5, 2018
7bbf46f
replacing all instances of torch.distributed.deprecated with torch.di…
zimenglan-sysu-512 Dec 5, 2018
7c8cf41
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Dec 6, 2018
07a0f9c
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Dec 26, 2018
6f09a6f
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Jan 11, 2019
c4e3245
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Jan 15, 2019
baba31f
add GroupNorm
zimenglan-sysu-512 Jan 15, 2019
4877e36
add GroupNorm -- sort out yaml files
zimenglan-sysu-512 Jan 16, 2019
d4ae039
use torch.nn.GroupNorm instead, replace 'use_gn' with 'conv_block' an…
zimenglan-sysu-512 Jan 18, 2019
333864d
modification on 'group_norm' and 'conv_with_kaiming_uniform' function
zimenglan-sysu-512 Jan 18, 2019
58da4d5
modification on yaml files in configs/gn_baselines/ and reduce the am…
zimenglan-sysu-512 Jan 21, 2019
1798e63
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Jan 21, 2019
ecc68c4
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Jan 22, 2019
02a86f3
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Jan 23, 2019
9808a21
use 'kaiming_uniform' to initialize resnet, disable gn after fc layer…
zimenglan-sysu-512 Jan 23, 2019
d1ce06e
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Jan 28, 2019
4de3488
agnostic-regression for bbox
zimenglan-sysu-512 Jan 28, 2019
52be8d7
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Feb 1, 2019
288e16f
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Feb 5, 2019
d91ff2d
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Feb 10, 2019
d177092
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Feb 15, 2019
a52e159
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Feb 15, 2019
f7ad55e
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Feb 19, 2019
483fca8
please set 'STRIDE_IN_1X1' to be 'False' when backbone use GN
zimenglan-sysu-512 Feb 19, 2019
f5786e9
merge from upstream/master
zimenglan-sysu-512 Feb 25, 2019
d2d55f9
add README.md for GN
zimenglan-sysu-512 Feb 26, 2019
fc08cdd
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Mar 6, 2019
db01edb
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Apr 1, 2019
ca7276d
Merge remote-tracking branch 'upstream/master'
zimenglan-sysu-512 Apr 18, 2019
eee83fc
add dcn from mmdetection
zimenglan-sysu-512 Apr 19, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
make pixel indexes 0-based for bounding box in pascal voc dataset
zimenglan-sysu-512 committed Nov 25, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f93b369282657c4a338d6cc947e7ebb213a20c1a
20 changes: 11 additions & 9 deletions maskrcnn_benchmark/data/datasets/voc.py
Original file line number Diff line number Diff line change
@@ -88,22 +88,24 @@ def _preprocess_annotation(self, target):
boxes = []
gt_classes = []
difficult_boxes = []
TO_REMOVE = 1

for obj in target.iter("object"):
difficult = int(obj.find("difficult").text) == 1
if not self.keep_difficult and difficult:
continue
name = obj.find("name").text.lower().strip()
bb = obj.find("bndbox")
# Make pixel indexes 0-based
# Refer to "https://github.com/rbgirshick/py-faster-rcnn/blob/master/lib/datasets/pascal_voc.py#L208-L211"
box = [
bb.find("xmin").text,
bb.find("ymin").text,
bb.find("xmax").text,
bb.find("ymax").text,
]
bndbox = tuple(
map(
int,
[
bb.find("xmin").text,
bb.find("ymin").text,
bb.find("xmax").text,
bb.find("ymax").text,
],
)
map(lambda x: x - TO_REMOVE, list(map(int, box)))
)

boxes.append(bndbox)