From 56f92ccab01fa1643b37e43c0f6dadf6b478b9d1 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Tue, 1 Aug 2023 21:24:22 +0530 Subject: [PATCH] Don't restrict TRT to batch size 1 --- ui/media/js/main.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 206d1338..0db31abe 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1355,15 +1355,15 @@ function getCurrentUserRequest() { let numOutputsParallel = parseInt(numOutputsParallelField.value) const seed = randomSeedField.checked ? Math.floor(Math.random() * (2 ** 32 - 1)) : parseInt(seedField.value) - if ( - testDiffusers.checked && - document.getElementById("toggle-tensorrt-install").innerHTML == "Uninstall" && - document.querySelector("#convert_to_tensorrt").checked - ) { - // TRT enabled + // if ( + // testDiffusers.checked && + // document.getElementById("toggle-tensorrt-install").innerHTML == "Uninstall" && + // document.querySelector("#convert_to_tensorrt").checked + // ) { + // // TRT enabled - numOutputsParallel = 1 // force 1 parallel - } + // numOutputsParallel = 1 // force 1 parallel + // } const newTask = { batchesDone: 0, @@ -2394,8 +2394,8 @@ function packagesUpdate(event) { seedField.disabled = false stableDiffusionModelField.value = "sd-v1-4" - numOutputsParallelField.classList.add("displayNone") - document.querySelector("#num_outputs_parallel_label").classList.add("displayNone") + // numOutputsParallelField.classList.add("displayNone") + // document.querySelector("#num_outputs_parallel_label").classList.add("displayNone") trtSettingsForced = true }