diff --git a/utils/utils.py b/utils/utils.py index 8eebdc33..95abacce 100755 --- a/utils/utils.py +++ b/utils/utils.py @@ -7,7 +7,7 @@ import torch.nn.functional as F # Set printoptions torch.set_printoptions(linewidth=1320, precision=5, profile='long') -np.set_printoptions(linewidth=320, formatter={'float_kind': '{11.5g}'.format}) # format short g, %precision=5 +np.set_printoptions(linewidth=320, formatter={'float_kind': '{:11.5g}'.format}) # format short g, %precision=5 def load_classes(path):