Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.