Compare commits

..

4 Commits

Author SHA1 Message Date
V1sionVerse
437cc2b706
Merge e50a36e05c into ed7c2c6579 2026-03-17 15:36:33 +00:00
V1sionVerse
e50a36e05c
Removed whitespace from blank line 2026-03-17 16:36:29 +01:00
V1sionVerse
9ef776b689
Removed trailing whitespace 2026-03-17 16:31:12 +01:00
Christian Byrne
ed7c2c6579
Mark weight_dtype as advanced input in Load Diffusion Model node (#12769)
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.10, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.11, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.12, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-unix-nightly (12.1, , linux, 3.11, [self-hosted Linux], nightly) (push) Waiting to run
Execution Tests / test (macos-latest) (push) Waiting to run
Execution Tests / test (ubuntu-latest) (push) Waiting to run
Execution Tests / test (windows-latest) (push) Waiting to run
Test server launches without errors / test (push) Waiting to run
Unit Tests / test (macos-latest) (push) Waiting to run
Unit Tests / test (ubuntu-latest) (push) Waiting to run
Unit Tests / test (windows-2022) (push) Waiting to run
Mark the weight_dtype parameter in UNETLoader (Load Diffusion Model) as
an advanced input to reduce UI complexity for new users. The parameter
is now hidden behind an expandable Advanced section, matching the
pattern used for other advanced inputs like device, tile_size, and
overlap.

Amp-Thread-ID: https://ampcode.com/threads/T-019cbaf1-d3c0-718e-a325-318baba86dec
2026-03-17 07:24:00 -07:00
2 changed files with 8 additions and 8 deletions

View File

@ -952,7 +952,7 @@ class UNETLoader:
@classmethod
def INPUT_TYPES(s):
return {"required": { "unet_name": (folder_paths.get_filename_list("diffusion_models"), ),
"weight_dtype": (["default", "fp8_e4m3fn", "fp8_e4m3fn_fast", "fp8_e5m2"],)
"weight_dtype": (["default", "fp8_e4m3fn", "fp8_e4m3fn_fast", "fp8_e5m2"], {"advanced": True})
}}
RETURN_TYPES = ("MODEL",)
FUNCTION = "load_unet"

View File

@ -405,15 +405,15 @@ class PromptServer():
if overwrite is not None and (overwrite == "true" or overwrite == "1"):
pass
else:
# Get uploaded file size once
image.file.seek(0, 2) # Seek to end
uploaded_size = image.file.tell()
image.file.seek(0) # Reset to beginning
# Get uploaded file size once
image.file.seek(0, 2) # Seek to end
uploaded_size = image.file.tell()
image.file.seek(0) # Reset to beginning
i = 1
while os.path.exists(filepath):
# Quick size comparison first
existing_size = os.path.getsize(filepath)
# Quick size comparison first
existing_size = os.path.getsize(filepath)
if existing_size == uploaded_size:
if compare_image_hash(filepath, image): #compare hash to prevent saving of duplicates with same name, fix for #3465
image_is_duplicate = True