-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Pipelines for FBA #209
Pipelines for FBA #209
Conversation
Codecov Report
@@ Coverage Diff @@
## master #209 +/- ##
=======================================
Coverage 82.27% 82.27%
=======================================
Files 145 145
Lines 6691 6732 +41
Branches 997 1004 +7
=======================================
+ Hits 5505 5539 +34
- Misses 1083 1086 +3
- Partials 103 107 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
trimap[trimap_o == 255, 1] = 255 | ||
clicks = np.zeros((h, w, 6)) | ||
for k in range(2): | ||
if (np.count_nonzero(trimap[:, :, k]) > 0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np.any(trimap[:, :, k])
Please add unittests for this function |
a438fb9
to
150ce47
Compare
Add repr |
trimap2 = np.zeros((h, w, 2), dtype=np.uint8) | ||
trimap2[trimap == 0, 0] = 255 | ||
trimap2[trimap == 255, 1] = 255 | ||
trimap_trans = np.zeros((h, w, 6), dtype=np.uint8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is float32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Sorry.
|
||
@PIPELINES.register_module() | ||
class TransformTrimap: | ||
"""Generate two-channel transformed trimap. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not two channel
thanks! |
* Added pipelines for FBA. * Modified. * Added test. * Tiny. * Added __repr__ funcs. * Added use_cache. * Added test. * Tiny. * Added unittest. * Speed up via broadcasting. * Tiny. * Use online cache. * Tiny. * Tiny. * Simplified. * Tiny。 * Tiny. * Tiny. * Tiny. * Polished the doc string.
No description provided.