Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
CNNArch2Gluon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monticore
EmbeddedMontiArc
generators
CNNArch2Gluon
Commits
45ed40b3
Commit
45ed40b3
authored
Dec 06, 2019
by
Christian Fuß
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a small bug when using matplotlib
parent
b0e8514a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
src/main/resources/templates/gluon/saveAttentionImageTrain.ftl
...ain/resources/templates/gluon/saveAttentionImageTrain.ftl
+2
-0
src/test/resources/target_code/CNNSupervisedTrainer_Alexnet.py
...est/resources/target_code/CNNSupervisedTrainer_Alexnet.py
+2
-0
src/test/resources/target_code/CNNSupervisedTrainer_CifarClassifierNetwork.py
...arget_code/CNNSupervisedTrainer_CifarClassifierNetwork.py
+2
-0
src/test/resources/target_code/CNNSupervisedTrainer_VGG16.py
src/test/resources/target_code/CNNSupervisedTrainer_VGG16.py
+2
-0
No files found.
src/main/resources/templates/gluon/saveAttentionImageTrain.ftl
View file @
45ed40b3
if save_attention_image == "True":
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
logging.getLogger('matplotlib').setLevel(logging.ERROR)
...
...
src/test/resources/target_code/CNNSupervisedTrainer_Alexnet.py
View file @
45ed40b3
...
...
@@ -341,6 +341,8 @@ class CNNSupervisedTrainer_Alexnet:
if
save_attention_image
==
"True"
:
import
matplotlib
matplotlib
.
use
(
'Agg'
)
import
matplotlib.pyplot
as
plt
logging
.
getLogger
(
'matplotlib'
).
setLevel
(
logging
.
ERROR
)
...
...
src/test/resources/target_code/CNNSupervisedTrainer_CifarClassifierNetwork.py
View file @
45ed40b3
...
...
@@ -341,6 +341,8 @@ class CNNSupervisedTrainer_CifarClassifierNetwork:
if
save_attention_image
==
"True"
:
import
matplotlib
matplotlib
.
use
(
'Agg'
)
import
matplotlib.pyplot
as
plt
logging
.
getLogger
(
'matplotlib'
).
setLevel
(
logging
.
ERROR
)
...
...
src/test/resources/target_code/CNNSupervisedTrainer_VGG16.py
View file @
45ed40b3
...
...
@@ -341,6 +341,8 @@ class CNNSupervisedTrainer_VGG16:
if
save_attention_image
==
"True"
:
import
matplotlib
matplotlib
.
use
(
'Agg'
)
import
matplotlib.pyplot
as
plt
logging
.
getLogger
(
'matplotlib'
).
setLevel
(
logging
.
ERROR
)
...
...
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