From e4d618443808f0931bbef0b9e10a2c2a215281a5 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 3 Sep 2023 01:11:30 +0200 Subject: Update notebook: test gpu, etc --- notebooks/03-look-at-iam-lines.ipynb | 139 ----------------------------------- 1 file changed, 139 deletions(-) (limited to 'notebooks/03-look-at-iam-lines.ipynb') diff --git a/notebooks/03-look-at-iam-lines.ipynb b/notebooks/03-look-at-iam-lines.ipynb index 9e9b24c..049a8b6 100644 --- a/notebooks/03-look-at-iam-lines.ipynb +++ b/notebooks/03-look-at-iam-lines.ipynb @@ -132,39 +132,6 @@ "dataset = datamodule.data_train" ] }, - { - "cell_type": "code", - "execution_count": 22, - "metadata": { - "tags": [] - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(tensor([[[0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.],\n", - " ...,\n", - " [0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.],\n", - " [0., 0., 0., ..., 0., 0., 0.]]]),\n", - " tensor([ 1, 32, 27, 14, 33, 16, 21, 22, 27, 20, 40, 14, 33, 40, 33, 21, 18, 40,\n", - " 29, 31, 28, 29, 40, 21, 28, 25, 17, 22, 27, 20, 40, 33, 21, 18, 40, 15,\n", - " 14, 31, 20, 18, 45, 32, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]))" - ] - }, - "execution_count": 22, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "datamodule.data_val[16]" - ] - }, { "cell_type": "code", "execution_count": 8, @@ -188,112 +155,6 @@ "convert_y_label_to_string(dataset[0][1])" ] }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": { - "tags": [] - }, - "outputs": [ - { - "data": { - "text/plain": [ - "['',\n", - " '',\n", - " '',\n", - " '

',\n", - " '0',\n", - " '1',\n", - " '2',\n", - " '3',\n", - " '4',\n", - " '5',\n", - " '6',\n", - " '7',\n", - " '8',\n", - " '9',\n", - " 'a',\n", - " 'b',\n", - " 'c',\n", - " 'd',\n", - " 'e',\n", - " 'f',\n", - " 'g',\n", - " 'h',\n", - " 'i',\n", - " 'j',\n", - " 'k',\n", - " 'l',\n", - " 'm',\n", - " 'n',\n", - " 'o',\n", - " 'p',\n", - " 'q',\n", - " 'r',\n", - " 's',\n", - " 't',\n", - " 'u',\n", - " 'v',\n", - " 'w',\n", - " 'x',\n", - " 'y',\n", - " 'z',\n", - " ' ',\n", - " '!',\n", - " '\"',\n", - " '#',\n", - " '&',\n", - " \"'\",\n", - " '(',\n", - " ')',\n", - " '*',\n", - " '+',\n", - " ',',\n", - " '-',\n", - " '.',\n", - " '/',\n", - " ':',\n", - " ';',\n", - " '?',\n", - " '\\n']" - ] - }, - "execution_count": 15, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "datamodule.tokenizer.mapping" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "metadata": { - "tags": [] - }, - "outputs": [ - { - "data": { - "text/plain": [ - "tensor([ 1, 34, 27, 22, 28, 27, 40, 36, 28, 34, 25, 17, 40, 15, 18, 40, 29, 31,\n", - " 18, 29, 14, 31, 18, 17, 40, 33, 28, 40, 31, 18, 14, 16, 21, 2, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,\n", - " 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3])" - ] - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "x =dataset[0][1]\n", - "x[" - ] - }, { "cell_type": "code", "execution_count": 10, -- cgit v1.2.3-70-g09d2