Download deploy/diffsynth/utils/state_dict_converters/ideogram4_text_encoder.py from Agnes-AI/Agnes-Video-H3-MoE: direct link, hf CLI and curl.
- Browser
- Download file 201 Bytes
-
https://huggingface.co/Agnes-AI/Agnes-Video-H3-MoE/resolve/main/deploy/diffsynth/utils/state_dict_converters/ideogram4_text_encoder.py
- Command line
-
hf download hf://Agnes-AI/Agnes-Video-H3-MoE/deploy/diffsynth/utils/state_dict_converters/ideogram4_text_encoder.py
-
curl -L -o ideogram4_text_encoder.py https://huggingface.co/Agnes-AI/Agnes-Video-H3-MoE/resolve/main/deploy/diffsynth/utils/state_dict_converters/ideogram4_text_encoder.py
201 Bytes
| def Ideogram4TextEncoderStateDictConverter(state_dict): | |
| # `Ideogram4TextEncoder` holds the checkpoint's model under `self.model`. | |
| return {"model." + key: state_dict[key] for key in state_dict} | |