MCPcopy Index your code
hub / github.com/huggingface/diffusers / build_config

Function build_config

scripts/convert_prx_to_diffusers.py:48–58  ·  view source on GitHub ↗
(vae_type: str)

Source from the content-addressed store, hash-verified

46
47
48def build_config(vae_type: str) -> Tuple[dict, int]:
49 if vae_type == "flux":
50 cfg = PRXFlux()
51 elif vae_type == "dc-ae":
52 cfg = PRXDCAE()
53 else:
54 raise ValueError(f"Unsupported VAE type: {vae_type}. Use 'flux' or 'dc-ae'")
55
56 config_dict = asdict(cfg)
57 config_dict["axes_dim"] = list(config_dict["axes_dim"]) # type: ignore[index]
58 return config_dict
59
60
61def create_parameter_mapping(depth: int) -> dict:

Callers 1

mainFunction · 0.85

Calls 2

PRXFluxClass · 0.85
PRXDCAEClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…