-
Notifications
You must be signed in to change notification settings - Fork 116
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
Modification of the definition of networks #18
Open
SeguinBe
wants to merge
63
commits into
doc_refactor
Choose a base branch
from
encoder_revamp
base: doc_refactor
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,378
−844
Open
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
28ad980
Update installation packages and installation instructions
SeguinBe 957cd58
Revamp of the network description and architecture in a more flexible…
SeguinBe ff1edd8
Removing useless files
SeguinBe a9e0ed7
dh_segment_train as a script
SeguinBe e0d6c5d
Correcting the deletion of the main script, oops...
SeguinBe cb1d8fc
Nicer labels for the progress bars
SeguinBe da1258a
Nicer handling of number of threads
SeguinBe 4de57fe
Removing code which has been made useless
SeguinBe 7e5ccb4
mainly docstring formatting
solivr ce214c2
changed :param: by :ivar:
solivr 62ec71d
Updating batchnorm training
SeguinBe cace550
Added MobileNetV2
SeguinBe ea11126
Documentation of exported model
SeguinBe 82a5f22
Fixed refactoring
91540f2
Merge pull request #19 from sriak/master
solivr 9889c7d
updated demo
solivr 4e00913
pip install
solivr 4f177b1
typo in attribute
solivr 932fa3c
corrected non exported segment_ids field
solivr c5a1965
sorting of TextLines in a TextRegion
solivr 346e2fb
force type to be int (for JSON export compatibility)
solivr 7c25b56
specific to int32 and int64 type
solivr 3eefba8
input csv file
solivr 455a8e9
via annotation processing
e-maud 811af9c
via annotation processing - typo
e-maud 48efe87
type correction
solivr f736aaa
added doc
solivr 7f65ad4
updated doc
solivr 4509bc5
updated installation doc
solivr e61079f
packages versions
solivr db46c35
detected contour should have at least 3 points
solivr 7c53e27
LatestExporter if no eval data is provided
solivr e07f996
update
solivr b090906
contour option in mask creation
solivr ba92f50
export regions coordinates to VIA compatible format
solivr fbb9350
doc and typos
solivr 600acaa
simlified via.py and updated doc
solivr 665af99
doc formatting
solivr 84ec4dd
parse attributes of TextRegion and TextLines 'custom' and 'type'
solivr 77bb4f3
remove git repo dependency
solivr 532131a
merging
solivr 909e8b1
corrected wrong argument names
solivr 6717332
wrong variable name
solivr 704087a
via example and doc formatting
solivr 04ce8b6
Correcting typo masks creation script
alix-tz 2264cf1
Merge pull request #26 from alix-tz/patch-1
solivr 1262b59
Fixing instruction
alix-tz 12d2759
Merge pull request #27 from alix-tz/patch-2
solivr 6fdfcbd
do not export attribute 'type' if it's empty
solivr 8fbd882
array to list of Point method
solivr 2af56f2
update parsing + get list of tags from xml
solivr 7100855
merge from master
SeguinBe 8deae44
miou metric
solivr 540eb36
to_json method for Page class
solivr 605a930
updated via helpers
solivr 6456a69
update packages version
solivr a072442
update to opencv 4.0
solivr fbad361
changelog
solivr 9de5ca7
fix tensorflow-gpu version
solivr 875c547
fixes #37
solivr 7f2a348
merge
SeguinBe de461a7
working version corrected
SeguinBe 1b36fca
formatting
solivr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
_MODEL = [ | ||
'inference_vgg16', | ||
'inference_resnet_v1_50', | ||
'inference_u_net', | ||
'vgg_16_fn', | ||
'resnet_v1_50_fn' | ||
'Encoder', | ||
'Decoder', | ||
'SimpleDecoder', | ||
] | ||
|
||
__all__ = _MODEL | ||
_PRETRAINED = [ | ||
'ResnetV1_50', | ||
'VGG16' | ||
] | ||
__all__ = _MODEL + _PRETRAINED | ||
|
||
from .model import * | ||
from .pretrained_models import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ class PredictionType: | |
MULTILABEL = 'MULTILABEL' | ||
|
||
@classmethod | ||
def parse(cls, prediction_type): | ||
def parse(cls, prediction_type) -> 'PredictionType': | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated to this diff, but I wonder if we use |
||
if prediction_type == 'CLASSIFICATION': | ||
return PredictionType.CLASSIFICATION | ||
elif prediction_type == 'REGRESSION': | ||
|
@@ -43,6 +43,14 @@ def check_params(self): | |
|
||
|
||
class ModelParams(BaseParams): | ||
""" | ||
|
||
:param encoder_name: | ||
:param encoder_params: | ||
:param decoder_name: | ||
:param decoder_params: | ||
:param n_classes: | ||
""" | ||
def __init__(self, **kwargs): | ||
self.encoder_name = kwargs.get('encoder_name', 'dh_segment.network.pretrained_models.ResnetV1_50') # type: str | ||
self.encoder_params = kwargs.get('encoder_params', dict()) # type: dict | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The output of the last
max_pool2d
is not returned, shouldn't it be ?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.
mmhh... good catch. In a way, it depends what we want to do with the model definition, it can make sense to keep the feature maps with the best resolution but the lower receptive field. But I think if we want to be consistent with what we had,
outputs
should have the pooled versions, thoughts?