mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 04:01:10 +01:00
fix lint
This commit is contained in:
@@ -132,7 +132,8 @@ class ANSDFSMNPipeline(Pipeline):
|
||||
if len(data1.shape) > 1:
|
||||
data1 = data1[:, 0]
|
||||
if fs != self.SAMPLE_RATE:
|
||||
data1 = librosa.resample(data1, orig_sr=fs, target_sr=self.SAMPLE_RATE)
|
||||
data1 = librosa.resample(
|
||||
data1, orig_sr=fs, target_sr=self.SAMPLE_RATE)
|
||||
data = data1 * 32768
|
||||
data_tensor = torch.from_numpy(data).type(torch.FloatTensor)
|
||||
return data_tensor
|
||||
|
||||
Reference in New Issue
Block a user