PyTorch-YOLOv3
PyTorch-YOLOv3 copied to clipboard
problem of detect.py
when I run detect.py, it shows :
File "detect.py", line 140 plt.savefig(f"output/{filename}.jpg", bbox_inches="tight", pad_inches=0.0) ^ SyntaxError: invalid syntax
Is it because of the Linux system? How to solve it?
I just delete "f" and add "format", it works for me, but I'm not sure whether it works for you:
plt.savefig("output/{}.jpg".format(filename), bbox_inches="tight", pad_inches=0.0)
when I run detect.py, it shows :
File "detect.py", line 140 plt.savefig(f"output/{filename}.jpg", bbox_inches="tight", pad_inches=0.0) ^ SyntaxError: invalid syntax
Is it because of the Linux system? How to solve it?
"f-string" can't be used in python3.5 and previous versions of python. What's your version of python ?
Whats your cls_conf, mine is always 1.0, I think its not right
- Label: without_mask, Conf: 1.00000
Whats your cls_conf, mine is always 1.0, I think its not right
- Label: without_mask, Conf: 1.00000
Me too.Do you know why?