Skip to content

Commit

Permalink
Fixed logging level in distributed mode (ultralytics#4284)
Browse files Browse the repository at this point in the history
Co-authored-by: fkwong <[email protected]>
  • Loading branch information
imyhxy and fkwong authored Aug 3, 2021
1 parent 3cfabf1 commit 281e2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/torch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
except ImportError:
thop = None

logging.basicConfig(format="%(message)s", level=logging.INFO)
LOGGER = logging.getLogger(__name__)


Expand Down Expand Up @@ -108,6 +107,7 @@ def profile(input, ops, n=10, device=None):
# profile(input, [m1, m2], n=100) # profile over 100 iterations

results = []
logging.basicConfig(format="%(message)s", level=logging.INFO)
device = device or select_device()
print(f"{'Params':>12s}{'GFLOPs':>12s}{'GPU_mem (GB)':>14s}{'forward (ms)':>14s}{'backward (ms)':>14s}"
f"{'input':>24s}{'output':>24s}")
Expand Down

0 comments on commit 281e2c9

Please sign in to comment.