Skip to content

Commit 159fa41

Browse files
committed
small fix in cnn_train.py, log level back to WARNING
1 parent 1258693 commit 159fa41

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cnn_models/models.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"generic_fast_low":{"status":1.0, "image_height": "128", "image_width":"128", "output_layer": "MobilenetV2/Predictions/Reshape_1"}, "generic_slow_high":{"status":1.0, "image_height":"224", "image_width": "224", "output_layer": "MobilenetV2/Predictions/Reshape_1"}}
1+
{"generic_slow_high": {"status": 1.0, "image_width": "224", "image_height": "224", "output_layer": "MobilenetV2/Predictions/Reshape_1"}, "generic_fast_low": {"status": 1.0, "image_width": "128", "image_height": "128", "output_layer": "MobilenetV2/Predictions/Reshape_1"}}

cnn_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def _progress(count, block_size, total_size):
541541
filepath, _ = urllib.request.urlretrieve(data_url, filepath, _progress)
542542
print()
543543
statinfo = os.stat(filepath)
544-
tf.logging.info('Successfully downloaded %s %d', filename, statinfo.st_size,
544+
tf.logging.info('Successfully downloaded %s %d %s', filename, statinfo.st_size,
545545
'bytes.')
546546
tarfile.open(filepath, 'r:gz').extractall(dest_directory)
547547

main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
from event import EventManager
2121
from conversation import Conversation
2222

23-
from flask import (Flask,
24-
render_template,
25-
request,
26-
send_file,
27-
Response,
23+
from flask import (Flask,
24+
render_template,
25+
request,
26+
send_file,
27+
Response,
2828
jsonify,
2929
send_from_directory,
3030
redirect)
@@ -34,7 +34,7 @@
3434

3535
# Logging configuration
3636
logger = logging.getLogger()
37-
logger.setLevel(logging.DEBUG)
37+
logger.setLevel(logging.WARNING)
3838
sh = logging.StreamHandler()
3939
fh = logging.handlers.RotatingFileHandler('./logs/coderbot.log', maxBytes=1000000, backupCount=5)
4040
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')

0 commit comments

Comments
 (0)