MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / save_downsample

Function save_downsample

python/unet.py:84–88  ·  view source on GitHub ↗
(downsample, path)

Source from the content-addressed store, hash-verified

82
83
84def save_downsample(downsample, path):
85 pathlib.Path(path).mkdir(parents=True, exist_ok=True)
86
87 # Save Conv2d instance
88 save_conv2d(downsample.op, path)
89
90def save_upsample(upsample, path):
91 pathlib.Path(path).mkdir(parents=True, exist_ok=True)

Callers 1

save_unet_input_blocksFunction · 0.85

Calls 1

save_conv2dFunction · 0.85

Tested by

no test coverage detected