Spaces:
Running
Running
Auto-deploy from GitHub: e1156fe13977a8a88d0d70832354b216355882c4
Browse files
src/musiclime/factorization.py
CHANGED
|
@@ -141,7 +141,9 @@ class OpenUnmixFactorization:
|
|
| 141 |
device=device,
|
| 142 |
)
|
| 143 |
|
| 144 |
-
components = [
|
|
|
|
|
|
|
| 145 |
names = list(prediction.keys())
|
| 146 |
|
| 147 |
return components, names
|
|
|
|
| 141 |
device=device,
|
| 142 |
)
|
| 143 |
|
| 144 |
+
components = [
|
| 145 |
+
prediction[key][0].mean(dim=0).cpu().numpy() for key in prediction
|
| 146 |
+
]
|
| 147 |
names = list(prediction.keys())
|
| 148 |
|
| 149 |
return components, names
|