Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
CNNArch2Gluon
Commits
baee5080
Commit
baee5080
authored
Dec 09, 2019
by
Evgeny Kusmenko
Browse files
Merge branch 'develop' into 'master'
fixed a small bug when using matplotlib See merge request
!24
parents
075c2f28
bcb8841a
Pipeline
#216537
passed with stages
in 7 minutes and 19 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/templates/gluon/saveAttentionImageTrain.ftl
View file @
baee5080
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 @
baee5080
...
...
@@ -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 @
baee5080
...
...
@@ -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 @
baee5080
...
...
@@ -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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment