-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUi_main.py
87 lines (81 loc) · 4 KB
/
Ui_main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'e:\LearningStuff\DLcode\Pytorch\ImageCaptioning_attention_based\main.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(1437, 790)
self.label = QtWidgets.QLabel(Form)
self.label.setGeometry(QtCore.QRect(70, 40, 561, 481))
font = QtGui.QFont()
font.setFamily("Ink Free")
font.setPointSize(36)
self.label.setFont(font)
self.label.setFrameShape(QtWidgets.QFrame.Box)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(Form)
self.label_2.setGeometry(QtCore.QRect(700, 40, 571, 481))
font = QtGui.QFont()
font.setFamily("Ink Free")
font.setPointSize(36)
self.label_2.setFont(font)
self.label_2.setFrameShape(QtWidgets.QFrame.Box)
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName("label_2")
self.pushButton = QtWidgets.QPushButton(Form)
self.pushButton.setGeometry(QtCore.QRect(180, 620, 251, 51))
font = QtGui.QFont()
font.setFamily("Ink Free")
font.setPointSize(26)
self.pushButton.setFont(font)
self.pushButton.setObjectName("pushButton")
self.pushButton_2 = QtWidgets.QPushButton(Form)
self.pushButton_2.setGeometry(QtCore.QRect(180, 540, 251, 51))
font = QtGui.QFont()
font.setFamily("Ink Free")
font.setPointSize(26)
self.pushButton_2.setFont(font)
self.pushButton_2.setObjectName("pushButton_2")
self.pushButton_3 = QtWidgets.QPushButton(Form)
self.pushButton_3.setGeometry(QtCore.QRect(180, 700, 251, 51))
font = QtGui.QFont()
font.setFamily("Ink Free")
font.setPointSize(26)
self.pushButton_3.setFont(font)
self.pushButton_3.setObjectName("pushButton_3")
self.textBrowser = QtWidgets.QTextBrowser(Form)
self.textBrowser.setGeometry(QtCore.QRect(700, 600, 541, 91))
font = QtGui.QFont()
font.setFamily("Times New Roman")
font.setPointSize(16)
self.textBrowser.setFont(font)
self.textBrowser.setFrameShape(QtWidgets.QFrame.NoFrame)
self.textBrowser.setObjectName("textBrowser")
self.label_3 = QtWidgets.QLabel(Form)
self.label_3.setGeometry(QtCore.QRect(700, 550, 151, 31))
font = QtGui.QFont()
font.setFamily("Ink Free")
font.setPointSize(28)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.label.setText(_translate("Form", "Image"))
self.label_2.setText(_translate("Form", "Attention Map"))
self.pushButton.setText(_translate("Form", "Load Image"))
self.pushButton_2.setText(_translate("Form", "Initialize"))
self.pushButton_3.setText(_translate("Form", "predict"))
self.textBrowser.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Times New Roman\'; font-size:16pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
self.label_3.setText(_translate("Form", "Caption"))