2

I'm trying to redirect the results of darknet(yolo) program to my log file.

But there are some troubles in redirecting the result.

I tried ./darknet detect cfg/yolo.cfg yolo.weights image.jpg > log.txt, but it doesn't work.

And also other redirecting methods are not working.

I think the results of darknet program is not printed to stdout but printed to somewhere.( I don't know where it is.)

So, I have no idea to solve this problem.

Please help me...

How do I get this results in forms of file?

Sihwan Park
  • 21
  • 1
  • 3

1 Answers1

0

This appends all the standard output into a file. Remove 2>&1 if you don't want to log standard errors.

./darknet detect cfg/yolo.cfg yolo.weights image.jpg 2>&1 | tee -a log.txt

Detail info here.

ccerhan
  • 642
  • 6
  • 7