|
312 | 312 | "model_hash": "0629116fce1472503a66992f96f3eb1a", |
313 | 313 | "model_name": "flux_value_controller", |
314 | 314 | "model_class": "diffsynth.models.flux_value_control.SingleValueEncoder", |
315 | | - } |
| 315 | + }, |
| 316 | + { |
| 317 | + # Example: ModelConfig(model_id="alimama-creative/FLUX.1-dev-Controlnet-Inpainting-Beta", origin_file_pattern="diffusion_pytorch_model.safetensors") |
| 318 | + "model_hash": "52357cb26250681367488a8954c271e8", |
| 319 | + "model_name": "flux_controlnet", |
| 320 | + "model_class": "diffsynth.models.flux_controlnet.FluxControlNet", |
| 321 | + "state_dict_converter": "diffsynth.utils.state_dict_converters.flux_controlnet.FluxControlNetStateDictConverter", |
| 322 | + "extra_kwargs": {"num_joint_blocks": 6, "num_single_blocks": 0, "additional_input_dim": 4}, |
| 323 | + }, |
| 324 | + { |
| 325 | + # Example: ModelConfig(model_id="InstantX/FLUX.1-dev-Controlnet-Union-alpha", origin_file_pattern="diffusion_pytorch_model.safetensors") |
| 326 | + "model_hash": "78d18b9101345ff695f312e7e62538c0", |
| 327 | + "model_name": "flux_controlnet", |
| 328 | + "model_class": "diffsynth.models.flux_controlnet.FluxControlNet", |
| 329 | + "state_dict_converter": "diffsynth.utils.state_dict_converters.flux_controlnet.FluxControlNetStateDictConverter", |
| 330 | + "extra_kwargs": {"num_mode": 10, "mode_dict": {"canny": 0, "tile": 1, "depth": 2, "blur": 3, "pose": 4, "gray": 5, "lq": 6}}, |
| 331 | + }, |
| 332 | + { |
| 333 | + # Example: ModelConfig(model_id="jasperai/Flux.1-dev-Controlnet-Upscaler", origin_file_pattern="diffusion_pytorch_model.safetensors") |
| 334 | + "model_hash": "b001c89139b5f053c715fe772362dd2a", |
| 335 | + "model_name": "flux_controlnet", |
| 336 | + "model_class": "diffsynth.models.flux_controlnet.FluxControlNet", |
| 337 | + "state_dict_converter": "diffsynth.utils.state_dict_converters.flux_controlnet.FluxControlNetStateDictConverter", |
| 338 | + "extra_kwargs": {"num_single_blocks": 0}, |
| 339 | + }, |
| 340 | + { |
| 341 | + # Example: ModelConfig(model_id="ByteDance/InfiniteYou", origin_file_pattern="infu_flux_v1.0/aes_stage2/image_proj_model.bin") |
| 342 | + "model_hash": "c07c0f04f5ff55e86b4e937c7a40d481", |
| 343 | + "model_name": "infiniteyou_image_projector", |
| 344 | + "model_class": "diffsynth.models.flux_infiniteyou.InfiniteYouImageProjector", |
| 345 | + "state_dict_converter": "diffsynth.utils.state_dict_converters.flux_infiniteyou.FluxInfiniteYouImageProjectorStateDictConverter", |
| 346 | + }, |
| 347 | + { |
| 348 | + # Example: ModelConfig(model_id="ByteDance/InfiniteYou", origin_file_pattern="infu_flux_v1.0/aes_stage2/InfuseNetModel/*.safetensors") |
| 349 | + "model_hash": "7f9583eb8ba86642abb9a21a4b2c9e16", |
| 350 | + "model_name": "flux_controlnet", |
| 351 | + "model_class": "diffsynth.models.flux_controlnet.FluxControlNet", |
| 352 | + "state_dict_converter": "diffsynth.utils.state_dict_converters.flux_controlnet.FluxControlNetStateDictConverter", |
| 353 | + "extra_kwargs": {"num_joint_blocks": 4, "num_single_blocks": 10}, |
| 354 | + }, |
| 355 | + { |
| 356 | + # Example: ModelConfig(model_id="DiffSynth-Studio/LoRA-Encoder-FLUX.1-Dev", origin_file_pattern="model.safetensors") |
| 357 | + "model_hash": "77c2e4dd2440269eb33bfaa0d004f6ab", |
| 358 | + "model_name": "flux_lora_encoder", |
| 359 | + "model_class": "diffsynth.models.flux_lora_encoder.FluxLoRAEncoder", |
| 360 | + }, |
| 361 | + { |
| 362 | + # Example: ModelConfig(model_id="DiffSynth-Studio/LoRAFusion-preview-FLUX.1-dev", origin_file_pattern="model.safetensors") |
| 363 | + "model_hash": "30143afb2dea73d1ac580e0787628f8c", |
| 364 | + "model_name": "flux_lora_patcher", |
| 365 | + "model_class": "diffsynth.models.flux_lora_patcher.FluxLoraPatcher", |
| 366 | + }, |
316 | 367 | ] |
317 | 368 |
|
318 | 369 | MODEL_CONFIGS = qwen_image_series + wan_series + flux_series |
0 commit comments