Smart avatar cropping in rails: face detection with YuNet, ONNX and ActiveStorage
Learn how to implement CPU-efficient, face-aware avatar cropping in Ruby on Rails without external APIs or Python sidecars.
This article breaks down running the sub-2MB YuNet model in-process using ONNX Runtime, Numo::NArray, and ActiveStorage—covering everything from HWC-to-NCHW tensor transformations to custom background analyzers.
Read the full post: https://leopard.in.ua/2026/09/25/smart-avatar-cropping-in-rails
Post a comment