mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-05 20:42:11 -07:00
refactor qt wrappers
This commit is contained in:
parent
8aadbfef4a
commit
a861812f18
9 changed files with 29 additions and 30 deletions
|
@ -1,6 +1,6 @@
|
|||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PySide6.QtCore import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtWidgets import *
|
||||
|
||||
class QCursorDB():
|
||||
@staticmethod
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PySide6.QtCore import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtWidgets import *
|
||||
|
||||
|
||||
class QIconDB():
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PySide6.QtCore import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtWidgets import *
|
||||
|
||||
class QImageDB():
|
||||
@staticmethod
|
||||
|
|
|
@ -12,9 +12,9 @@ from types import SimpleNamespace as sn
|
|||
import cv2
|
||||
import numpy as np
|
||||
import numpy.linalg as npla
|
||||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PySide6.QtCore import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtWidgets import *
|
||||
|
||||
from core import imagelib, pathex
|
||||
from core.cv2ex import *
|
||||
|
@ -152,9 +152,9 @@ class CanvasConfig():
|
|||
|
||||
if color_schemes is None:
|
||||
color_schemes = [
|
||||
ColorScheme( QColor(192,0,0,alpha=0), QColor(192,0,0,alpha=72), QColor(192,0,0), 2, QColor(255,255,255), QCursorDB.cross_red ),
|
||||
ColorScheme( QColor(0,192,0,alpha=0), QColor(0,192,0,alpha=72), QColor(0,192,0), 2, QColor(255,255,255), QCursorDB.cross_green ),
|
||||
ColorScheme( QColor(0,0,192,alpha=0), QColor(0,0,192,alpha=72), QColor(0,0,192), 2, QColor(255,255,255), QCursorDB.cross_blue ),
|
||||
ColorScheme( QColor(192,0,0), QColor(192,0,0), QColor(192,0,0), 2, QColor(255,255,255), QCursorDB.cross_red ),
|
||||
ColorScheme( QColor(0,192,0), QColor(0,192,0), QColor(0,192,0), 2, QColor(255,255,255), QCursorDB.cross_green ),
|
||||
ColorScheme( QColor(0,0,192), QColor(0,0,192), QColor(0,0,192), 2, QColor(255,255,255), QCursorDB.cross_blue ),
|
||||
]
|
||||
self.color_schemes = color_schemes
|
||||
|
||||
|
@ -941,7 +941,6 @@ class QCanvasOperator(QWidget):
|
|||
qp = self.qp
|
||||
qp.begin(self)
|
||||
qp.setRenderHint(QPainter.Antialiasing)
|
||||
qp.setRenderHint(QPainter.HighQualityAntialiasing)
|
||||
qp.setRenderHint(QPainter.SmoothPixmapTransform)
|
||||
|
||||
src_rect = QRect(0, 0, *self.img_size)
|
||||
|
|
|
@ -3,9 +3,9 @@ import sys
|
|||
import time
|
||||
import traceback
|
||||
|
||||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PySide6.QtCore import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtWidgets import *
|
||||
|
||||
from core.interact import interact as io
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PySide6.QtCore import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtWidgets import *
|
||||
|
||||
from localization import StringsDB
|
||||
from .QXMainWindow import *
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PySide6.QtCore import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtWidgets import *
|
||||
|
||||
class QXMainWindow(QWidget):
|
||||
"""
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import numpy as np
|
||||
from PyQt5.QtCore import *
|
||||
from PyQt5.QtGui import *
|
||||
from PyQt5.QtWidgets import *
|
||||
from PySide6.QtCore import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtWidgets import *
|
||||
from localization import StringsDB
|
||||
|
||||
from .QXMainWindow import *
|
||||
|
|
|
@ -8,5 +8,5 @@ scikit-image==0.14.2
|
|||
scipy==1.4.1
|
||||
colorama
|
||||
tensorflow-gpu==2.4.0
|
||||
pyqt5
|
||||
tf2onnx==1.9.3
|
||||
pysides6
|
||||
tf2onnx==1.9.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue