Skip to content

Tests for RADE V2 C Port#70

Open
drowe67 wants to merge 12 commits into
mainfrom
dr-radev2
Open

Tests for RADE V2 C Port#70
drowe67 wants to merge 12 commits into
mainfrom
dr-radev2

Conversation

@drowe67
Copy link
Copy Markdown
Owner

@drowe67 drowe67 commented May 2, 2026

Note GitHub workflow tests run here will only test Python code, as that's the default. See https://github.com/drowe67/radae_nopy/tree/dr-radev2 for V2 C Port test results.

drowe67 and others added 2 commits May 2, 2026 15:45
Exports CoreEncoderStatefull, CoreDecoderStatefull, and FrameSyncNet
weights to C source files (rade_enc_v2_data, rade_dec_v2_data, rade_sync_data)
for use in the radae_nopy C port.

Mirrors the rx2.py weight loading pattern: instantiate with w1_dec=w1_dec_stateful=128,
filter mismatched checkpoint entries, then use core_encoder/decoder_statefull_load_state_dict()
to copy weights from the trained CoreEncoder/Decoder into the stateful variants.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
stateful_encoder_v2.py: reference Python script that runs CoreEncoderStatefull
and CoreDecoderStatefull one step at a time, matching C port behaviour.
Uses bottleneck=0 and rx2.py weight-loading pattern.

CMakeLists.txt: add radae_nopy_v2_enc and radae_nopy_v2_dec ctests.
Rename existing V1 nopy ctests to radae_nopy_v1_* for clarity.
Both V2 tests pass with loss 0.096 (enc: C enc -> Python dec,
dec: Python enc -> C dec vs Python dec, delta 0.000).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
drowe67 and others added 10 commits May 3, 2026 05:50
Compares C radae_v2_tx IQ output against tx2.py reference.
Checks data diff_rms/sig_rms < 3% and EOO max diff < 1e-4.
Observed: 1.2% data diff (encoder float differences), 9e-6 EOO diff.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests the full C tx -> C rx pipeline at high SNR (no noise):
lpcnet_demo features -> radae_v2_tx -> radae_v2_rx -> loss check.
Loss threshold 0.2 (observed 0.083 noiseless).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Four new ctests (radae_nopy_v2_rx_awgn, radae_nopy_v2_rx_awgn_low,
radae_nopy_v2_rx_mpp, radae_nopy_v2_rx_mpp_low) check that the C port
of the V2 receiver (radae_v2_rx) achieves acceptable loss vs the
reference features across AWGN and MPP channels at high and low SNR.
Each test uses inference.sh to generate channel IQ, decodes with the
C receiver, and checks the result with loss.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds three new ctests for the RADE V2 C receiver:
- radae_nopy_v2_rx_eoo: EOO detection on MPP channel at EbNodB=8
- radae_nopy_v2_rx_snr_high: SNR estimator at high SNR (EbNodB=12, tol ±3.0 dB)
- radae_nopy_v2_rx_snr_low: SNR estimator at low SNR (EbNodB=2, tol ±2.0 dB)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds guidance for contributors on test types, reproducibility
requirements, and how to perform a software-only loss baseline test
using tx2.py, rx2.py, and loss.py. Also improves the Stored File Tests
section with clearer OTA vs simulated channel paths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant