ソースを参照

bug fix

master
Chris 8年前
コミット
5d55a4253e
1個のファイルの変更1行の追加2行の削除
  1. +1
    -2
      test_pretrained.py

+ 1
- 2
test_pretrained.py ファイルの表示

@@ -67,9 +67,8 @@ def main(args):
cv2.imwrite(out_fn, raw)

post, coords = post_process(raw)
print coords.shape
for idx2 in [1, 2, 3, 0]:
fd.write('%d,%d,' % (width * coords[0][idx2][0] / 256., height * coords[0][idx2][1] / 256.))
fd.write('%d,%d,' % (width * coords[idx2][0] / 256., height * coords[idx2][1] / 256.))
fd.write('\n')

out_fn = os.path.join(args.out_dir, f.replace('/','_')[:-4] + "_post.png")


読み込み中…
キャンセル
保存