teticio commited on
Commit
e868325
1 Parent(s): 43ebb3b
Files changed (1) hide show
  1. notebooks/test_model.ipynb +3 -4
notebooks/test_model.ipynb CHANGED
@@ -429,7 +429,7 @@
429
  "metadata": {},
430
  "outputs": [],
431
  "source": [
432
- "noise = audio_diffusion.pipe.encode([image], steps=50)"
433
  ]
434
  },
435
  {
@@ -471,7 +471,7 @@
471
  "metadata": {},
472
  "outputs": [],
473
  "source": [
474
- "noise2 = audio_diffusion.pipe.encode([image2], steps=50)"
475
  ]
476
  },
477
  {
@@ -484,7 +484,6 @@
484
  "alpha = 0.5 #@param {type:\"slider\", min:0, max:1, step:.1}\n",
485
  "_, (sample_rate, audio) = audio_diffusion.generate_spectrogram_and_audio(\n",
486
  " noise=audio_diffusion.pipe.slerp(noise, noise2, alpha),\n",
487
- " steps=50,\n",
488
  " generator=generator)\n",
489
  "display(Audio(mel.image_to_audio(image), rate=mel.get_sample_rate()))\n",
490
  "display(Audio(mel.image_to_audio(image2), rate=mel.get_sample_rate()))\n",
@@ -521,7 +520,7 @@
521
  "name": "python",
522
  "nbconvert_exporter": "python",
523
  "pygments_lexer": "ipython3",
524
- "version": "3.8.9"
525
  },
526
  "toc": {
527
  "base_numbering": 1,
 
429
  "metadata": {},
430
  "outputs": [],
431
  "source": [
432
+ "noise = audio_diffusion.pipe.encode([image])"
433
  ]
434
  },
435
  {
 
471
  "metadata": {},
472
  "outputs": [],
473
  "source": [
474
+ "noise2 = audio_diffusion.pipe.encode([image2], steps=1000)"
475
  ]
476
  },
477
  {
 
484
  "alpha = 0.5 #@param {type:\"slider\", min:0, max:1, step:.1}\n",
485
  "_, (sample_rate, audio) = audio_diffusion.generate_spectrogram_and_audio(\n",
486
  " noise=audio_diffusion.pipe.slerp(noise, noise2, alpha),\n",
 
487
  " generator=generator)\n",
488
  "display(Audio(mel.image_to_audio(image), rate=mel.get_sample_rate()))\n",
489
  "display(Audio(mel.image_to_audio(image2), rate=mel.get_sample_rate()))\n",
 
520
  "name": "python",
521
  "nbconvert_exporter": "python",
522
  "pygments_lexer": "ipython3",
523
+ "version": "3.10.6"
524
  },
525
  "toc": {
526
  "base_numbering": 1,