Update app.py
Browse files
app.py
CHANGED
@@ -137,9 +137,10 @@ lossy_input *= mask
|
|
137 |
lossy_input = lossy_input.reshape(-1)
|
138 |
hann = torch.sqrt(torch.hann_window(window))
|
139 |
lossy_input_tensor = torch.tensor(lossy_input)
|
|
|
|
|
140 |
re_im = torch.stft(lossy_input_tensor, window, stride, window=hann, return_complex=False).permute(1, 0, 2).unsqueeze(
|
141 |
-
1).numpy().astype(
|
142 |
-
|
143 |
|
144 |
session, onnx_model, input_names, output_names = load_model(model_ver)
|
145 |
|
|
|
137 |
lossy_input = lossy_input.reshape(-1)
|
138 |
hann = torch.sqrt(torch.hann_window(window))
|
139 |
lossy_input_tensor = torch.tensor(lossy_input)
|
140 |
+
#re_im = torch.stft(lossy_input_tensor, window, stride, window=hann, return_complex=False).permute(1, 0, 2).unsqueeze(
|
141 |
+
#1).numpy().astype(np.float32)
|
142 |
re_im = torch.stft(lossy_input_tensor, window, stride, window=hann, return_complex=False).permute(1, 0, 2).unsqueeze(
|
143 |
+
1).numpy().astype(torch.float16)
|
|
|
144 |
|
145 |
session, onnx_model, input_names, output_names = load_model(model_ver)
|
146 |
|