AMD Radeon RX 9070 XT (ROCm on native Windows)¶
One check of EASI on an AMD card, run on 2026-11-15/16. These numbers are kept apart from the NVIDIA tables in results.md and should not be compared with them directly.
Read these first
- Earlier code. The timings come from a build before v0.1.0. Later runs on the same card checked v0.1.0's GPU code paths (12 of 12 steps passed) but did not time the other libraries.
- One pass, noisy. obss/sahi's time moved by up to 27% between two otherwise equal steps, so treat small differences as noise.
- Not a tuned setup. Native Windows 11 with a preview ROCm build (PyTorch 2.12.0+rocm7.14.1, HIP 7.14, torchvision 0.27.0). Do not read these times as the card's limit.
Speed¶
Milliseconds per frame, median, lower is better. 640 px tiles, batch 16, every library with the same weights, tiles and confidence threshold. "EASI" and the other three libraries start from a frame in CPU memory (like for like); "EASI, frame on GPU" starts from a GPU tensor.
FP16¶
| model | frame | EASI | supervision | obss/sahi | Ultralytics tile | EASI, frame on GPU |
|---|---|---|---|---|---|---|
| yolo11n.pt | 1080p | 18.2 | 25.1 | 35.9 | 25.1 | 13.6 |
| yolo11n.pt | 4k | 41.8 | 78.5 | 130.0 | 64.4 | 41.5 |
| yolo11n.pt | 8k | 179.2 | 306.1 | 542.4 | 259.0 | 150.0 |
| yolo11s.pt | 1080p | 23.6 | 29.9 | 41.3 | 30.3 | 22.2 |
| yolo11s.pt | 4k | 63.6 | 98.4 | 138.5 | 85.5 | 62.3 |
| yolo11s.pt | 8k | 272.7 | 390.6 | 650.8 | 362.5 | 246.5 |
FP32¶
| model | frame | EASI | supervision | obss/sahi | Ultralytics tile | EASI, frame on GPU |
|---|---|---|---|---|---|---|
| yolo11n.pt | 1080p | 18.1 | 25.7 | 40.5 | 26.8 | 16.4 |
| yolo11n.pt | 4k | 71.2 | 93.2 | 179.4 | 99.7 | 65.8 |
| yolo11n.pt | 8k | 273.0 | 408.9 | 643.4 | 370.9 | 250.4 |
| yolo11s.pt | 1080p | 34.1 | 41.6 | 49.6 | 41.3 | 31.3 |
| yolo11s.pt | 4k | 120.5 | 139.8 | 201.2 | 133.6 | 115.6 |
| yolo11s.pt | 8k | 484.1 | 598.0 | 865.8 | 583.8 | 462.2 |
EASI's lead is smaller here than on the RTX 3090: EASI took 1.5-1.8x the 3090's time on this card, obss/sahi 1.1-1.2x.
Accuracy¶
yolo11s (COCO weights), VisDrone val (548 images), FP16, default fusion:
| GPU | AP | AP50 | AP_small |
|---|---|---|---|
| RTX 3090 | 0.1923 | 0.3118 | 0.0975 |
| RX 9070 XT | 0.1928 | 0.3114 | 0.0986 |
The two runs also differ in code version and image decoder, and still agree to 0.0005 AP.
Running EASI on AMD¶
Linux (ROCm)¶
This is the standard route: PyTorch's own ROCm wheels, with the amdgpu driver loaded and your
user in the render and video groups. We have not run this route on an AMD card: the
measurements above are from Windows.
PyTorch calls an AMD GPU cuda, so no code changes are needed. Check that it sees the card:
Under WSL2 the plain PyTorch wheels do not see the GPU: install ROCm and PyTorch with AMD's WSL
guide instead, and set HSA_ENABLE_DXG_DETECTION=1. We have not run WSL2 either.
Native Windows: the workarounds we needed¶
We used AMD's Windows build of PyTorch (versions above). On that build:
| problem | workaround |
|---|---|
| The processor's integrated GPU was device 0 | set HIP_VISIBLE_DEVICES=1 to pick the Radeon |
| A process that exited with GPU work still queued hung | call torch.cuda.synchronize() at exit |
Batch norm kernels failed to build: 'type_traits' file not found |
point HIPRTC_COMPILE_OPTIONS_APPEND=-I<folder> at a folder holding a minimal type_traits header |
| Memory-efficient attention gave wrong FP32 values, and it and flash attention failed in FP16 (RT-DETR) | use the math backend only |
| torchvision had no libjpeg or libpng | give EASI a PIL image or NumPy array, not a file path |
The benchmark script needs os.sysconf, which Windows lacks |
supply it in sitecustomize.py (benchmarking only) |
The two Python workarounds can go at the top of your script:
import atexit
import torch
atexit.register(torch.cuda.synchronize)
torch.backends.cuda.enable_flash_sdp(False)
torch.backends.cuda.enable_mem_efficient_sdp(False)
This snippet does what our sitecustomize.py did; it is not that file, and was not run on the
card. For images:
import easi
from PIL import Image
det = easi.predict(Image.open("frame.jpg").convert("RGB"), "yolo11n.pt")
The port of the run script to Windows is not part of this repository.
What EASI does differently on ROCm¶
channels_lastand cuDNN autotuning, on by default on NVIDIA in FP16, are off.- This Windows build has no Triton, so
compilefalls back to the eager network with a warning;UltralyticsAdapter(compile=False)skips the attempt. - TensorRT and GPU JPEG decoding are NVIDIA only.