Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DPS2022/diffusion-posterior-sampling
/ get_sampler
Function
get_sampler
guided_diffusion/gaussian_diffusion.py:25–28 ·
view source on GitHub ↗
(name: str)
Source
from the content-addressed store, hash-verified
23
24
25
def
get_sampler(name: str):
26
if
__SAMPLER__.get(name, None) is None:
27
raise
NameError(f
"Name {name} is not defined!"
)
28
return
__SAMPLER__[name]
29
30
31
def
create_sampler(sampler,
Callers
1
create_sampler
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected