From 1c65cac51fd1d23587535315d2d882d8d1ec4a05 Mon Sep 17 00:00:00 2001 From: shawn-sheep Date: Wed, 5 Jul 2023 00:39:05 +0800 Subject: [PATCH] modified: README.md modified: nst/tools.py modified: sub_windows/sub_window_9.py --- README.md | 2 +- nst/tools.py | 4 ++-- sub_windows/sub_window_9.py | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 31c5fc1..901041e 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +opencv-python 4.7.0.72 diff --git a/nst/tools.py b/nst/tools.py index fe74969..6ecad6c 100644 --- a/nst/tools.py +++ b/nst/tools.py @@ -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 diff --git a/sub_windows/sub_window_9.py b/sub_windows/sub_window_9.py index 6ed20a6..30aa26d 100644 --- a/sub_windows/sub_window_9.py +++ b/sub_windows/sub_window_9.py @@ -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