Spaces:
Runtime error
Runtime error
Download modules/xadapter/utils.py from bilegentile/test: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/bilegentile/test/resolve/main/modules/xadapter/utils.py
- Command line
-
hf download hf://spaces/bilegentile/test/modules/xadapter/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/bilegentile/test/resolve/main/modules/xadapter/utils.py
462 Bytes
| import os | |
| import imageio | |
| import numpy as np | |
| from typing import Union | |
| import torch | |
| import torchvision | |
| import torch.distributed as dist | |
| from safetensors import safe_open | |
| from tqdm import tqdm | |
| from einops import rearrange | |
| from model.convert_from_ckpt import convert_ldm_unet_checkpoint, convert_ldm_clip_checkpoint, convert_ldm_vae_checkpoint | |
| # from animatediff.utils.convert_lora_safetensor_to_diffusers import convert_lora, convert_motion_lora_ckpt_to_diffusers |