Skip to content

Commit dcfa044

Browse files
committed
musegan formatting
1 parent 3d28172 commit dcfa044

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

notebooks/11_music/02_musegan/musegan.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@
139139
"data_binary = np.eye(N_PITCHES)[two_bars]\n",
140140
"data_binary[data_binary == 0] = -1\n",
141141
"data_binary = data_binary.transpose([0, 1, 2, 4, 3])\n",
142-
"INPUT_DIM = data_binary.shape[1:]\n",
143142
"print(f\"Data binary shape {data_binary.shape}\")"
144143
]
145144
},
@@ -325,7 +324,10 @@
325324
"outputs": [],
326325
"source": [
327326
"def Critic():\n",
328-
" critic_input = layers.Input(shape=INPUT_DIM, name=\"critic_input\")\n",
327+
" critic_input = layers.Input(\n",
328+
" shape=(N_BARS, N_STEPS_PER_BAR, N_PITCHES, N_TRACKS),\n",
329+
" name=\"critic_input\",\n",
330+
" )\n",
329331
"\n",
330332
" x = critic_input\n",
331333
"\n",

0 commit comments

Comments
 (0)