Views
No views yet
1# ImageAI server downloads automatically
2curl -X POST "http://localhost:8001/generate" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "prompt": "a beautiful landscape",
6 "model": "flux1-tensorrt_rtx:dev",
7 "width": 1024,
8 "height": 1024
9 }'1from huggingface_hub import snapshot_download
2
3# Download this specific variant only
4engines_path = snapshot_download(
5 repo_id="imgailab/flux1-trtx-dev-bf16-blackwell"
6)
7
8# Engines are in: engines_path/engines/*.plan1from imageai_server.tensorrt.nvidia_sdxl_pipeline import NVIDIASDXLPipeline
2
3pipeline = NVIDIASDXLPipeline()
4pipeline.load_engines(
5 engine_dir=f"{engines_path}/engines",
6 framework_model_dir=f"{engines_path}/framework",
7 onnx_dir=f"{engines_path}/onnx"
8)
9pipeline.activate_engines()
10
11images, time_ms = pipeline.infer(
12 prompt="a serene mountain landscape",
13 height=1024,
14 width=1024
15)| Metric | Value |
|---|---|
| Memory Usage | TBD |
| Inference Speed | TBD |
| Resolution | 1024x1024 (optimized) |
| Batch Size | 1 (optimized) |
| Precision | DEV |
flux1-trtx-dev-bf16-blackwell/
├── engines/ # TensorRT engine files
│ ├── *.plan # Optimized engines
├── config.json # Configuration metadata
└── README.md # This file