mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-05-05 13:51:17 +00:00
Add monkey patched fairseq package to run on python 3.11 (what is needed for our use of RVC at least)
This commit is contained in:
17
modules/voice_conversion/fairseq/data/num_samples_dataset.py
Normal file
17
modules/voice_conversion/fairseq/data/num_samples_dataset.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Copyright (c) Facebook, Inc. and its affiliates.
|
||||
#
|
||||
# This source code is licensed under the MIT license found in the
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
|
||||
from . import FairseqDataset
|
||||
|
||||
|
||||
class NumSamplesDataset(FairseqDataset):
|
||||
def __getitem__(self, index):
|
||||
return 1
|
||||
|
||||
def __len__(self):
|
||||
return 0
|
||||
|
||||
def collater(self, samples):
|
||||
return sum(samples)
|
||||
Reference in New Issue
Block a user