Spaces:
Sleeping
Sleeping
File size: 544 Bytes
67d59a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
from pipeline import load_pipeline_assets, sample_batch
def main() -> None:
"""Example script showing how to invoke the diffusion pipeline."""
load_pipeline_assets()
print("✅ Model loaded successfully!")
denoiser_state, history = sample_batch(
"ddim",
n_steps=10,
n_samples=5,
seed=456,
keep_history=True,
)
print(f"state.position shape: {denoiser_state.integrator_state.position.shape}")
print(f"History length: {len(history)}")
if __name__ == "__main__":
main()
|