Don't restrict TRT to batch size 1

This commit is contained in:
cmdr2 2023-08-01 21:24:22 +05:30
parent 4e444b418e
commit 56f92ccab0

View File

@ -1355,15 +1355,15 @@ function getCurrentUserRequest() {
let numOutputsParallel = parseInt(numOutputsParallelField.value) let numOutputsParallel = parseInt(numOutputsParallelField.value)
const seed = randomSeedField.checked ? Math.floor(Math.random() * (2 ** 32 - 1)) : parseInt(seedField.value) const seed = randomSeedField.checked ? Math.floor(Math.random() * (2 ** 32 - 1)) : parseInt(seedField.value)
if ( // if (
testDiffusers.checked && // testDiffusers.checked &&
document.getElementById("toggle-tensorrt-install").innerHTML == "Uninstall" && // document.getElementById("toggle-tensorrt-install").innerHTML == "Uninstall" &&
document.querySelector("#convert_to_tensorrt").checked // document.querySelector("#convert_to_tensorrt").checked
) { // ) {
// TRT enabled // // TRT enabled
numOutputsParallel = 1 // force 1 parallel // numOutputsParallel = 1 // force 1 parallel
} // }
const newTask = { const newTask = {
batchesDone: 0, batchesDone: 0,
@ -2394,8 +2394,8 @@ function packagesUpdate(event) {
seedField.disabled = false seedField.disabled = false
stableDiffusionModelField.value = "sd-v1-4" stableDiffusionModelField.value = "sd-v1-4"
numOutputsParallelField.classList.add("displayNone") // numOutputsParallelField.classList.add("displayNone")
document.querySelector("#num_outputs_parallel_label").classList.add("displayNone") // document.querySelector("#num_outputs_parallel_label").classList.add("displayNone")
trtSettingsForced = true trtSettingsForced = true
} }