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
f964c4f2
Commit
f964c4f2
authored
Aug 31, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subbed 325 with corr2d_Nx325.shape[-1]
parent
9a1886bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
nn_ds_neibs11_tmp.py
nn_ds_neibs11_tmp.py
+6
-4
No files found.
nn_ds_neibs11_tmp.py
View file @
f964c4f2
...
@@ -777,9 +777,9 @@ def network_summary_w_b(scope, in_shape, out_shape, layout, index, network_scope
...
@@ -777,9 +777,9 @@ def network_summary_w_b(scope, in_shape, out_shape, layout, index, network_scope
# the scope is known
# the scope is known
with
tf
.
variable_scope
(
scope
,
reuse
=
tf
.
AUTO_REUSE
):
with
tf
.
variable_scope
(
scope
,
reuse
=
tf
.
AUTO_REUSE
):
# histograms
# histograms
print
(
"Specified shape: "
+
str
(
in_shape
)
+
","
+
str
(
out_shape
))
#
print("Specified shape: "+str(in_shape)+","+str(out_shape))
print
(
"Index: "
+
str
(
index
))
#
print("Index: "+str(index))
print
(
"Layout: "
+
str
(
layout
))
#
print("Layout: "+str(layout))
w
=
tf
.
get_variable
(
'weights'
,
shape
=
[
in_shape
,
out_shape
])
w
=
tf
.
get_variable
(
'weights'
,
shape
=
[
in_shape
,
out_shape
])
b
=
tf
.
get_variable
(
'biases'
,
shape
=
[
out_shape
])
b
=
tf
.
get_variable
(
'biases'
,
shape
=
[
out_shape
])
...
@@ -1583,9 +1583,11 @@ with tf.Session() as sess:
...
@@ -1583,9 +1583,11 @@ with tf.Session() as sess:
#l1_sym8 = NN_LAYOUT1[l1] // 8
#l1_sym8 = NN_LAYOUT1[l1] // 8
#l1_non_sum = NN_LAYOUT1[l1] % 8
#l1_non_sum = NN_LAYOUT1[l1] % 8
#print("corr2d_Nx325 shape = "+str(corr2d_Nx325.shape))
if
l1_non_sum
==
0
:
if
l1_non_sum
==
0
:
with
tf
.
variable_scope
(
'g_fc_sub'
+
str
(
l1
),
reuse
=
tf
.
AUTO_REUSE
):
with
tf
.
variable_scope
(
'g_fc_sub'
+
str
(
l1
),
reuse
=
tf
.
AUTO_REUSE
):
w
=
tf
.
get_variable
(
'weights'
,
shape
=
[
325
,
l1_sym8
])
w
=
tf
.
get_variable
(
'weights'
,
shape
=
[
corr2d_Nx325
.
shape
[
-
1
]
,
l1_sym8
])
w
=
tf
.
transpose
(
w
,(
1
,
0
))
w
=
tf
.
transpose
(
w
,(
1
,
0
))
img1
=
npw
.
tiles
(
npw
.
coldmap
(
w
.
eval
(),
zero_span
=
ZERO_SPAN1
),(
1
,
TILE_LAYERS
,
tile_side1
,
tile_side1
),
tiles_per_line
=
TILES_PER_LINE1
,
borders
=
True
)
img1
=
npw
.
tiles
(
npw
.
coldmap
(
w
.
eval
(),
zero_span
=
ZERO_SPAN1
),(
1
,
TILE_LAYERS
,
tile_side1
,
tile_side1
),
tiles_per_line
=
TILES_PER_LINE1
,
borders
=
True
)
img1
=
img1
[
np
.
newaxis
,
...
]
img1
=
img1
[
np
.
newaxis
,
...
]
...
...
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