Spaces:
Runtime error
Runtime error
reset seed for remix
Browse files
notebooks/test_model.ipynb
CHANGED
@@ -254,6 +254,7 @@
|
|
254 |
"overlap_samples = overlap_secs * mel.get_sample_rate()\n",
|
255 |
"slice_size = mel.x_res * mel.hop_length\n",
|
256 |
"stride = slice_size - overlap_samples\n",
|
|
|
257 |
"seed = generator.seed()\n",
|
258 |
"print(f'Seed = {seed}')\n",
|
259 |
"track = np.array([])\n",
|
|
|
254 |
"overlap_samples = overlap_secs * mel.get_sample_rate()\n",
|
255 |
"slice_size = mel.x_res * mel.hop_length\n",
|
256 |
"stride = slice_size - overlap_samples\n",
|
257 |
+
"generator = torch.Generator()\n",
|
258 |
"seed = generator.seed()\n",
|
259 |
"print(f'Seed = {seed}')\n",
|
260 |
"track = np.array([])\n",
|