Download diffusion/model/__init__.py from yyhtbs/pixelart-alpha2rfm: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/yyhtbs/pixelart-alpha2rfm/resolve/main/diffusion/model/__init__.py
- Command line
-
hf download hf://yyhtbs/pixelart-alpha2rfm/diffusion/model/__init__.py
-
curl -L -o __init__.py https://huggingface.co/yyhtbs/pixelart-alpha2rfm/resolve/main/diffusion/model/__init__.py
346 Bytes
| """Diffusion math can be imported without the optional Transformer dependencies.""" | |
| __all__ = ["PixArt", "PixArt_XL_2"] | |
| def __getattr__(name): | |
| from importlib import import_module | |
| nets = import_module(".nets", __name__) | |
| try: | |
| return getattr(nets, name) | |
| except AttributeError: | |
| raise AttributeError(name) from None | |