Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final detection layer #96

Merged
merged 12 commits into from
Aug 25, 2017
Merged

Conversation

jhung0
Copy link
Contributor

@jhung0 jhung0 commented Aug 24, 2017

Right now the model's output isn't exactly the boxes you'd be interested in, so this layer should output those boxes/labels.
I'm not sure what a good name would be for it though.

@codecov-io
Copy link

codecov-io commented Aug 24, 2017

Codecov Report

Merging #96 into master will increase coverage by 4.06%.
The diff coverage is 95.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #96      +/-   ##
==========================================
+ Coverage   75.17%   79.24%   +4.06%     
==========================================
  Files          25       26       +1     
  Lines         721      766      +45     
==========================================
+ Hits          542      607      +65     
+ Misses        179      159      -20
Impacted Files Coverage Δ
...s_rcnn/layers/object_detection/_object_proposal.py 95.83% <100%> (-1.61%) ⬇️
keras_rcnn/layers/__init__.py 100% <100%> (ø) ⬆️
keras_rcnn/backend/common.py 94.57% <100%> (+1.64%) ⬆️
keras_rcnn/layers/detection.py 92.3% <92.3%> (ø)
keras_rcnn/layers/losses/_rcnn.py 95.34% <0%> (+61.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d782b80...c3e7077. Read the comment docs.

return [(1, None, 4), (1, None, 3)]

def compute_mask(self, inputs, mask=None):
return 2 * [None]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a newline



def compute_output_shape(self, input_shape):
return [(1, None, 4), (1, None, 3)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 should be None (or input_shape[0])


return [keras.backend.expand_dims(pred_boxes, 0), keras.backend.expand_dims(pred_scores, 0)]


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra newline

@0x00b1 0x00b1 merged commit c7b51b1 into broadinstitute:master Aug 25, 2017
@jhung0 jhung0 deleted the final_detection_layer branch January 24, 2018 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants