diff --git a/inference.ipynb b/inference.ipynb index 3c8f765..26e38d1 100644 --- a/inference.ipynb +++ b/inference.ipynb @@ -22,88 +22,6 @@ "collapsed": true }, "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/rcosta/.local/lib/python3.6/site-packages/ipykernel_launcher.py:2: UserWarning: \n", - "This call to matplotlib.use() has no effect because the backend has already\n", - "been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,\n", - "or matplotlib.backends is imported for the first time.\n", - "\n", - "The backend was *originally* set to 'module://ipykernel.pylab.backend_inline' by the following code:\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/runpy.py\", line 193, in _run_module_as_main\n", - " \"__main__\", mod_spec)\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/runpy.py\", line 85, in _run_code\n", - " exec(code, run_globals)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/ipykernel_launcher.py\", line 16, in \n", - " app.launch_new_instance()\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/traitlets/config/application.py\", line 658, in launch_instance\n", - " app.start()\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/ipykernel/kernelapp.py\", line 486, in start\n", - " self.io_loop.start()\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/tornado/platform/asyncio.py\", line 112, in start\n", - " self.asyncio_loop.run_forever()\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/asyncio/base_events.py\", line 421, in run_forever\n", - " self._run_once()\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/asyncio/base_events.py\", line 1431, in _run_once\n", - " handle._run()\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/asyncio/events.py\", line 145, in _run\n", - " self._callback(*self._args)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/tornado/platform/asyncio.py\", line 102, in _handle_events\n", - " handler_func(fileobj, events)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/tornado/stack_context.py\", line 276, in null_wrapper\n", - " return fn(*args, **kwargs)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py\", line 450, in _handle_events\n", - " self._handle_recv()\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py\", line 480, in _handle_recv\n", - " self._run_callback(callback, msg)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py\", line 432, in _run_callback\n", - " callback(*args, **kwargs)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/tornado/stack_context.py\", line 276, in null_wrapper\n", - " return fn(*args, **kwargs)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/ipykernel/kernelbase.py\", line 283, in dispatcher\n", - " return self.dispatch_shell(stream, msg)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/ipykernel/kernelbase.py\", line 233, in dispatch_shell\n", - " handler(stream, idents, msg)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/ipykernel/kernelbase.py\", line 399, in execute_request\n", - " user_expressions, allow_stdin)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/ipykernel/ipkernel.py\", line 208, in do_execute\n", - " res = shell.run_cell(code, store_history=store_history, silent=silent)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/ipykernel/zmqshell.py\", line 537, in run_cell\n", - " return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/IPython/core/interactiveshell.py\", line 2728, in run_cell\n", - " interactivity=interactivity, compiler=compiler, result=result)\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/IPython/core/interactiveshell.py\", line 2856, in run_ast_nodes\n", - " if self.run_code(code, result):\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/IPython/core/interactiveshell.py\", line 2910, in run_code\n", - " exec(code_obj, self.user_global_ns, self.user_ns)\n", - " File \"\", line 16, in \n", - " get_ipython().run_line_magic('matplotlib', 'inline')\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/IPython/core/interactiveshell.py\", line 2095, in run_line_magic\n", - " result = fn(*args,**kwargs)\n", - " File \"\", line 2, in matplotlib\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/IPython/core/magic.py\", line 187, in \n", - " call = lambda f, *a, **k: f(*a, **k)\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/IPython/core/magics/pylab.py\", line 99, in matplotlib\n", - " gui, backend = self.shell.enable_matplotlib(args.gui)\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/IPython/core/interactiveshell.py\", line 2978, in enable_matplotlib\n", - " pt.activate_matplotlib(backend)\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/IPython/core/pylabtools.py\", line 308, in activate_matplotlib\n", - " matplotlib.pyplot.switch_backend(backend)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/matplotlib/pyplot.py\", line 229, in switch_backend\n", - " matplotlib.use(newbackend, warn=False, force=True)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/matplotlib/__init__.py\", line 1305, in use\n", - " reload(sys.modules['matplotlib.backends'])\n", - " File \"/opt/conda/envs/pytorch-py3.6/lib/python3.6/importlib/__init__.py\", line 166, in reload\n", - " _bootstrap._exec(spec, module)\n", - " File \"/home/rcosta/.local/lib/python3.6/site-packages/matplotlib/backends/__init__.py\", line 14, in \n", - " line for line in traceback.format_stack()\n", - "\n", - "\n", - " \n" - ] - } ], "source": [ "import matplotlib\n", @@ -272,14 +190,6 @@ "execution_count": 55, "metadata": {}, "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/rcosta/.local/lib/python3.6/site-packages/librosa/util/utils.py:1725: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\n", - " if np.issubdtype(x.dtype, float) or np.issubdtype(x.dtype, complex):\n" - ] - } ], "source": [ "waveform = griffin_lim(torch.autograd.Variable(spec_from_mel[:, :, :-1]), \n",