diff --git a/package-lock.json b/package-lock.json
index 2dca13d..53295ca 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "enhancr",
- "version": "0.9.2",
+ "version": "0.9.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index 8640dfa..4eeef7f 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "enhancr",
"productName": "enhancr",
- "version": "0.9.2",
+ "version": "0.9.3",
"private": true,
"description": "Interpolation/Upscaling AI",
"main": "src/app.js",
diff --git a/src/app.html b/src/app.html
index badb0b5..9decf72 100644
--- a/src/app.html
+++ b/src/app.html
@@ -399,6 +399,11 @@
Trim using accurate cut Default is keyframe cut (inacurrate but doesn't re-encode)
+
Encoding
- Enable hardware encoding Page 5 / 5') {
pageSwitcher.innerHTML = ' Page 4 / 5';
document.getElementById('realesrgan-list').style.visibility = 'hidden';
@@ -283,9 +288,12 @@ function changePage() {
document.getElementById('trim-list').style.visibility = 'visible';
hwEncodeSettings.style.visibility = 'visible';
document.getElementById('sensitivity-list').style.visibility = 'visible';
+ document.getElementById('unsupported-list').style.visibility = 'visible';
} else if (pageSwitcher.innerHTML == ' Page 4 / 5') {
pageSwitcher.innerHTML = ' Page 3 / 5';
document.getElementById('trim-list').style.visibility = 'hidden';
+ document.getElementById('unsupported-list').style.visibility = 'hidden';
+ document.getElementById('sensitivity-list').style.visibility = 'hidden';
hwEncodeSettings.style.visibility = 'hidden';
tensorrtSettings.style.visibility = 'visible';
tilingSettings.style.visibility = 'visible';
diff --git a/src/js/themeengine.js b/src/js/themeengine.js
index d5f33ba..8896f71 100644
--- a/src/js/themeengine.js
+++ b/src/js/themeengine.js
@@ -27,6 +27,7 @@ var pythonCheck = document.getElementById('python-check');
var trimCheck = document.getElementById('trim-check');
var hwencodeCheck = document.getElementById('hwencode-check');
var sensitivityCheck = document.getElementById('sensitivity-check');
+var unsupportedCheck = document.getElementById("unsupported-check");
var mediaInfoText = document.getElementsByClassName("info-text");
var tooltips = document.getElementsByClassName("tooltip-text");
@@ -66,6 +67,7 @@ function blueSelect() {
trimCheck.style.setProperty('--toggle-color', "#1e5cce");
hwencodeCheck.style.setProperty('--toggle-color', "#1e5cce");
sensitivityCheck.style.setProperty('--toggle-color', "#1e5cce");
+ unsupportedCheck.style.setProperty('--toggle-color', "#1e5cce");
pythonCheck.style.setProperty('--toggle-color', "#1e5cce");
progressDone.style.setProperty('--bar-color', "#1e5cce");
@@ -128,6 +130,7 @@ function pinkSelect() {
trimCheck.style.setProperty('--toggle-color', "#ce1e6c");
hwencodeCheck.style.setProperty('--toggle-color', "#ce1e6c");
sensitivityCheck.style.setProperty('--toggle-color', "#ce1e6c");
+ unsupportedCheck.style.setProperty('--toggle-color', "#ce1e6c");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#ce1e6c";
@@ -187,6 +190,7 @@ function greenSelect() {
trimCheck.style.setProperty('--toggle-color', "#9ece1e");
hwencodeCheck.style.setProperty('--toggle-color', "#9ece1e");
sensitivityCheck.style.setProperty('--toggle-color', "#9ece1e");
+ unsupportedCheck.style.setProperty('--toggle-color', "#9ece1e");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#9ece1e";
@@ -246,6 +250,7 @@ function purpleSelect() {
trimCheck.style.setProperty('--toggle-color', "#601ece");
hwencodeCheck.style.setProperty('--toggle-color', "#601ece");
sensitivityCheck.style.setProperty('--toggle-color', "#601ece");
+ unsupportedCheck.style.setProperty('--toggle-color', "#601ece");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#601ece";
@@ -306,6 +311,7 @@ function orangeSelect() {
trimCheck.style.setProperty('--toggle-color', "#e36812");
hwencodeCheck.style.setProperty('--toggle-color', "#e36812");
sensitivityCheck.style.setProperty('--toggle-color', "#e36812");
+ unsupportedCheck.style.setProperty('--toggle-color', "#e36812");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#e36812";
@@ -365,6 +371,7 @@ function yellowSelect() {
trimCheck.style.setProperty('--toggle-color', "#cece1b");
hwencodeCheck.style.setProperty('--toggle-color', "#cece1b");
sensitivityCheck.style.setProperty('--toggle-color', "#cece1b");
+ unsupportedCheck.style.setProperty('--toggle-color', "#cece1b");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#cece1b";
@@ -424,6 +431,7 @@ function redSelect() {
trimCheck.style.setProperty('--toggle-color', "#ce2a1e");
hwencodeCheck.style.setProperty('--toggle-color', "#ce2a1e");
sensitivityCheck.style.setProperty('--toggle-color', "#ce2a1e");
+ unsupportedCheck.style.setProperty('--toggle-color', "#ce2a1e");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#ce2a1e";
@@ -483,6 +491,7 @@ function sandSelect() {
trimCheck.style.setProperty('--toggle-color', "#E9DAC1");
hwencodeCheck.style.setProperty('--toggle-color', "#E9DAC1");
sensitivityCheck.style.setProperty('--toggle-color', "#E9DAC1");
+ unsupportedCheck.style.setProperty('--toggle-color', "#E9DAC1");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#E9DAC1";
@@ -542,6 +551,7 @@ function mintSelect() {
trimCheck.style.setProperty('--toggle-color', "#8FE3CF");
hwencodeCheck.style.setProperty('--toggle-color', "#8FE3CF");
sensitivityCheck.style.setProperty('--toggle-color', "#8FE3CF");
+ unsupportedCheck.style.setProperty('--toggle-color', "#8FE3CF");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#8FE3CF";
@@ -601,6 +611,7 @@ function salmonSelect() {
trimCheck.style.setProperty('--toggle-color', "#FFB3B3");
hwencodeCheck.style.setProperty('--toggle-color', "#FFB3B3");
sensitivityCheck.style.setProperty('--toggle-color', "#FFB3B3");
+ unsupportedCheck.style.setProperty('--toggle-color', "#FFB3B3");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#FFB3B3";
@@ -660,6 +671,7 @@ function eggSelect() {
trimCheck.style.setProperty('--toggle-color', "#FFEF82");
hwencodeCheck.style.setProperty('--toggle-color', "#FFEF82");
sensitivityCheck.style.setProperty('--toggle-color', "#FFEF82");
+ unsupportedCheck.style.setProperty('--toggle-color', "#FFEF82");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#FFEF82";
@@ -719,6 +731,7 @@ function lavenderSelect() {
trimCheck.style.setProperty('--toggle-color', "#AFB4FF");
hwencodeCheck.style.setProperty('--toggle-color', "#AFB4FF");
sensitivityCheck.style.setProperty('--toggle-color', "#AFB4FF");
+ unsupportedCheck.style.setProperty('--toggle-color', "#AFB4FF");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#AFB4FF";
@@ -778,6 +791,7 @@ function roseSelect() {
trimCheck.style.setProperty('--toggle-color', "#FF5D5D");
hwencodeCheck.style.setProperty('--toggle-color', "#FF5D5D");
sensitivityCheck.style.setProperty('--toggle-color', "#FF5D5D");
+ unsupportedCheck.style.setProperty('--toggle-color', "#FF5D5D");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#FF5D5D";
@@ -837,6 +851,7 @@ function greySelect() {
trimCheck.style.setProperty('--toggle-color', "#696969");
hwencodeCheck.style.setProperty('--toggle-color', "#696969");
sensitivityCheck.style.setProperty('--toggle-color', "#696969");
+ unsupportedCheck.style.setProperty('--toggle-color', "#696969");
for (var i = 0; i < queueProgressBar.length; i++) {
queueProgressBar[i].style.background = "#696969";
diff --git a/src/js/ui.js b/src/js/ui.js
index a9cc83a..264a7d2 100644
--- a/src/js/ui.js
+++ b/src/js/ui.js
@@ -638,6 +638,7 @@ function getTheme() {
function setGPU() {
const gpuInfo = require('gpu-info');
+ let unsupportedCheck = document.getElementById('unsupported-check');
gpuInfo().then(function (data) {
var hasNVIDIA = false;
var hasAMD = false;
@@ -657,7 +658,7 @@ function setGPU() {
if (hasNVIDIA) {
sessionStorage.setItem('gpu', 'NVIDIA');
}
- if (hasAMD) {
+ if (hasAMD && !unsupportedCheck.checked) {
sessionStorage.setItem('gpu', 'AMD');
document.getElementById('cain-trt').style.display = 'none';
document.getElementById('rife-trt').style.display = 'none';
@@ -668,7 +669,7 @@ function setGPU() {
document.getElementById('realesrgan-ncnn').click();
document.getElementById('anime-video-ncnn').click();
}
- if (hasIntel) {
+ if (hasIntel && !unsupportedCheck.checked) {
sessionStorage.setItem('gpu', 'Intel');
document.getElementById('cain-trt').style.display = 'none';
document.getElementById('rife-trt').style.display = 'none';
diff --git a/src/main/default-settings.js b/src/main/default-settings.js
index f359a8f..bb55d74 100644
--- a/src/main/default-settings.js
+++ b/src/main/default-settings.js
@@ -27,6 +27,7 @@ module.exports = {
sensitivityValue: 0.100,
sensitivity: false,
customModel: false,
+ unsupportedEngines: false,
systemPython: false,
language: 'english',
},
diff --git a/src/scss/settings.scss b/src/scss/settings.scss
index a22791a..a07ce8b 100644
--- a/src/scss/settings.scss
+++ b/src/scss/settings.scss
@@ -542,7 +542,7 @@ input[type="checkbox"] {
border-radius: 10px;
margin-bottom: 128px;
visibility: hidden;
- top: 27.5%;
+ top: 26.5%;
position: absolute;
}
@@ -587,6 +587,61 @@ input[type="checkbox"] {
background-color: var(--toggle-color);
}
+#unsupported-list {
+ margin-top: 3.5px;
+ padding: 16px 125px 23px 10px;
+ display: inline-block;
+ width: 315px;
+ margin-left: 10px;
+ background: rgba(0, 0, 0, 0.12);
+ border-radius: 10px;
+ margin-bottom: 128px;
+ visibility: hidden;
+ top: 36.5%;
+ position: absolute;
+}
+
+#unsupported-list li {
+ padding-bottom: 8px;
+ margin-left: 28px;
+}
+
+#unsupported-li {
+ margin-left: 27px;
+ position: absolute;
+ top: 27%;
+ font-weight: 400;
+}
+
+#unsupported-side {
+ transform: rotate(-90deg);
+ font-size: 9pt;
+ top: 10%;
+ left: -0.8%;
+ background: rgba(0, 0, 0, 0.2);
+ width: 8.7%;
+ height: 84%;
+ border-top-left-radius: 10px;
+ position: absolute;
+ border-top-right-radius: 10px;
+ text-align: center;
+ vertical-align: middle;
+ line-height: 30px;
+ font-weight: 500;
+}
+
+#unsupported-question {
+ top: -22% !important;
+ width: 165px !important;
+}
+
+#unsupported-check:checked {
+ /* Fallback */
+ background-color: #3b94ff;
+ /* Dynamic value */
+ background-color: var(--toggle-color);
+}
+
#hwencode-list {
margin-top: 3.5px;
padding: 16px 125px 50px 10px;
@@ -861,7 +916,7 @@ input[type="checkbox"] {
border-radius: 10px;
margin-bottom: 10px;
visibility: hidden;
- top: 45%;
+ top: 46%;
position: absolute;
}