f-string,称为格式化字符串常量(formatted string literals),是Python3.6新引入的一种字符串格式化方法。低版本python这么写会报错
File "/dev/shm/KMr_project/detection/models/common.py", line 194
str = f'Image {i + 1}/{len(self.pred)}: {img.shape[0]}x{img.shape[1]}'
^
SyntaxError: invalid syntax
低版本还是要老老实实写str.format()