这可能是因为您的 Python 版本不支持无参数的 super(),请尝试将其修改为使用参数 super(子类名, self)。例如:

super(MainWindow, self).init()

# -- coding utf-8 --# 应该在界面启动的时候就将模型加载出来设置tmp的目录来放中间的处理结果import shutilfrom PyQt5QtGui import from PyQt5QtCore import from PyQt5QtWidgets import import sysimport cv2import torchimport ospath as ospfrom