carpedm20 commited on
Commit
afcb73f
·
verified ·
1 Parent(s): 108f04d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +33 -0
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BiRefNet TensorRT Engine
2
+
3
+ Pre-built TensorRT engine for [BiRefNet](ZhengPeng7/BiRefNet_dynamic) background removal.
4
+
5
+ ## Specifications
6
+
7
+ | Setting | Value |
8
+ |---------|-------|
9
+ | Resolution | 1024x1024 |
10
+ | Batch Size | 1-8 |
11
+ | Precision | fp16 |
12
+ | TensorRT | 10.14.1.48 |
13
+ | Built on | NVIDIA GeForce RTX 4090 |
14
+ | Engine Size | 461.26 MB |
15
+
16
+ ## Usage
17
+
18
+ The engine is automatically downloaded by `ai/ai/models/birefnet.py` when TensorRT is enabled.
19
+
20
+ ```python
21
+ from ai.models.birefnet import BiRefNetSegmentationModel
22
+
23
+ model = BiRefNetSegmentationModel(use_tensorrt=True)
24
+ result = await model.run(image, payload=payload)
25
+ ```
26
+
27
+ ## Rebuild
28
+
29
+ ```bash
30
+ make run-ai-local -- python -m scripts.tensorrt.birefnet --force
31
+ ```
32
+
33
+ Built at: 2026-01-22 07:02:11 UTC