Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
python3-imagej-tiff
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
python3-imagej-tiff
Commits
8fdedcd3
Commit
8fdedcd3
authored
Aug 11, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing
parent
4ecf58cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
nn_ds_neibs1_tmp.py
nn_ds_neibs1_tmp.py
+5
-1
No files found.
nn_ds_neibs1_tmp.py
View file @
8fdedcd3
...
@@ -453,7 +453,9 @@ def network_summary_w_b(scope, in_shape, out_shape, layout, index, network_scope
...
@@ -453,7 +453,9 @@ def network_summary_w_b(scope, in_shape, out_shape, layout, index, network_scope
#grid = tf.constant([tf.reduce_max(w),tf.reduce_min(w),tf.reduce_min(w)],dtype=tf.float32,name="GRID")
#grid = tf.constant([tf.reduce_max(w),tf.reduce_min(w),tf.reduce_min(w)],dtype=tf.float32,name="GRID")
# red - the values will be automapped to 0-255 range
# red - the values will be automapped to 0-255 range
grid
=
tf
.
stack
([
tf
.
reduce_max
(
w
),
tf
.
reduce_min
(
w
),
tf
.
reduce_min
(
w
)])
# grid = tf.stack([tf.reduce_max(w),tf.reduce_min(w),tf.reduce_min(w)])
# yellow - the values will be automapped to 0-255 range
grid
=
tf
.
stack
([
tf
.
reduce_max
(
w
),
tf
.
reduce_max
(
w
),
tf
.
reduce_max
(
w
)
/
2
])
wt
=
tf
.
transpose
(
w
,[
1
,
0
])
wt
=
tf
.
transpose
(
w
,[
1
,
0
])
wt
=
wt
[:,:
-
1
]
wt
=
wt
[:,:
-
1
]
...
@@ -464,6 +466,8 @@ def network_summary_w_b(scope, in_shape, out_shape, layout, index, network_scope
...
@@ -464,6 +466,8 @@ def network_summary_w_b(scope, in_shape, out_shape, layout, index, network_scope
si
=
(
j
+
0
)
*
TILE_SIZE
si
=
(
j
+
0
)
*
TILE_SIZE
ei
=
(
j
+
1
)
*
TILE_SIZE
ei
=
(
j
+
1
)
*
TILE_SIZE
tile
=
tf
.
reshape
(
wt
[
i
,
si
:
ei
],
shape
=
(
TILE_SIDE
,
TILE_SIDE
))
tile
=
tf
.
reshape
(
wt
[
i
,
si
:
ei
],
shape
=
(
TILE_SIDE
,
TILE_SIDE
))
# color here?
#tile = tf.cond()
# stack to RGB
# stack to RGB
tiles
=
tf
.
stack
([
tile
]
*
3
,
axis
=
2
)
tiles
=
tf
.
stack
([
tile
]
*
3
,
axis
=
2
)
tiles
=
tf
.
concat
([
tiles
,
tf
.
expand_dims
((
TILE_SIDE
+
0
)
*
[
grid
],
0
)],
axis
=
0
)
tiles
=
tf
.
concat
([
tiles
,
tf
.
expand_dims
((
TILE_SIDE
+
0
)
*
[
grid
],
0
)],
axis
=
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment