modified: README.md

modified:   nst/tools.py
	modified:   sub_windows/sub_window_9.py
master
shawn-sheep 2 years ago
parent e84f0be0ca
commit 1c65cac51f

@ -70,4 +70,4 @@ torch 2.0.1+cu118
torch-tb-profiler 0.4.1
torchaudio 2.0.2+cu118
torchvision 0.15.2
opencv-python 4.7.0.72
opencv-python 4.7.0.72

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 3 16:30:00 2019
@author: Wellenwoo
Created on 2023/6/15
@author:shawn-sheep
图像格式转换的工具;
"""
from __future__ import print_function

@ -73,15 +73,14 @@ class SubWindow(QMainWindow):
t = time.time()
dt, img = transfer.fit()
print("time:")
print(time.time() - t)
# print(dt,img)
img = np.array(img)[:, :, ::-1]
img = np.require(img, np.uint8, 'C')
qimage = QImage(img.data, img.shape[1], img.shape[0], QImage.Format_RGB888)
pixmap = QPixmap.fromImage(qimage)
self.ui.label_image_3.setPixmap(pixmap)
pass

Loading…
Cancel
Save