Parcourir la source

bug fix

master
Chris il y a 8 ans
Parent
révision
5d55a4253e
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. +1
    -2
      test_pretrained.py

+ 1
- 2
test_pretrained.py Voir le fichier

@@ -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")


Chargement…
Annuler
Enregistrer