Instructions to use cmes-deepvision/ACR-instance-segmentation-RF-Refinement-FP16-v1.0.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use cmes-deepvision/ACR-instance-segmentation-RF-Refinement-FP16-v1.0.0 with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
ACR Instance Segmentation RF-DETR Refinement FP16 v1.0.0
ACR Refinement์ฉ cmes_RF_Refinement_960_v1.0.0 RF-DETR Seg2XLarge ๋ชจ๋ธ์
RTX 5070๊ณผ RTX 5080์์ ๊ฐ๊ฐ ๋น๋ํ TensorRT FP16 ๋ฐฐํฌ ํจํค์ง์
๋๋ค.
๊ฒ์ฆ ์์ฝ: ๋ ์์ง ๋ชจ๋ ์ ์์ ์ผ๋ก ๋น๋๋๊ณ 350์ฅ ํ๊ฐ์์ NaN/Inf ์์ด ๋์ํ์ต๋๋ค. GT F1์ ์ ์ง ๋๋ ๊ฐ์ ๋์ผ๋ฉฐ E2E ์ถ๋ก ์๋๋ 5๋ฐฐ ์ด์ ํฅ์๋์ต๋๋ค. GPU๋ณ ์์ธ ์ ํ๋์ ์๋ณธ ๋๋น ์ถ๋ ฅ ์ผ์น๋๋ ์๋ ํ์
benchmarks/๋ณด๊ณ ์์์ ํ์ธํ ์ ์์ต๋๋ค.
๊ธฐ์ค ๋ชจ๋ธ ๋ฐ provenance
- ์ ์ฅ์:
cmes-deepvision/ACR-instance-segmentation-RF-Refinement-v1.0.0 - ๊ณ ์ revision:
2ce6b903fd1bd935a32304d5b85ea9e176ae92c7 - ๊ฐ์ค์น:
cmes_RF_Refinement_960_v1.0.0.pth - ๊ฐ์ค์น SHA-256:
06e088c6bbb4c05e4eda2770d4fe625c98cb5ce677e1635a21670238229d7c0d - ONNX SHA-256:
a113f18f9901b2f793fd4ef3d5f56793c530f525c0ba3e099e51977be7c934fd - ํ๊ฐ manifest SHA-256:
51aa6018ab921ecc6e1a953e682a73c156b83f9915d829dad112e750c866265f - ํ๊ฐ selection SHA-256:
507af326ed1d153a7057e22c8cae0b7dd11d94e00fae5374719757cea5c6bbfe - evaluator SHA-256:
c3e6c1d7f51011755e2241f47bb17b392d98c43d959647d0e51694f5287310c1
์์ง ์ ํ
| ๋์ GPU | ์์ง ํ์ผ | ํฌ๊ธฐ | SHA-256 |
|---|---|---|---|
| RTX 5070 | engines/cmes_RF_Refinement_960_v1.0.0.fp16.RTX5070.trt |
81,902,636 bytes | ea40a7fb6cf6955f541ae020398da82403be913e3b6a3829b8a4a9ec3e687213 |
| RTX 5080 | engines/cmes_RF_Refinement_960_v1.0.0.fp16.RTX5080.trt |
82,094,220 bytes | d2185353eaa3adc4209f70772523a0959647f950bd074ed1d1f3472567135a0c |
TensorRT serialized engine์ ๋น๋ GPU, TensorRT ๋ฐ CUDA ํ๊ฒฝ์ ์ข ์๋ฉ๋๋ค. RTX 5070์์๋ RTX 5070 ์์ง์, RTX 5080์์๋ RTX 5080 ์์ง์ ์ฌ์ฉํ์ญ์์ค. ๋ค๋ฅธ GPU์์์ ์ฌ์ฌ์ฉ์ ์ง์ํ์ง ์์ต๋๋ค.
๋ชจ๋ธ ๋ฐ ์ ๋ ฅ
- ๋ชจ๋ธ: RF-DETR Seg2XLarge (
rfdetr==1.9.0) - ์
๋ ฅ: RGB, batch 1,
1 x 3 x 960 x 960 - ์ ๋ฐ๋ ์ ์ฑ
: RF-DETR native export์ TensorRT
fp16=True - ์ ์ถ๋ ฅ binding: FP32
- ์ถ๋ ฅ:
dets [1,300,4],labels [1,300,4],masks [1,300,240,240] - confidence threshold:
0.50 - ์ต๋ detection ์:
300
๊ฒ์ฆ ํ๊ฒฝ
| ํญ๋ชฉ | RTX 5070 | RTX 5080 |
|---|---|---|
| NVIDIA driver | 580.173.02 | 580.173.02 |
| Compute capability | 12.0 | 12.0 |
| Python | 3.12.3 | 3.12.13 |
| PyTorch | 2.11.0+cu128 | 2.9.1+cu128 |
| TorchVision | 0.26.0+cu128 | 0.24.1+cu128 |
| CUDA runtime | 12.8 | 12.8 |
| cuDNN | 91900 | 91002 |
| TensorRT | 10.16.1.11 | 10.16.1.11 |
| NumPy / SciPy | 2.5.2 / 1.18.1 | 2.2.6 / 1.18.0 |
๊ณตํต ONNX๋ RTX 5080 ํ๊ฒฝ์ PyTorch 2.9.1+cu128, CUDA 12.8๋ก exportํ ๋ค
๊ฐ ๋์ GPU์์ ๋ณ๋์ TensorRT ์์ง์ผ๋ก ๋น๋ํ์ต๋๋ค.
์ค์น
python -m pip install -r requirements.txt
๋ค์ด๋ก๋
from huggingface_hub import hf_hub_download
engine_path = hf_hub_download(
repo_id="cmes-deepvision/ACR-instance-segmentation-RF-Refinement-FP16-v1.0.0",
filename="engines/cmes_RF_Refinement_960_v1.0.0.fp16.RTX5080.trt",
)
์ถ๋ก
--engine์ ์๋ตํ๋ฉด ํ์ฌ GPU ์ด๋ฆ์์ RTX 5070/5080 ์์ง์ ์๋ ์ ํํฉ๋๋ค.
python scripts/infer_tensorrt.py image.jpg --threshold 0.50
์์ง์ ๋ช ์ํ๋ ค๋ฉด:
python scripts/infer_tensorrt.py image.jpg \
--engine engines/cmes_RF_Refinement_960_v1.0.0.fp16.RTX5070.trt \
--output-dir outputs
์ถ๋ ฅ ํด๋์๋ mask/bbox overlay JPEG์ detection JSON์ด ์์ฑ๋ฉ๋๋ค.
ํด๋์ค ์์
0 possible
1 impossible
2 under_possible
ํ๊ฐ ๋ฐฉ๋ฒ
๊ณ ์ ๋ Lance Refinement test split 350์ฅ ์ ์ฒด์์ ๋์ผํ ์ ์ฒ๋ฆฌ์ ํ์ฒ๋ฆฌ๋ฅผ
์ ์ฉํ ์๋ณธ PyTorch FP32์ GPU๋ณ TensorRT FP16 ๊ฒฐ๊ณผ๋ฅผ ๋น๊ตํ์ต๋๋ค.
- confidence threshold:
0.50 - backend agreement: class-aware Hungarian matching
- bbox/mask ์ผ์น ํ์ : IoU
>= 0.50 - GT ํ๊ฐ: class-aware score-ordered greedy matching, mask ๋น๊ต
320 x 320 - GT ํ๊ฐ ํด๋์ค:
possible,impossible under_possible: GT ์ง๊ณ์์๋ ์ ์ธํ๊ณ backend agreement์๋ ํฌํจ
๊ธฐ์กด ์๋ณธ ๋ชจ๋ธ ์นด๋์ sanity baseline์ F1 0.581560 (TP/FP/FN = 328/145/327)์ด๊ณ , ์ด๋ฒ paired evaluator์ PyTorch FP32 reference๋ F1
0.581333 (327/143/328)์
๋๋ค. ์ฐจ์ด๋ -0.000227 (-0.0227 pp)์
๋๋ค.
checkpoint PTH์ ํ๊ฐ manifest/selection์ ๋์ผํ๋ฉฐ, ๋
๋ฆฝ ์คํํ๊ฒฝ๊ณผ ๊ธฐ์กด
evaluator ๊ฒฝ๊ณ(model.predict wrapper/direct module, JPEG decodeยทmask resize
runtime ํฌํจ)์์ ๊ด์ฐฐ๋ ๋ฏธ์ธ variation์
๋๋ค. ๋ณด์กด๋ ๊ธฐ์กด evaluator/runtime๋ง์ผ๋ก
๋จ์ผ ์์ธ์ ํ์ ํ ์ ์์ต๋๋ค. ๋ณํ ์ ํ ์ฐจ์ด๋ ๊ฐ ์๋ฒ์์ ๋์ผ
evaluator๋ก ์ธก์ ํ PyTorch FP32โTensorRT FP16 paired ๊ฒฐ๊ณผ๋ง ์ฌ์ฉํ์ต๋๋ค.
Backend agreement
| GPU | BBox P | BBox R | Mask P | Mask R |
|---|---|---|---|---|
| RTX 5070 | 94.48% | 94.68% | 94.06% | 94.26% |
| RTX 5080 | 95.84% | 93.19% | 95.62% | 92.98% |
์ ์์น๋ class-aware IoU 0.50 ๋งค์นญ ๊ธฐ์ค์ผ๋ก ์ธก์ ํ ์๋ณธ PyTorch FP32 ๋๋น TensorRT FP16์ ๊ฐ๋ณ prediction ์ผ์น๋์ ๋๋ค.
GT ์ฑ๋ฅ ๋ณํ
๋ณํ๋ TensorRT FP16 - PyTorch FP32์ด๋ฉฐ, pp๋ percentage point์
๋๋ค.
| GPU | F1 ์๋ณธ โ TRT | F1 ๋ณํ | TP mIoU ์๋ณธ โ TRT | mIoU ๋ณํ | FP ์๋ณธ โ TRT |
|---|---|---|---|---|---|
| RTX 5070 | 0.581333 โ 0.602131 | +2.0798 pp | 0.839419 โ 0.836752 | -0.2666 pp | 143 โ 132 |
| RTX 5080 | 0.581333 โ 0.580935 | -0.0398 pp | 0.839406 โ 0.837796 | -0.1610 pp | 143 โ 134 |
RTX 5080์ ์๋ณธ ๋๋น F1 ๋ณํ๊ฐ -0.0398 pp, TP mIoU ๋ณํ๊ฐ -0.1610 pp๋ก
์ธก์ ๋์ต๋๋ค. RTX 5070์ F1์ด +2.0798 pp, TP mIoU๊ฐ -0.2666 pp์์ต๋๋ค.
RTX 5070์ F1 ๋ณํ์๋ prediction count ์ฐจ์ด๊ฐ ํฌํจ๋๋ฏ๋ก ๋ค๋ฅธ ๋ฐ์ดํฐ์์๋ ๊ฐ์
ํญ์ ํฅ์์ ๋ณด์ฅํ๋ ์์น๋ก ํด์ํ์ง ๋ง์ญ์์ค.
๋ ์์ง ๋ชจ๋ ํ๊ฐํ raw output์ NaN/Inf์ invalid class ID๋ 0๊ฐ์์ต๋๋ค.
์๋
warm-up 5์ฅ ์ดํ ๊ณ ์ ๋ 50์ฅ์ 3ํ ๋ฐ๋ณตํ์ต๋๋ค. E2E๋ ๋ฉ๋ชจ๋ฆฌ ๋ด PIL ์ด๋ฏธ์ง์ ์ ์ฒ๋ฆฌ, ์ถ๋ก , RF-DETR segmentation ํ์ฒ๋ฆฌ ๋ฐ CPU prediction ๋ณํ์ ํฌํจํ๊ณ , ๋์คํฌ I/O์ ๋ชจ๋ธ/์์ง ๋ก๋๋ ์ ์ธํฉ๋๋ค.
| GPU | PyTorch FP32 E2E | TensorRT FP16 E2E | TensorRT E2E FPS | E2E ์๋ ํฅ์ | ์์ง ๋จ๋ |
|---|---|---|---|---|---|
| RTX 5070 | 75.11 ms | 12.62 ms | 79.23 | 5.951x | 10.82 ms / 92.40 FPS |
| RTX 5080 | 51.50 ms | 9.76 ms | 102.43 | 5.275x | 7.14 ms / 140.11 FPS |
์ ์ฒด ์์น, ํด๋์คยทtask๋ณ GT ๊ฒฐ๊ณผ์ ๊ฐ๋ณ acceptance check๋
benchmarks/benchmark_RTX5070.json ๋ฐ benchmarks/benchmark_RTX5080.json์
์์ต๋๋ค. ๊ณต๊ฐ ๋ณด๊ณ ์์์๋ ์ด๋ฏธ์ง๋ณ ๋ ์ฝ๋์ ๋ด๋ถ ์๋ฒ ์๋ณ์ ๋ณด๋ฅผ ์ ๊ฑฐํ์ต๋๋ค.
์ต์ข ํด์
FP16 ์์ง์ ๋ GPU ๋ชจ๋ ์ ํํ ์ถ๋ ฅ์ ๋ด๊ณ GT F1์ ๋์ฒด๋ก ์ ์งํ๋ฉด์ 5๋ฐฐ ์ด์์ E2E ์๋ ํฅ์์ ๋ณด์์ต๋๋ค. ๊ฐ๋ณ prediction์ ์๋ณธ๊ณผ ์์ ํ ๋์ผํ์ง ์์ผ๋ฏ๋ก ์ด์ ๋ฐฐํฌ ์ ์ค์ ๋ฐ์ดํฐ์์ threshold ๋ฏผ๊ฐ๋์ ๋๋ฝยท์ถ๊ฐ detection์ ๊ฒํ ํ์ญ์์ค.
๋ฌด๊ฒฐ์ฑ ํ์ธ
sha256sum -c SHA256SUMS
- Downloads last month
- -