Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/zigma
/ to
Method
to
utils/train_state_utils.py:61–64 ·
view source on GitHub ↗
(self, device)
Source
from the content-addressed store, hash-verified
59
self.load(ckpt_path)
60
61
def
to(self, device):
62
for
key, val in self.__dict__.items():
63
if
isinstance(val, nn.Module):
64
val.to(device)
65
66
67
def
cnt_params(model):
Callers
15
initialize_train_state
Function · 0.95
out2img
Function · 0.80
main
Function · 0.80
get_data_generator
Function · 0.80
get_real_img_generator
Function · 0.80
get_cap_generator
Function · 0.80
main
Function · 0.80
get_cap_generator
Function · 0.80
get_data_generator
Function · 0.80
timestep_embedding
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
Calls
no outgoing calls
Tested by
4
test_sd_1_5
Function · 0.64
test_webdataset_faceshq_sd1_5
Function · 0.64
test_causal_conv1d
Function · 0.64
test_selective_scan
Function · 0.64