Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
inovisao
pynovisao
Commits
ce48b841
Commit
ce48b841
authored
Mar 21, 2018
by
Gabriel Kirsten
Browse files
Added supress debug for PIL
parent
40c0028c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/classification/cnn_keras.py
src/classification/cnn_keras.py
+9
-1
No files found.
src/classification/cnn_keras.py
View file @
ce48b841
...
...
@@ -15,6 +15,9 @@ import shutil
import
random
import
numpy
as
np
import
json
import
logging
import
sys
from
PIL
import
Image
from
keras
import
applications
from
keras.preprocessing.image
import
ImageDataGenerator
...
...
@@ -33,7 +36,12 @@ from util.config import Config
from
util.file_utils
import
File
from
util.utils
import
TimeUtils
os
.
environ
[
'TF_CPP_MIN_LOG_LEVEL'
]
=
'2'
# Suppress warnings
logger
=
logging
.
getLogger
(
'PIL'
)
logger
.
setLevel
(
logging
.
WARNING
)
START_TIME
=
time
.
time
()
# =========================================================
...
...
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