forked from extern/easydiffusion
Send 'auto' as the render_device from the UI
, if no GPU is selected and CPU is unchecked)
This commit is contained in:
parent
b9a12d1562
commit
baef31b2c7
@ -323,7 +323,7 @@
|
||||
<script src="media/js/inpainting-editor.js?v=1"></script>
|
||||
<script src="media/js/image-modifiers.js?v=6"></script>
|
||||
<script src="media/js/auto-save.js?v=7"></script>
|
||||
<script src="media/js/main.js?v=11"></script>
|
||||
<script src="media/js/main.js?v=12"></script>
|
||||
<script src="media/js/themes.js?v=4"></script>
|
||||
<script src="media/js/dnd.js?v=8"></script>
|
||||
<script>
|
||||
|
@ -814,7 +814,11 @@ function getCurrentRenderDeviceSelection() {
|
||||
return 'cpu'
|
||||
}
|
||||
|
||||
return $(useGPUsField).val().join(',')
|
||||
let selectedGPUs = $(useGPUsField).val()
|
||||
if (selectedGPUs.length == 0) {
|
||||
selectedGPUs = ['auto']
|
||||
}
|
||||
return selectedGPUs.join(',')
|
||||
}
|
||||
|
||||
function makeImage() {
|
||||
@ -1134,7 +1138,7 @@ useCPUField.addEventListener('click', function() {
|
||||
let gpuSettingEntry = getParameterSettingsEntry('use_gpus')
|
||||
if (this.checked) {
|
||||
gpuSettingEntry.style.display = 'none'
|
||||
} else if ($(useGPUsField).val().length >= MIN_GPUS_TO_SHOW_SELECTION) {
|
||||
} else if (useGPUsField.options.length >= MIN_GPUS_TO_SHOW_SELECTION) {
|
||||
gpuSettingEntry.style.display = ''
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user