Fix Logging (#719)

* Add logging setup

* Fix fusing layers message

* Fix logging does not have end

* Add logging

* Change logging to use logger

* Update yolo.py

I tried this in a cloned branch, and everything seems to work fine

* Update yolo.py

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
NanoCode012andGlenn Jocher authored and GitHub committed 2020-08-12 14:18:19 -07:00
1 parent a925f283a7
commit 0892c44bc4
5 files changed
+13 -7

No files matched your search

+2
View File
@@ -9,6 +9,7 @@ import argparse
import torch
from utils.google_utils import attempt_download
from utils.general import set_logging
if __name__ == '__main__':
parser = argparse.ArgumentParser()
@@ -18,6 +19,7 @@ if __name__ == '__main__':
opt = parser.parse_args()
opt.img_size *= 2 if len(opt.img_size) == 1 else 1 # expand
print(opt)
set_logging()
# Input
img = torch.zeros((opt.batch_size, 3, *opt.img_size)) # image size(1,3,320,192) iDetection