Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
eab82b2d
Commit
eab82b2d
authored
Aug 06, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
691375cd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
examples/FasterRCNN/dataset/coco.py
examples/FasterRCNN/dataset/coco.py
+1
-1
examples/FasterRCNN/dataset/dataset.py
examples/FasterRCNN/dataset/dataset.py
+1
-0
No files found.
examples/FasterRCNN/dataset/coco.py
View file @
eab82b2d
...
...
@@ -162,7 +162,7 @@ class COCODetection(DatasetSplit):
y2
=
min
(
max
(
y2
,
0
),
height
)
w
,
h
=
x2
-
x1
,
y2
-
y1
# Require non-zero seg area and more than 1x1 box size
if
obj
[
'area'
]
>
1
and
w
>
0
and
h
>
0
and
w
*
h
>=
4
:
if
obj
[
'area'
]
>
1
and
w
>
0
and
h
>
0
:
all_boxes
.
append
([
x1
,
y1
,
x2
,
y2
])
all_cls
.
append
(
self
.
COCO_id_to_category_id
.
get
(
obj
[
'category_id'
],
obj
[
'category_id'
]))
iscrowd
=
obj
.
get
(
"iscrowd"
,
0
)
...
...
examples/FasterRCNN/dataset/dataset.py
View file @
eab82b2d
...
...
@@ -25,6 +25,7 @@ class DatasetSplit():
Each list of numpy arrays corresponds to the mask for one instance.
Each numpy array in the list is a polygon of shape Nx2,
because one mask can be represented by N polygons.
Each row in the Nx2 array is a (x, y) coordinate.
If your segmentation annotations are originally masks rather than polygons,
either convert it, or the augmentation will need to be changed or skipped accordingly.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment