ComfyUI/comfy
Jedrzej Kosinski 1dc3da6314
Add most basic Asset support for models (#11315)
* Brought over minimal elements from PR 10045 to reproduce seed_assets and register_assets_system without adding anything to the DB or server routes yet, for now making everything sync (can introduce async once everything is cleaned up and brought over)

* Added db script to insert assets stuff, cleaned up some code; assets (models) now get added/rescanned

* Added support for 5 http endpoints for assets

* Replaced Optional with | None in schemas_in.py and schemas_out.py

* Remove two routes that will not be relevant yet in this PR: HEAD /api/assets/hash/<hash> and PUT /api/assets/<id>/preview

* Remove some functions the two deleted endpoints were using

* Don't show assets scan message upon calling /object_info endpoint

* removed unsued import to satisfy ruff

* Simplified hashing function tpye hint and _hash_file_obj

* Satisfied ruff
2026-01-08 22:21:51 -05:00
..
audio_encoders
cldm
comfy_types
extra_samplers
image_encoders
k_diffusion
ldm Fix import issue. (#11746) 2026-01-08 17:23:59 -05:00
sd1_tokenizer
t2i_adapter
taesd
text_encoders Add memory estimation function to ltxav text encoder. (#11716) 2026-01-07 20:11:22 -05:00
weight_adapter
checkpoint_pickle.py
cli_args.py Add most basic Asset support for models (#11315) 2026-01-08 22:21:51 -05:00
clip_config_bigg.json
clip_model.py
clip_vision_config_g.json
clip_vision_config_h.json
clip_vision_config_vitl_336_llava.json
clip_vision_config_vitl_336.json
clip_vision_config_vitl.json
clip_vision_siglip_384.json
clip_vision_siglip_512.json
clip_vision.py
conds.py
context_windows.py
controlnet.py
diffusers_convert.py
diffusers_load.py
float.py
gligen.py
hooks.py
latent_formats.py
lora_convert.py
lora.py
model_base.py
model_detection.py
model_management.py Better detection if AMD torch compiled with efficient attention. (#11745) 2026-01-08 17:16:58 -05:00
model_patcher.py
model_sampling.py
nested_tensor.py
ops.py
options.py
patcher_extension.py
pixel_space_convert.py
quant_ops.py
rmsnorm.py
sample.py
sampler_helpers.py
samplers.py
sd1_clip_config.json
sd1_clip.py
sd.py Tweak ltxv vae mem estimation. (#11722) 2026-01-07 23:07:05 -05:00
sdxl_clip.py
supported_models_base.py
supported_models.py
utils.py