Views
No views yet
rf-detr-small.pthdinov2_windowed_small (hidden 256)config.json + preprocessor_config.json + model.safetensorsScripts/convert_detection.py small.
Config values are read from the upstream RFDETRSmallConfig; weights keep their model. prefix and
NCHW conv layout (the Swift loader transposes conv weights to NHWC at load).1import MLXRFDETR
2
3let dir = URL(fileURLWithPath: "rfdetr-small-mlx-fp32") // this repo's downloaded files
4let predictor = try MLXRFDETR.fromPretrained(dir, scoreThreshold: 0.3, nmsThreshold: 0.5)
5let result = try predictor.predict(url: URL(fileURLWithPath: "image.jpg"))LICENSE. Model architecture and weights © Roboflow, Inc. This
repository redistributes a format-converted copy of the upstream Apache-2.0 weights; no weights were
retrained or modified beyond the PyTorch→MLX serialization.