Views
No views yet
clip.plan - CLIP text encodert5.plan - T5 text encodertransformer.plan - Flux transformer modelvae.plan - VAE decoder1# Example usage with TensorRT-RTX backend
2from nvidia_demos.TensorRT_RTX.demo.flux1_dev.pipelines.flux_pipeline import FluxPipeline
3
4pipeline = FluxPipeline(
5 cache_dir="./cache",
6 hf_token="your_hf_token"
7)
8
9# Load pre-built engines
10pipeline.load_engines(
11 transformer_precision="bf16",
12 opt_batch_size=1,
13 opt_height=1024,
14 opt_width=1024
15)
16
17# Generate image
18image = pipeline.infer(
19 prompt="A beautiful landscape with mountains",
20 height=1024,
21 width=1024
22)