Buckets:
twanghcmut/backup-foundation-physics / third_party /diffsynth /examples /qwen_image /model_training /scripts /Qwen-Image-Blockwise-ControlNet-Initialize.py
| # This script is for initializing a Qwen-Image-Blockwise-ControlNet | |
| from diffsynth import hash_state_dict_keys | |
| from diffsynth.models.qwen_image_controlnet import QwenImageBlockWiseControlNet | |
| import torch | |
| from safetensors.torch import save_file | |
| controlnet = QwenImageBlockWiseControlNet().to(dtype=torch.bfloat16, device="cuda") | |
| controlnet.init_weight() | |
| state_dict_controlnet = controlnet.state_dict() | |
| print(hash_state_dict_keys(state_dict_controlnet)) | |
| save_file(state_dict_controlnet, "models/blockwise_controlnet.safetensors") | |
Xet Storage Details
- Size:
- 531 Bytes
- Xet hash:
- 0528c787f27cfdd2f12699cb4e29be2e14a8868f7e4e8510a5c945500570e303
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.