﻿# SCNet on CPU and ONNX: keep the benchmark boundaries

SCNet’s original single-thread CPU ratio and a later ONNX export comparison use different baselines, pipeline boundaries and quality summaries.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/scnet-cpu-onnx-separation-benchmark-boundaries/
Language: en

## Read the original CPU comparison literally

SCNet compresses a music spectrogram unevenly across frequency bands before separating drums, bass, vocals and other material. Its sparse encoder allocates more modelling capacity to information-rich regions. The [original paper](https://arxiv.org/pdf/2401.13276) reports 9.0 dB average SDR on MUSDB18-HQ without additional training data. That is an evaluation result for a specified model and dataset, rather than a promise about every genre or recording.

Its CPU inference headline is equally bounded. The paper measures a single thread on an Intel Xeon Platinum 8372HC and reports a real-time factor of 0.669 for the selected configuration, against 1.38 for HT Demucs. Here real-time factor means processing time divided by audio duration, so lower is better. The resulting roughly 48% time ratio cannot be transferred to an arbitrary laptop or a different implementation.

## Model size and training data change the comparison

The base architecture and SCNet-large are separate configurations. The paper also distinguishes training on the original dataset from training with additional MoisesDB material. Mixing the strongest quality row, smallest architecture and fastest compression setting would invent a configuration that the table does not evaluate.

The [official repository](https://github.com/starrytong/SCNet) provides model code and released checkpoints, including the large variant. Input normalisation and reconstruction remain part of the separation pipeline. A deployment should preserve checkpoint identity and preprocessing, rather than assuming that any file bearing the SCNet name reproduces the paper. The [software reproducibility guide](/journal/software-stack-reproducibility/) explains how model and runtime versions belong in the same measurement record.

## ONNX introduces a separate deployment boundary

A later [Demixr export report](https://raw.githubusercontent.com/demixr/scnet-executorch/89f043bb939eb8726e9875d05e480b2a007fabc0/README.md) packages fixed-length spectral cores for ONNX Runtime CPU, Core ML and ExecuTorch Vulkan. Decoding, spectral transformation, normalisation, inverse transformation and overlap-add remain outside that core in the application. Timing a core invocation alone therefore does not measure complete song processing or model startup.

The export maintainer reports a comparison on a complete collection of short test samples: ONNX SCNet was 25% faster than that project's HTDemucs ONNX baseline, with average per-stem median SDR higher by 0.34 dB. Bass was lower by 0.74 dB. This is a separate owner-run export comparison, not a replication of the paper's single-thread CPU ratio. The average improvement does not mean every stem improves.

## Compatibility is distinct from performance

The export report also distinguishes warmed Core ML inference from its first run. Its Vulkan compatibility timing comes from an Android emulator using SwiftShader; that observation cannot establish physical mobile-GPU speed. These details demonstrate why a successful exported graph and a favourable backend label are insufficient to predict latency on another device.

A useful acceptance comparison retains full-song wall time, segment size and overlap, thread count, hardware, runtime and the actual checkpoint. It checks reconstructed waveforms and per-stem quality as well as output shapes. The [benchmark method guide](/journal/inference-benchmark-method/) helps separate cold loading, warmed inference and whole-pipeline work. SCNet offers concrete evidence of a quality–compute trade-off, but original CPU timing and later export timing answer different deployment questions.
