MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / is_dev

Function is_dev

models/flux.py:112–117  ·  view source on GitHub ↗
(safetensors_path)

Source from the content-addressed store, hash-verified

110
111
112def is_dev(safetensors_path):
113 with safe_open(safetensors_path, framework='pt', device='cpu') as f:
114 for key in f.keys():
115 if key.startswith('guidance_in'):
116 return True
117 return False
118
119
120def time_shift(mu: float, sigma: float, t: torch.Tensor):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected