You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thomas Ward c5a48b15bd
Make default hash lib configurable without code changes via CLI argument (#3947)
* cli_args: Add --duplicate-check-hash-function.

* server.py: compare_image_hash configurable hash function

Uses an argument added in cli_args to specify the type of hashing to default to for duplicate hash checking.  Uses an `eval()` to identify the specific hashlib class to utilize, but ultimately safely operates because we have specific options and only those options/choices in the arg parser.  So we don't have any unsafe input there.

* Add hasher() to node_helpers

* hashlib selection moved to node_helpers

* default-hashing-function instead of dupe checking hasher

This makes a default-hashing-function option instead of previous selected option.

* Use args.default_hashing_function

* Use safer handling for node_helpers.hasher()

Uses a safer handling method than `eval` to evaluate default hashing function.

* Stray parentheses are evil.

* Indentation fix.

Somehow when I hit save I didn't notice I missed a space to make indentation work proper.  Oops!
7 months ago
..
cldm Quick fix for the promax controlnet. 7 months ago
extra_samplers Cleanup uni_pc inpainting. 1 year ago
k_diffusion Switch to the real cfg++ method in the samplers. 8 months ago
ldm AuraFlow model implementation. 8 months ago
sd1_tokenizer Initial commit. 2 years ago
t2i_adapter Controlnet refactor. 8 months ago
taesd Improvements to the TAESD3 implementation. 8 months ago
text_encoders Refactor: Move some code to the comfy/text_encoders folder. 7 months ago
checkpoint_pickle.py Remove pytorch_lightning dependency. 2 years ago
cli_args.py Make default hash lib configurable without code changes via CLI argument (#3947) 7 months ago
clip_config_bigg.json This is unused but it should be 1280. 2 years ago
clip_model.py Always return unprojected pooled output for gligen. 1 year ago
clip_vision.py Replace prints with logging and add --verbose argument. 12 months ago
clip_vision_config_g.json Add support for clip g vision model to CLIPVisionLoader. 2 years ago
clip_vision_config_h.json Add support for unCLIP SD2.x models. 2 years ago
clip_vision_config_vitl.json Add support for unCLIP SD2.x models. 2 years ago
conds.py Fix bug with cosxl edit model. 9 months ago
controlnet.py Add SetUnionControlNetType to set the type of the union controlnet model. 7 months ago
diffusers_convert.py Fix saving text encoder in fp8. 11 months ago
diffusers_load.py Cleanup some unused imports. 1 year ago
gligen.py Fix gligen lowvram mode. 1 year ago
latent_formats.py support TAESD3 (#3738) 8 months ago
lora.py Support AuraFlow Lora and loading model weights in diffusers format. 7 months ago
model_base.py AuraFlow model implementation. 8 months ago
model_detection.py Support AuraFlow Lora and loading model weights in diffusers format. 7 months ago
model_management.py Use fp16 as the default vae dtype for the audio VAE. 8 months ago
model_patcher.py Add sampler_pre_cfg_function (#3979) 8 months ago
model_sampling.py Allow model sampling to set number of timesteps. 7 months ago
ops.py Initial support for the stable audio open model. 8 months ago
options.py Only parse command line args when main.py is called. 1 year ago
sample.py Reshape the empty latent image to the right amount of channels if needed. 9 months ago
sampler_helpers.py Refactor sampler code for more advanced sampler nodes part 2. 11 months ago
samplers.py Add sampler_pre_cfg_function (#3979) 8 months ago
sd.py Refactor: Move some code to the comfy/text_encoders folder. 7 months ago
sd1_clip.py More flexibility with text encoder return values. 8 months ago
sd1_clip_config.json Initial commit. 2 years ago
sd2_clip.py Remove some unused imports. 9 months ago
sd2_clip_config.json Move text_projection to base clip model. 2 years ago
sdxl_clip.py Load the SD3 T5xxl model in the same dtype stored in the checkpoint. 9 months ago
supported_models.py Refactor: Move some code to the comfy/text_encoders folder. 7 months ago
supported_models_base.py Fix issue with sampling_settings persisting across models. 11 months ago
types.py Fix UnetParams annotation typo (#3589) 9 months ago
utils.py Support AuraFlow Lora and loading model weights in diffusers format. 7 months ago