teticio commited on
Commit
0ff9228
1 Parent(s): 7e864d5

fix error in order of cell execution

Browse files
Files changed (1) hide show
  1. notebooks/test_model.ipynb +8 -7
notebooks/test_model.ipynb CHANGED
@@ -171,7 +171,7 @@
171
  },
172
  {
173
  "cell_type": "markdown",
174
- "id": "993dac2a",
175
  "metadata": {},
176
  "source": [
177
  "### Generate continuations (\"out-painting\")"
@@ -180,7 +180,7 @@
180
  {
181
  "cell_type": "code",
182
  "execution_count": null,
183
- "id": "22d526e3",
184
  "metadata": {},
185
  "outputs": [],
186
  "source": [
@@ -243,9 +243,10 @@
243
  "outputs": [],
244
  "source": [
245
  "start_step = 500 #@param {type:\"slider\", min:0, max:1000, step:10}\n",
246
- "overlap_secs = 1 #@param {type:\"integer\"}\n",
247
- "overlap_samples = overlap_secs * sample_rate\n",
248
  "mel.load_audio(audio_file)\n",
 
249
  "slice_size = audio_diffusion.mel.x_res * audio_diffusion.mel.hop_length\n",
250
  "stride = slice_size - overlap_samples\n",
251
  "generator = torch.Generator()\n",
@@ -279,7 +280,7 @@
279
  },
280
  {
281
  "cell_type": "markdown",
282
- "id": "bf63425e",
283
  "metadata": {},
284
  "source": [
285
  "### Fill the gap (\"in-painting\")"
@@ -288,7 +289,7 @@
288
  {
289
  "cell_type": "code",
290
  "execution_count": null,
291
- "id": "79b52754",
292
  "metadata": {},
293
  "outputs": [],
294
  "source": [
@@ -357,7 +358,7 @@
357
  {
358
  "cell_type": "code",
359
  "execution_count": null,
360
- "id": "a4f313f2",
361
  "metadata": {},
362
  "outputs": [],
363
  "source": []
 
171
  },
172
  {
173
  "cell_type": "markdown",
174
+ "id": "97da7c6d",
175
  "metadata": {},
176
  "source": [
177
  "### Generate continuations (\"out-painting\")"
 
180
  {
181
  "cell_type": "code",
182
  "execution_count": null,
183
+ "id": "4581936c",
184
  "metadata": {},
185
  "outputs": [],
186
  "source": [
 
243
  "outputs": [],
244
  "source": [
245
  "start_step = 500 #@param {type:\"slider\", min:0, max:1000, step:10}\n",
246
+ "overlap_secs = 2 #@param {type:\"integer\"}\n",
247
+ "mel = Mel(x_res=256, y_res=256)\n",
248
  "mel.load_audio(audio_file)\n",
249
+ "overlap_samples = overlap_secs * mel.get_sample_rate()\n",
250
  "slice_size = audio_diffusion.mel.x_res * audio_diffusion.mel.hop_length\n",
251
  "stride = slice_size - overlap_samples\n",
252
  "generator = torch.Generator()\n",
 
280
  },
281
  {
282
  "cell_type": "markdown",
283
+ "id": "d9910e82",
284
  "metadata": {},
285
  "source": [
286
  "### Fill the gap (\"in-painting\")"
 
289
  {
290
  "cell_type": "code",
291
  "execution_count": null,
292
+ "id": "fd3eb365",
293
  "metadata": {},
294
  "outputs": [],
295
  "source": [
 
358
  {
359
  "cell_type": "code",
360
  "execution_count": null,
361
+ "id": "d32afb5e",
362
  "metadata": {},
363
  "outputs": [],
364
  "source": []