Skip to content

"Segmentation fault" if numpy>=2 #18

Description

@al-zatv-mybuddy-ai

I have "Segmentation fault" error during creating of DecodableCtc in lines:

            log_probs = log_probs.squeeze(0).cpu().numpy()
            decodable = DecodableCtc(log_probs, offset=n)

of icefall/egs/librispeech/ASR/zipformer/onnx_pretrained_ctc_HLG_streaming.py

Fix: python -m pip uninstall numpy; python -m pip install 'numpy<2'
Uninstalled numpy have version 2.1.2, newly installed numpy was 1.26.4.

Expected behaviour: to have requirement to numpy version in kaldi_decoder metadata, or to show meaningful error during initialization of kaldi_decoder or DecodableCtc , or to make it work with both numpy versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions