diffsynth-engine 0.6.1.dev29__tar.gz → 0.6.1.dev31__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/PKG-INFO +1 -1
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/wan_image_encoder.py +1 -1
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/wan_text_encoder.py +22 -18
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/base.py +30 -9
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine.egg-info/PKG-INFO +1 -1
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/.gitattributes +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/.gitignore +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/.pre-commit-config.yaml +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/LICENSE +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/MANIFEST.in +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/README.md +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/assets/dingtalk.png +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/assets/showcase.jpeg +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/assets/tongyi.svg +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/base_scheduler.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/flow_match/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/flow_match/flow_beta.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/flow_match/flow_ddim.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/flow_match/recifited_flow.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/stable_diffusion/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/stable_diffusion/beta.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/stable_diffusion/ddim.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/stable_diffusion/exponential.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/stable_diffusion/karras.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/stable_diffusion/linear.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/noise_scheduler/stable_diffusion/sgm_uniform.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/flow_match/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/flow_match/flow_match_euler.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/brownian_tree.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/ddpm.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/deis.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/dpmpp_2m.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/dpmpp_2m_sde.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/dpmpp_3m_sde.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/epsilon.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/euler.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/sampler/stable_diffusion/euler_ancestral.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/components/vae.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/flux/flux_dit.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/flux/flux_text_encoder.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/flux/flux_vae.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/qwen_image/qwen2_5_vl_config.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/qwen_image/qwen2_5_vl_vision_config.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/qwen_image/qwen_image_vae.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/qwen_image/qwen_image_vae_keymap.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/sd/sd_text_encoder.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/sd/sd_unet.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/sd3/sd3_dit.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/sd3/sd3_text_encoder.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/sdxl/sdxl_text_encoder.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/sdxl/sdxl_unet.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan2.1_flf2v_14b.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan2.1_i2v_14b.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan2.1_t2v_1.3b.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan2.1_t2v_14b.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan2.2_i2v_a14b.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan2.2_s2v_14b.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan2.2_t2v_a14b.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan2.2_ti2v_5b.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/dit/wan_dit_keymap.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/vae/wan2.1_vae.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/vae/wan2.2_vae.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/models/wan/vae/wan_vae_keymap.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/flux/tokenizer_1/merges.txt +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/flux/tokenizer_1/special_tokens_map.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/flux/tokenizer_1/tokenizer_config.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/flux/tokenizer_1/vocab.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/flux/tokenizer_2/special_tokens_map.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/flux/tokenizer_2/spiece.model +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/flux/tokenizer_2/tokenizer.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/flux/tokenizer_2/tokenizer_config.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/qwen_image/qwen2_vl_image_processor.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/qwen_image/tokenizer/added_tokens.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/qwen_image/tokenizer/merges.txt +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/qwen_image/tokenizer/special_tokens_map.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/qwen_image/tokenizer/tokenizer.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/qwen_image/tokenizer/tokenizer_config.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/qwen_image/tokenizer/vocab.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/sdxl/tokenizer/merges.txt +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/sdxl/tokenizer/special_tokens_map.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/sdxl/tokenizer/tokenizer_config.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/sdxl/tokenizer/vocab.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/sdxl/tokenizer_2/merges.txt +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/sdxl/tokenizer_2/special_tokens_map.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/sdxl/tokenizer_2/tokenizer_config.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/sdxl/tokenizer_2/vocab.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/wan/umt5-xxl/special_tokens_map.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/wan/umt5-xxl/spiece.model +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/wan/umt5-xxl/tokenizer.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/conf/tokenizers/wan/umt5-xxl/tokenizer_config.json +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/configs/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/configs/controlnet.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/configs/pipeline.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/kernels/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/base.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/attention.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/lora.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/lora_nunchaku.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/relative_position_emb.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/timestep.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/transformer_helper.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/unet_helper.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/video_sparse_attention.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/flux/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/flux/flux_controlnet.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/flux/flux_dit.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/flux/flux_dit_fbcache.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/flux/flux_ipadapter.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/flux/flux_redux.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/flux/flux_text_encoder.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/flux/flux_vae.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/hunyuan3d/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/hunyuan3d/dino_image_encoder.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/hunyuan3d/hunyuan3d_dit.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/hunyuan3d/hunyuan3d_vae.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/hunyuan3d/moe.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/hunyuan3d/surface_extractor.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/hunyuan3d/volume_decoder.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/qwen_image/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/qwen_image/qwen2_5_vl.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/qwen_image/qwen_image_dit.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/qwen_image/qwen_image_dit_fbcache.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/qwen_image/qwen_image_dit_nunchaku.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/qwen_image/qwen_image_vae.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd/sd_controlnet.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd/sd_text_encoder.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd/sd_unet.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd/sd_vae.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd3/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd3/sd3_dit.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd3/sd3_text_encoder.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd3/sd3_vae.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sdxl/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sdxl/sdxl_controlnet.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sdxl/sdxl_text_encoder.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sdxl/sdxl_unet.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sdxl/sdxl_vae.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/text_encoder/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/text_encoder/clip.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/text_encoder/siglip.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/text_encoder/t5.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/vae/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/vae/vae.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/wan_audio_encoder.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/wan_dit.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/wan_s2v_dit.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/wan_vae.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/flux_image.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/hunyuan3d_shape.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/qwen_image.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/sd_image.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/sdxl_image.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/utils.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/wan_s2v.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/wan_video.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/processor/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/processor/canny_processor.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/processor/depth_processor.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/base.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/clip.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/qwen2.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/qwen2_vl_image_processor.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/qwen2_vl_processor.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/t5.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/wan.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tools/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tools/flux_inpainting_tool.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tools/flux_outpainting_tool.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tools/flux_reference_tool.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tools/flux_replace_tool.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/cache.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/constants.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/download.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/env.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/flag.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/fp8_linear.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/gguf.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/image.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/loader.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/lock.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/logging.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/memory/__init__.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/memory/linear_regression.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/memory/memory_predcit_model.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/offload.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/onnx.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/parallel.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/platform.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/process_group.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/prompt.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/video.py +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine.egg-info/SOURCES.txt +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine.egg-info/dependency_links.txt +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine.egg-info/requires.txt +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine.egg-info/top_level.txt +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/docs/tutorial.md +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/docs/tutorial_zh.md +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/pyproject.toml +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/setup.cfg +0 -0
- {diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/setup.py +0 -0
|
@@ -439,7 +439,7 @@ class WanImageEncoder(PreTrainedModel):
|
|
|
439
439
|
def __init__(self, device: str = "cuda:0", dtype: torch.dtype = torch.bfloat16):
|
|
440
440
|
super().__init__()
|
|
441
441
|
# init model
|
|
442
|
-
self.model, self.transforms = clip_xlm_roberta_vit_h_14(dtype=torch.float32, device=
|
|
442
|
+
self.model, self.transforms = clip_xlm_roberta_vit_h_14(dtype=torch.float32, device=device)
|
|
443
443
|
|
|
444
444
|
def encode_image(self, images: List[torch.Tensor]):
|
|
445
445
|
# preprocess
|
|
@@ -38,19 +38,20 @@ class T5LayerNorm(nn.Module):
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
class T5Attention(nn.Module):
|
|
41
|
-
def __init__(self, dim, dim_attn, num_heads, dropout=0.0):
|
|
41
|
+
def __init__(self, dim, dim_attn, num_heads, dropout=0.0, device="cuda:0"):
|
|
42
42
|
assert dim_attn % num_heads == 0
|
|
43
43
|
super(T5Attention, self).__init__()
|
|
44
44
|
self.dim = dim
|
|
45
45
|
self.dim_attn = dim_attn
|
|
46
46
|
self.num_heads = num_heads
|
|
47
47
|
self.head_dim = dim_attn // num_heads
|
|
48
|
+
self.device = device
|
|
48
49
|
|
|
49
50
|
# layers
|
|
50
|
-
self.q = nn.Linear(dim, dim_attn, bias=False)
|
|
51
|
-
self.k = nn.Linear(dim, dim_attn, bias=False)
|
|
52
|
-
self.v = nn.Linear(dim, dim_attn, bias=False)
|
|
53
|
-
self.o = nn.Linear(dim_attn, dim, bias=False)
|
|
51
|
+
self.q = nn.Linear(dim, dim_attn, bias=False, device=device)
|
|
52
|
+
self.k = nn.Linear(dim, dim_attn, bias=False, device=device)
|
|
53
|
+
self.v = nn.Linear(dim, dim_attn, bias=False, device=device)
|
|
54
|
+
self.o = nn.Linear(dim_attn, dim, bias=False, device=device)
|
|
54
55
|
self.dropout = nn.Dropout(dropout)
|
|
55
56
|
|
|
56
57
|
def forward(self, x, context=None, mask=None, pos_bias=None):
|
|
@@ -90,15 +91,16 @@ class T5Attention(nn.Module):
|
|
|
90
91
|
|
|
91
92
|
|
|
92
93
|
class T5FeedForward(nn.Module):
|
|
93
|
-
def __init__(self, dim, dim_ffn, dropout=0.0):
|
|
94
|
+
def __init__(self, dim, dim_ffn, dropout=0.0, device="cuda:0"):
|
|
94
95
|
super(T5FeedForward, self).__init__()
|
|
95
96
|
self.dim = dim
|
|
96
97
|
self.dim_ffn = dim_ffn
|
|
98
|
+
self.device = device
|
|
97
99
|
|
|
98
100
|
# layers
|
|
99
|
-
self.gate = nn.Sequential(nn.Linear(dim, dim_ffn, bias=False), GELU())
|
|
100
|
-
self.fc1 = nn.Linear(dim, dim_ffn, bias=False)
|
|
101
|
-
self.fc2 = nn.Linear(dim_ffn, dim, bias=False)
|
|
101
|
+
self.gate = nn.Sequential(nn.Linear(dim, dim_ffn, bias=False, device=device), GELU())
|
|
102
|
+
self.fc1 = nn.Linear(dim, dim_ffn, bias=False, device=device)
|
|
103
|
+
self.fc2 = nn.Linear(dim_ffn, dim, bias=False, device=device)
|
|
102
104
|
self.dropout = nn.Dropout(dropout)
|
|
103
105
|
|
|
104
106
|
def forward(self, x):
|
|
@@ -110,7 +112,7 @@ class T5FeedForward(nn.Module):
|
|
|
110
112
|
|
|
111
113
|
|
|
112
114
|
class T5SelfAttention(nn.Module):
|
|
113
|
-
def __init__(self, dim, dim_attn, dim_ffn, num_heads, num_buckets, shared_pos=True, dropout=0.0):
|
|
115
|
+
def __init__(self, dim, dim_attn, dim_ffn, num_heads, num_buckets, shared_pos=True, dropout=0.0, device="cuda:0"):
|
|
114
116
|
super(T5SelfAttention, self).__init__()
|
|
115
117
|
self.dim = dim
|
|
116
118
|
self.dim_attn = dim_attn
|
|
@@ -118,13 +120,14 @@ class T5SelfAttention(nn.Module):
|
|
|
118
120
|
self.num_heads = num_heads
|
|
119
121
|
self.num_buckets = num_buckets
|
|
120
122
|
self.shared_pos = shared_pos
|
|
123
|
+
self.device = device
|
|
121
124
|
|
|
122
125
|
# layers
|
|
123
126
|
self.norm1 = T5LayerNorm(dim)
|
|
124
|
-
self.attn = T5Attention(dim, dim_attn, num_heads, dropout)
|
|
127
|
+
self.attn = T5Attention(dim, dim_attn, num_heads, dropout, device)
|
|
125
128
|
self.norm2 = T5LayerNorm(dim)
|
|
126
|
-
self.ffn = T5FeedForward(dim, dim_ffn, dropout)
|
|
127
|
-
self.pos_embedding = None if shared_pos else T5RelativeEmbedding(num_buckets, num_heads, bidirectional=True)
|
|
129
|
+
self.ffn = T5FeedForward(dim, dim_ffn, dropout, device)
|
|
130
|
+
self.pos_embedding = None if shared_pos else T5RelativeEmbedding(num_buckets, num_heads, bidirectional=True, device=device)
|
|
128
131
|
|
|
129
132
|
def forward(self, x, mask=None, pos_bias=None):
|
|
130
133
|
e = pos_bias if self.shared_pos else self.pos_embedding(x.size(1), x.size(1))
|
|
@@ -134,15 +137,16 @@ class T5SelfAttention(nn.Module):
|
|
|
134
137
|
|
|
135
138
|
|
|
136
139
|
class T5RelativeEmbedding(nn.Module):
|
|
137
|
-
def __init__(self, num_buckets, num_heads, bidirectional, max_dist=128):
|
|
140
|
+
def __init__(self, num_buckets, num_heads, bidirectional, max_dist=128, device="cuda:0"):
|
|
138
141
|
super(T5RelativeEmbedding, self).__init__()
|
|
139
142
|
self.num_buckets = num_buckets
|
|
140
143
|
self.num_heads = num_heads
|
|
141
144
|
self.bidirectional = bidirectional
|
|
142
145
|
self.max_dist = max_dist
|
|
146
|
+
self.device = device
|
|
143
147
|
|
|
144
148
|
# layers
|
|
145
|
-
self.embedding = nn.Embedding(num_buckets, num_heads)
|
|
149
|
+
self.embedding = nn.Embedding(num_buckets, num_heads, device=device)
|
|
146
150
|
|
|
147
151
|
def forward(self, lq, lk):
|
|
148
152
|
device = self.embedding.weight.device
|
|
@@ -257,12 +261,12 @@ class WanTextEncoder(PreTrainedModel):
|
|
|
257
261
|
self.shared_pos = shared_pos
|
|
258
262
|
|
|
259
263
|
# layers
|
|
260
|
-
self.token_embedding = vocab if isinstance(vocab, nn.Embedding) else nn.Embedding(vocab, dim)
|
|
261
|
-
self.pos_embedding = T5RelativeEmbedding(num_buckets, num_heads, bidirectional=True) if shared_pos else None
|
|
264
|
+
self.token_embedding = vocab if isinstance(vocab, nn.Embedding) else nn.Embedding(vocab, dim, device=device)
|
|
265
|
+
self.pos_embedding = T5RelativeEmbedding(num_buckets, num_heads, bidirectional=True, device=device) if shared_pos else None
|
|
262
266
|
self.dropout = nn.Dropout(dropout)
|
|
263
267
|
self.blocks = nn.ModuleList(
|
|
264
268
|
[
|
|
265
|
-
T5SelfAttention(dim, dim_attn, dim_ffn, num_heads, num_buckets, shared_pos, dropout)
|
|
269
|
+
T5SelfAttention(dim, dim_attn, dim_ffn, num_heads, num_buckets, shared_pos, dropout, device)
|
|
266
270
|
for _ in range(num_layers)
|
|
267
271
|
]
|
|
268
272
|
)
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/base.py
RENAMED
|
@@ -74,9 +74,9 @@ class BasePipeline:
|
|
|
74
74
|
component.load_state_dict(state_dict, assign=True)
|
|
75
75
|
component.to(device=device, dtype=dtype, non_blocking=True)
|
|
76
76
|
|
|
77
|
-
def
|
|
77
|
+
def _load_lora_state_dicts(
|
|
78
78
|
self,
|
|
79
|
-
|
|
79
|
+
lora_state_dict_list: List[Tuple[Dict[str, torch.Tensor], Union[float, LoraConfig], str]],
|
|
80
80
|
fused: bool = True,
|
|
81
81
|
save_original_weight: bool = False,
|
|
82
82
|
lora_converter: Optional[LoRAStateDictConverter] = None,
|
|
@@ -84,29 +84,30 @@ class BasePipeline:
|
|
|
84
84
|
if not lora_converter:
|
|
85
85
|
lora_converter = self.lora_converter
|
|
86
86
|
|
|
87
|
-
for
|
|
87
|
+
for state_dict, lora_item, lora_name in lora_state_dict_list:
|
|
88
88
|
if isinstance(lora_item, float):
|
|
89
89
|
lora_scale = lora_item
|
|
90
90
|
scheduler_config = None
|
|
91
|
-
|
|
91
|
+
elif isinstance(lora_item, LoraConfig):
|
|
92
92
|
lora_scale = lora_item.scale
|
|
93
93
|
scheduler_config = lora_item.scheduler_config
|
|
94
|
+
else:
|
|
95
|
+
raise ValueError(f"lora_item must be float or LoraConfig, got {type(lora_item)}")
|
|
94
96
|
|
|
95
|
-
logger.info(f"loading lora from {
|
|
96
|
-
state_dict = load_file(lora_path, device=self.device)
|
|
97
|
+
logger.info(f"loading lora from state_dict '{lora_name}' with scale={lora_scale}")
|
|
97
98
|
|
|
98
99
|
if scheduler_config is not None:
|
|
99
100
|
self.apply_scheduler_config(scheduler_config)
|
|
100
101
|
logger.info(f"Applied scheduler args from LoraConfig: {scheduler_config}")
|
|
101
102
|
|
|
102
103
|
lora_state_dict = lora_converter.convert(state_dict)
|
|
103
|
-
for model_name,
|
|
104
|
+
for model_name, model_state_dict in lora_state_dict.items():
|
|
104
105
|
model = getattr(self, model_name)
|
|
105
106
|
lora_args = []
|
|
106
|
-
for key, param in
|
|
107
|
+
for key, param in model_state_dict.items():
|
|
107
108
|
lora_args.append(
|
|
108
109
|
{
|
|
109
|
-
"name":
|
|
110
|
+
"name": lora_name,
|
|
110
111
|
"key": key,
|
|
111
112
|
"scale": lora_scale,
|
|
112
113
|
"rank": param["rank"],
|
|
@@ -120,6 +121,26 @@ class BasePipeline:
|
|
|
120
121
|
)
|
|
121
122
|
model.load_loras(lora_args, fused=fused)
|
|
122
123
|
|
|
124
|
+
def load_loras(
|
|
125
|
+
self,
|
|
126
|
+
lora_list: List[Tuple[str, Union[float, LoraConfig]]],
|
|
127
|
+
fused: bool = True,
|
|
128
|
+
save_original_weight: bool = False,
|
|
129
|
+
lora_converter: Optional[LoRAStateDictConverter] = None,
|
|
130
|
+
):
|
|
131
|
+
lora_state_dict_list = []
|
|
132
|
+
for lora_path, lora_item in lora_list:
|
|
133
|
+
logger.info(f"loading lora from {lora_path}")
|
|
134
|
+
state_dict = load_file(lora_path, device=self.device)
|
|
135
|
+
lora_state_dict_list.append((state_dict, lora_item, lora_path))
|
|
136
|
+
|
|
137
|
+
self._load_lora_state_dicts(
|
|
138
|
+
lora_state_dict_list=lora_state_dict_list,
|
|
139
|
+
fused=fused,
|
|
140
|
+
save_original_weight=save_original_weight,
|
|
141
|
+
lora_converter=lora_converter,
|
|
142
|
+
)
|
|
143
|
+
|
|
123
144
|
def load_lora(self, path: str, scale: float, fused: bool = True, save_original_weight: bool = False):
|
|
124
145
|
self.load_loras([(path, scale)], fused, save_original_weight)
|
|
125
146
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/algorithm/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/configs/__init__.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/configs/controlnet.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/configs/pipeline.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/kernels/__init__.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/__init__.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/basic/lora.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd/sd_unet.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd/sd_vae.py
RENAMED
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd3/sd3_dit.py
RENAMED
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/sd3/sd3_vae.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/vae/vae.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/wan_dit.py
RENAMED
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/models/wan/wan_vae.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/sd_image.py
RENAMED
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/utils.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/pipelines/wan_s2v.py
RENAMED
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/processor/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/base.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/clip.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/qwen2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/t5.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tokenizers/wan.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/tools/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/__init__.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/cache.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/constants.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/download.py
RENAMED
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/flag.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/fp8_linear.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/gguf.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/image.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/loader.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/lock.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/logging.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/offload.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/onnx.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/parallel.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/platform.py
RENAMED
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/prompt.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine/utils/video.py
RENAMED
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{diffsynth_engine-0.6.1.dev29 → diffsynth_engine-0.6.1.dev31}/diffsynth_engine.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|