Spaces:
Runtime error
Runtime error
Download preprocess/tools/note_transcription/modules/pe/rmvpe/seq.py from AlexthePromptCoder/SoulX-Singer: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/AlexthePromptCoder/SoulX-Singer/resolve/main/preprocess/tools/note_transcription/modules/pe/rmvpe/seq.py
- Command line
-
hf download hf://spaces/AlexthePromptCoder/SoulX-Singer/preprocess/tools/note_transcription/modules/pe/rmvpe/seq.py
-
curl -L -o seq.py https://huggingface.co/spaces/AlexthePromptCoder/SoulX-Singer/resolve/main/preprocess/tools/note_transcription/modules/pe/rmvpe/seq.py
332 Bytes
| import torch.nn as nn | |
| class BiGRU(nn.Module): | |
| def __init__(self, input_features, hidden_features, num_layers): | |
| super(BiGRU, self).__init__() | |
| self.gru = nn.GRU(input_features, hidden_features, num_layers=num_layers, batch_first=True, bidirectional=True) | |
| def forward(self, x): | |
| return self.gru(x)[0] | |