Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
liyy201912
/
HumanSD
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
55d0d55
HumanSD
/
models
/
model_utils.py
liyy201912
Upload folder using huggingface_hub
cc0dd3c
over 1 year ago
raw
Copy download link
history
blame
Safe
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