提交 99637765 编写于 作者: K Kentaro Wada

Fix labelme_on_docker

上级 b85b968d
......@@ -17,6 +17,8 @@ def get_ip():
elif dist == 'Darwin':
cmd = 'ifconfig en0'
output = subprocess.check_output(shlex.split(cmd))
if str != bytes: # Python3
output = output.decode('utf-8')
for row in output.splitlines():
cols = row.strip().split(' ')
if cols[0] == 'inet':
......@@ -46,7 +48,7 @@ def labelme_on_docker(image_file, out_file):
' -v {1}:{2}' \
' -v {3}:{4}' \
' -w /home/developer' \
' labelme' \
' wkentaro/labelme' \
' labelme {2} -O {4}'
cmd = cmd.format(
ip,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册