HumanSD / models /model_utils.py
liyy201912's picture
Upload folder using huggingface_hub
cc0dd3c
raw
history blame
174 Bytes
import torch
from torch import nn
from torch.nn import functional as F
def zero_module(module):
for p in module.parameters():
nn.init.zeros_(p)
return module