Skip to content

Commit

Permalink
add help button to gmfss
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Apr 13, 2024
1 parent 3ee2dc2 commit 0599382
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 13 deletions.
42 changes: 33 additions & 9 deletions mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1251</width>
<height>971</height>
<width>1389</width>
<height>973</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -885,8 +885,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>399</width>
<height>186</height>
<width>479</width>
<height>192</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
Expand Down Expand Up @@ -939,11 +939,35 @@
</layout>
</item>
<item>
<widget class="QCheckBox" name="GMFSSCUDACheckBox">
<property name="text">
<string>GMFSS (Interpolate Animation)</string>
</property>
</widget>
<layout class="QHBoxLayout" name="horizontalLayout_24">
<item>
<widget class="QPushButton" name="GMFSSHelpButton">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="GMFSSCUDACheckBox">
<property name="text">
<string>GMFSS (Interpolate Animation)</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="RealESRGANCUDACheckBox">
Expand Down
2 changes: 1 addition & 1 deletion src/getLinkVideo/get_vid_from_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'src/getLinkVideo/get_vid_from_link.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!

Expand Down
2 changes: 1 addition & 1 deletion src/getModels/Download.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'src/getModels/Download.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!

Expand Down
2 changes: 1 addition & 1 deletion src/getModels/SelectAI.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'src/getModels/SelectAI.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!

Expand Down
2 changes: 1 addition & 1 deletion src/getModels/SelectModels.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'src/getModels/SelectModels.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!

Expand Down
5 changes: 5 additions & 0 deletions src/misc/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,8 @@ def halfPrecision_help(self):
self.showDialogBox(
f"Half precision can increase performance while saving VRAM, but may decrease quality based on the model."
)

def gmfss_help(self):
self.showDialogBox(
f"GMFSS requires CuPy, please install it via PIP to use GMFSS."
)
2 changes: 2 additions & 0 deletions src/misc/onProgramStart.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def bindButtons(self):
self.ui.Rife_Model.currentIndexChanged.connect(self.greyOutRifeTimes)
self.ui.imageHelpButton.clicked.connect(lambda: image_help(self))
self.ui.halfPrecisionHelpButton.clicked.connect(lambda: halfPrecision_help(self))
self.ui.GMFSSHelpButton.clicked.connect(lambda: gmfss_help(self))
self.ui.imageComboBox.currentIndexChanged.connect(
lambda: settings.change_setting(
"Image_Type", f"{self.ui.imageComboBox.currentText()}"
Expand Down Expand Up @@ -153,6 +154,7 @@ def bindButtons(self):
self.ui.UHDModeHelpButton,
self.ui.gpuIDHelpButton,
self.ui.halfPrecisionHelpButton,
self.ui.GMFSSHelpButton,
]
icon = QIcon(f"{thisdir}/icons/Rife-ESRGAN-Video-Settings - Help.png")
for button in helpButtons:
Expand Down

0 comments on commit 0599382

Please sign in to comment.