Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hackathon 7th] 修复 voxceleb 的类型提升问题 #3944

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

megemini
Copy link
Contributor

@megemini megemini commented Dec 9, 2024

PR types

Bug fixes

PR changes

Others

Describe

修复 voxceleb 的类型提升问题。

错误日志

Traceback (most recent call last):
  File "/home/aistudio/PaddleSpeech/paddlespeech/vector/exps/ecapa_tdnn/train.py", line 366, in <module>
    main(args, config)
  File "/home/aistudio/PaddleSpeech/paddlespeech/vector/exps/ecapa_tdnn/train.py", line 175, in main
    waveforms = waveform_augment(waveforms, augment_pipeline)
  File "/home/aistudio/PaddleSpeech/paddlespeech/vector/io/augment.py", line 896, in waveform_augment
    waveforms_aug = aug(waveforms)  # (N, L)
  File "/home/aistudio/.local/lib/python3.8/site-packages/paddle/nn/layer/layers.py", line 1531, in __call__
    return self.forward(*inputs, **kwargs)
  File "/home/aistudio/PaddleSpeech/paddlespeech/vector/io/augment.py", line 772, in forward
    waveforms = self.drop_chunk(waveforms, lengths)
  File "/home/aistudio/.local/lib/python3.8/site-packages/paddle/nn/layer/layers.py", line 1531, in __call__
    return self.forward(*inputs, **kwargs)
  File "/home/aistudio/PaddleSpeech/paddlespeech/vector/io/augment.py", line 141, in forward
    clean_amplitude = compute_amplitude(waveforms, lengths.unsqueeze(1))
  File "/home/aistudio/PaddleSpeech/paddlespeech/vector/io/signal_processing.py", line 40, in compute_amplitude
    out = wav_sum / lengths
TypeError: (InvalidType) Type promotion only support calculations between floating-point numbers and between complex and real numbers. But got different data type x: float32, y: int64. (at ../paddle/phi/common/type_promotion.h:234)

@zxcd @Liyulingyue @GreatV @enkilee @yinfan98

Copy link

paddle-bot bot commented Dec 9, 2024

Thanks for your contribution!

@mergify mergify bot added the Vector SID/LID/etc. label Dec 9, 2024
Copy link
Collaborator

@zxcd zxcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zxcd zxcd merged commit f0b7f5b into PaddlePaddle:develop Dec 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants