-
Notifications
You must be signed in to change notification settings - Fork 212
Conversation
Codecov Report
@@ Coverage Diff @@
## master #239 +/- ##
==========================================
- Coverage 88.32% 88.26% -0.06%
==========================================
Files 68 74 +6
Lines 3288 3563 +275
==========================================
+ Hits 2904 3145 +241
- Misses 384 418 +34
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hello @edgarriba! Thanks for updating this PR.
Comment last updated at 2021-05-10 14:14:49 UTC |
flash/vision/segmentation/model.py
Outdated
@SemanticSegmentation.backbones(name="torchvision/fcn_resnet50") | ||
def fn(pretrained: bool, num_classes: int): | ||
import torchvision | ||
model: nn.Module = torchvision.models.segmentation.fcn_resnet50(pretrained=pretrained, num_classes=num_classes) | ||
return model |
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.
maybe only register this if torchvision is installed?
flash/vision/segmentation/data.py
Outdated
@@ -18,38 +31,14 @@ | |||
from flash.data.process import Preprocess | |||
from flash.utils.imports import _KORNIA_AVAILABLE, _MATPLOTLIB_AVAILABLE | |||
|
|||
from . import transforms as T |
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.
Can we stay consistent with avoiding relative imports here?
341595e
to
7343887
Compare
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.
LGTM 😃
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.
Overall looks good ! Small nits
Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: thomas chaton <thomas@grid.ai>
test_transform=test_transform, | ||
predict_transform=predict_transform, | ||
data_sources={DefaultDataSources.PATHS: SemanticSegmentationPathsDataSource()}, | ||
default_data_source=DefaultDataSources.PATHS, |
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.
@ethanwharris cannot this be overwritten by data_sources
key ?
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.
LGTM !
What does this PR do?
This PR implements semantic segmentation task. It includes the following data structures:
SemantincSegmentationPreprocess
SemantincSegmentationData
SemantincSegmentation
some results:
TODO:
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃