diff --git "a/notebooks/test_model.ipynb" "b/notebooks/test_model.ipynb"
--- "a/notebooks/test_model.ipynb"
+++ "b/notebooks/test_model.ipynb"
@@ -172,7 +172,7 @@
},
{
"cell_type": "markdown",
- "id": "15a39884",
+ "id": "b6434d3f",
"metadata": {},
"source": [
"### Remix (style transfer)"
@@ -180,7 +180,7 @@
},
{
"cell_type": "markdown",
- "id": "116bd8c3",
+ "id": "0da030b2",
"metadata": {},
"source": [
"Alternatively, you can start from another audio altogether, resulting in a kind of style transfer."
@@ -189,18 +189,129 @@
{
"cell_type": "code",
"execution_count": null,
- "id": "c2a9c85c",
+ "id": "5a257e69",
"metadata": {
"scrolled": true
},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "06e31541e8284faa9c71dafb5b686574",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ " 0%| | 0/500 [00:00, ?it/s]"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ " \n",
+ " "
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ " \n",
+ " "
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "b9e0e92b62404876b1600c7f01408503",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ " 0%| | 0/500 [00:00, ?it/s]"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ " \n",
+ " "
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ " \n",
+ " "
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/vnd.jupyter.widget-view+json": {
+ "model_id": "116c3bc7b4c2449fa220e93088a26d6f",
+ "version_major": 2,
+ "version_minor": 0
+ },
+ "text/plain": [
+ " 0%| | 0/500 [00:00, ?it/s]"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
"source": [
- "start_steps = 700 #@param {type:\"slider\", min:0, max:1000, step:10}\n",
- "audio_file = \"track.mp3\" #@param {type:\"string\"}\n",
+ "start_steps = 500 #@param {type:\"slider\", min:0, max:1000, step:10}\n",
+ "audio_file = \"/home/teticio/Music/Music/Cesar Mariano And CIA/Gilles Peterson In Brazil_ Da Hora/2-07 Futebol De Bar (Heavy Üsker Mix.mp3\" #@param {type:\"string\"}\n",
"audio_diffusion.mel.load_audio(audio_file)\n",
"track = np.array([])\n",
"generator = torch.Generator().manual_seed(seed)\n",
- "seed = generator.seed()\n",
+ "seed = 16183389798189209330 #generator.seed()\n",
"for slice in range(audio_diffusion.mel.get_number_of_slices()):\n",
" generator.manual_seed(seed)\n",
" audio = audio_diffusion.mel.get_audio_slice(slice)\n",
@@ -218,6 +329,34 @@
"display(Audio(track, rate=sample_rate))"
]
},
+ {
+ "cell_type": "code",
+ "execution_count": 39,
+ "id": "90457786",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ " \n",
+ " "
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "display(Audio(track, rate=sample_rate))"
+ ]
+ },
{
"cell_type": "markdown",
"id": "ef54cef3",