Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
MLAir
Commits
28e50b5f
Commit
28e50b5f
authored
5 years ago
by
Felix Kleinert
Browse files
Options
Downloads
Patches
Plain Diff
related to
#59
add block name to Concatenate layers
parent
029ffbb0
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!59
Develop
,
!48
Felix issue059 refac naming of concat layers in inception
Pipeline
#29819
passed
5 years ago
Stage: test
Stage: pages
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/model_modules/inception_model.py
+3
-1
3 additions, 1 deletion
src/model_modules/inception_model.py
with
3 additions
and
1 deletion
src/model_modules/inception_model.py
+
3
−
1
View file @
28e50b5f
...
@@ -153,6 +153,7 @@ class InceptionModelBase:
...
@@ -153,6 +153,7 @@ class InceptionModelBase:
self
.
number_of_blocks
+=
1
self
.
number_of_blocks
+=
1
self
.
part_of_block
=
0
self
.
part_of_block
=
0
tower_build
=
{}
tower_build
=
{}
block_name
=
f
"
Block_
{
self
.
number_of_blocks
}
"
for
part
,
part_settings
in
tower_conv_parts
.
items
():
for
part
,
part_settings
in
tower_conv_parts
.
items
():
tower_build
[
part
]
=
self
.
create_conv_tower
(
input_x
,
**
part_settings
,
**
kwargs
)
tower_build
[
part
]
=
self
.
create_conv_tower
(
input_x
,
**
part_settings
,
**
kwargs
)
if
'
max_pooling
'
in
tower_pool_parts
.
keys
():
if
'
max_pooling
'
in
tower_pool_parts
.
keys
():
...
@@ -165,7 +166,8 @@ class InceptionModelBase:
...
@@ -165,7 +166,8 @@ class InceptionModelBase:
tower_build
[
'
maxpool
'
]
=
self
.
create_pool_tower
(
input_x
,
**
tower_pool_parts
,
**
kwargs
)
tower_build
[
'
maxpool
'
]
=
self
.
create_pool_tower
(
input_x
,
**
tower_pool_parts
,
**
kwargs
)
tower_build
[
'
avgpool
'
]
=
self
.
create_pool_tower
(
input_x
,
**
tower_pool_parts
,
**
kwargs
,
max_pooling
=
False
)
tower_build
[
'
avgpool
'
]
=
self
.
create_pool_tower
(
input_x
,
**
tower_pool_parts
,
**
kwargs
,
max_pooling
=
False
)
block
=
keras
.
layers
.
concatenate
(
list
(
tower_build
.
values
()),
axis
=
3
)
block
=
keras
.
layers
.
concatenate
(
list
(
tower_build
.
values
()),
axis
=
3
,
name
=
block_name
+
"
_Co
"
)
return
block
return
block
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment