Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CNNArch2Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
monticore
EmbeddedMontiArc
generators
CNNArch2Gluon
Commits
9d751e4e
Commit
9d751e4e
authored
5 years ago
by
Sebastian Nickels
Browse files
Options
Downloads
Patches
Plain Diff
Fixed another bug
parent
1ded4b88
No related branches found
Branches containing commit
No related tags found
1 merge request
!23
Added Unroll-related features and layers
Pipeline
#203325
failed
5 years ago
Stage: windows
Stage: linux
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/templates/gluon/saveAttentionImageTest.ftl
+1
-1
1 addition, 1 deletion
...main/resources/templates/gluon/saveAttentionImageTest.ftl
src/main/resources/templates/gluon/saveAttentionImageTrain.ftl
+1
-1
1 addition, 1 deletion
...ain/resources/templates/gluon/saveAttentionImageTrain.ftl
with
2 additions
and
2 deletions
src/main/resources/templates/gluon/saveAttentionImageTest.ftl
+
1
−
1
View file @
9d751e4e
...
...
@@ -11,7 +11,7 @@
attention_resized = np.resize(attention.asnumpy(), (8, 8))
ax = fig.add_subplot(max_length//3, max_length//4, l+1)
ax.set_title(dict[int(mx.nd.slice_axis(mx.nd.argmax(outputs[l+1], axis=1), axis=0, begin=0, end=1).asscalar())])
img = ax.imshow(test_images[0+batch_size
*
(batch_i)])
img = ax.imshow(test_images[0+
test_
batch_size
*
(batch_i)])
ax.imshow(attention_resized, cmap='gray', alpha=0.6, extent=img.get_extent())
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/templates/gluon/saveAttentionImageTrain.ftl
+
1
−
1
View file @
9d751e4e
...
...
@@ -17,7 +17,7 @@
attention_resized = np.resize(attention.asnumpy(), (8, 8))
ax = fig.add_subplot(max_length//3, max_length//4, l+1)
ax.set_title(dict[int(labels[l+1][0].asscalar())])
img = ax.imshow(train_images[0+batch_size
*
(batch_i)])
img = ax.imshow(train_images[0+
test_
batch_size
*
(batch_i)])
ax.imshow(attention_resized, cmap='gray', alpha=0.6, extent=img.get_extent())
...
...
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