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
d12fac15
Commit
d12fac15
authored
Aug 10, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added grid to 2d weights
parent
606a4277
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
nn_ds_inmem4_tmp.py
nn_ds_inmem4_tmp.py
+6
-4
No files found.
nn_ds_inmem4_tmp.py
View file @
d12fac15
...
...
@@ -239,7 +239,8 @@ def network_fc_simple(input, arch = 0):
if
(
i
==
3
):
# red border
grid
=
tf
.
constant
([
255
,
100
,
100
],
dtype
=
tf
.
float32
,
name
=
"GRID"
)
grid
=
tf
.
constant
([
0.1
,
-
0.1
,
-
0.1
],
dtype
=
tf
.
float32
,
name
=
"GRID"
)
#grid = tf.constant([255,100,100],dtype=tf.float32,name="GRID")
# (325,32)
wimg_1
=
w
...
...
@@ -268,7 +269,7 @@ def network_fc_simple(input, arch = 0):
gtiles2
=
tf
.
concat
([
gtiles1
,
tf
.
expand_dims
(
10
*
[
grid
],
1
)],
axis
=
1
)
tmp2
.
append
(
gtiles2
)
ts
=
tf
.
concat
(
tmp2
,
axis
=
2
)
ts
=
tf
.
concat
(
tmp2
,
axis
=
1
)
tmp1
.
append
(
ts
)
image_summary_op2
=
tf
.
concat
(
tmp1
,
axis
=
0
)
...
...
@@ -281,8 +282,9 @@ def network_fc_simple(input, arch = 0):
#tf.summary.image("wimgo1",tf.reshape(wimgo1,[1,32*(9+1),(9+1)*4, 3]))
#tf.summary.image("wimgo2",tf.reshape(wimgo2,[1,32*(9+1),(9+1)*4, 3]))
tf
.
summary
.
image
(
"SWEIGTS"
,
tf
.
reshape
(
gtiles2
,[
1
,
10
,
10
,
3
]))
tf
.
summary
.
image
(
"WEIGTS"
,
tf
.
reshape
(
image_summary_op2
,[
1
,
320
,
40
,
3
]))
#tf.summary.image("TILE",tf.reshape(gtiles2,[1,10,10,3]))
#tf.summary.image("STRIPE",tf.reshape(ts,[1,10,40,3]))
tf
.
summary
.
image
(
"W8S"
,
tf
.
reshape
(
image_summary_op2
,[
1
,
320
,
40
,
3
]))
# borders
#for mi in range(0,wimg_res.shape[0],10):
...
...
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