Download diffsynth/utils/state_dict_converters/z_image_dit.py from ViTeX-Bench/ViTeX-Edit-14B: direct link, hf CLI and curl.
- Browser
- Download file 172 Bytes
-
https://huggingface.co/ViTeX-Bench/ViTeX-Edit-14B/resolve/c5afbf279998b75da844c19fb4182e8bf58df875/diffsynth/utils/state_dict_converters/z_image_dit.py
- Command line
-
hf download hf://ViTeX-Bench/ViTeX-Edit-14B@c5afbf279998b75da844c19fb4182e8bf58df875/diffsynth/utils/state_dict_converters/z_image_dit.py
-
curl -L -o z_image_dit.py https://huggingface.co/ViTeX-Bench/ViTeX-Edit-14B/resolve/c5afbf279998b75da844c19fb4182e8bf58df875/diffsynth/utils/state_dict_converters/z_image_dit.py
172 Bytes
| def ZImageDiTStateDictConverter(state_dict): | |
| state_dict_ = {name.replace("model.diffusion_model.", ""): state_dict[name] for name in state_dict} | |
| return state_dict_ | |