Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Peng committed May 22, 2018
1 parent 3f93a89 commit 562b4a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def unique_config_sections(config_file):
Adds unique suffixes to config sections for compability with configparser.
"""
section_counters = defaultdict(int)
output_stream = io.StringIO()
output_stream = io.BytesIO()
with open(config_file) as fin:
for line in fin:
if line.startswith('['):
Expand Down
2 changes: 1 addition & 1 deletion yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def detect_video(yolo, video_path):

def detect_img(yolo):
while True:
img = input('Input image filename:')
img = raw_input('Input image filename:')
try:
image = Image.open(img)
except:
Expand Down

0 comments on commit 562b4a9

Please sign in to comment.