diff --git a/conda-start.bat b/conda-start.bat index b461fdf..15d15d3 100644 --- a/conda-start.bat +++ b/conda-start.bat @@ -43,7 +43,7 @@ if %errorlevel% == 0 ( rem install CUDA torch CALL pip install torch==2.0.1+cu118 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118 - CALL python main.py --disable-smart-memory + CALL python main.py --disable-smart-memory --preview-method=taesd --force-fp16 --deterministic --use-pytorch-cross-attention ) else ( echo Failed to activate environment... ) diff --git a/web/js/ui_handlers.js b/web/js/ui_handlers.js index 06b8612..fcfb578 100644 --- a/web/js/ui_handlers.js +++ b/web/js/ui_handlers.js @@ -303,9 +303,11 @@ app.registerExtension({ break; case "SliceNode": - chainCallback(nodeType.prototype, "onConnectInput", function (_, inputs) { - this.outputs[0].name = inputs; - this.outputs[0].type = inputs; + chainCallback(nodeType.prototype, "onConnectInput", function (slot, inputs) { + if (slot===0){ + this.outputs[0].name = inputs; + this.outputs[0].type = inputs; + } }) break;