Downloads · 30 days
0
maksim0840/Rust-Game-Items-Recognition
Rust-Game-Items-Recognition is a image feature extraction model from maksim0840. Use it for the image feature extraction task on the model card, and read the license before you ship it in a product. It is set up for onnx. The card lists the license as mit.
Recognizes in-game items from Rust (Facepunch) by their inventory icons.
Downloads · 30 days
0
Access
Public
Updated Sep 5, 2026
Repo size
115 MB
Likes
0
Public
Click a slice to open those files.
.onnx112 MB · 98%
From the Hugging Face model README
Recognizes in-game items from Rust (Facepunch) by their inventory icons.
Input: a single inventory cell crop, RGB, resized to 224×224, pixel values divided by 255 (no normalization), layout [N, 3, 224, 224].
Output: a normalized 256-dimensional embedding.
The model does not predict a class directly. Classification is done by comparing the embedding against precomputed class centroids (centroids.npy, shape [1211, 256]) — the nearest centroid by cosine similarity wins. Predictions below a similarity of 0.73 are rejected as uncertain.
Test accuracy: 99.83% top-1, 99.99% top-5 across 1211 item classes (13,629 real screenshots).
Trained with ArcFace loss on synthetically generated data. Full development process, training notebooks and data generator: GitHub repository
| file | purpose |
|---|---|
item_recognizer.onnx | the model (image → embedding) |
centroids.npy | class centroids [1211, 256], NumPy format |
centroids.pt | same centroids, PyTorch format |
items_meta.json | class index → item name |
preprocess.json | preprocessing parameters and confidence threshold |
Item icons are extracted from Rust game files and remain the property of Facepunch Studios. This is a non-commercial project intended for use alongside the game.