Skip to content

Commit d43dfbd

Browse files
author
CoodingPenguin
committed
Part 3.1. Convolution
1 parent 55c312a commit d43dfbd

File tree

9 files changed

+934
-0
lines changed

9 files changed

+934
-0
lines changed

β€ŽPart 3. Convolutional Neural Network/Part 3.1. Convolution.ipynb

+736
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
{
2+
"nbformat": 4,
3+
"nbformat_minor": 0,
4+
"metadata": {
5+
"colab": {
6+
"name": "Part 3.2. Visdom.ipynb",
7+
"provenance": []
8+
},
9+
"kernelspec": {
10+
"name": "python3",
11+
"display_name": "Python 3"
12+
}
13+
},
14+
"cells": [
15+
{
16+
"cell_type": "markdown",
17+
"metadata": {
18+
"id": "sW2KACzT_l-7",
19+
"colab_type": "text"
20+
},
21+
"source": [
22+
"# Part 3.2. Visdom"
23+
]
24+
},
25+
{
26+
"cell_type": "code",
27+
"metadata": {
28+
"id": "VD2SUn04_ekQ",
29+
"colab_type": "code",
30+
"colab": {}
31+
},
32+
"source": [
33+
"import torch\n",
34+
"import torch.nn as nn\n",
35+
"import torchvision\n",
36+
"import torchvision.datasets as dsets"
37+
],
38+
"execution_count": 0,
39+
"outputs": []
40+
},
41+
{
42+
"cell_type": "code",
43+
"metadata": {
44+
"id": "iCKVOjsb_4XP",
45+
"colab_type": "code",
46+
"colab": {
47+
"base_uri": "https://localhost:8080/",
48+
"height": 1000
49+
},
50+
"outputId": "c5c48453-b53d-4c99-d019-9efc1d4c07ce"
51+
},
52+
"source": [
53+
"!pip install visdom\n",
54+
"import visdom\n",
55+
"vis = visdom.Visdom()"
56+
],
57+
"execution_count": 3,
58+
"outputs": [
59+
{
60+
"output_type": "stream",
61+
"text": [
62+
"Collecting visdom\n",
63+
"\u001b[?25l Downloading https://files.pythonhosted.org/packages/c9/75/e078f5a2e1df7e0d3044749089fc2823e62d029cc027ed8ae5d71fafcbdc/visdom-0.1.8.9.tar.gz (676kB)\n",
64+
"\u001b[K |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 686kB 3.4MB/s \n",
65+
"\u001b[?25hRequirement already satisfied: numpy>=1.8 in /usr/local/lib/python3.6/dist-packages (from visdom) (1.17.5)\n",
66+
"Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from visdom) (1.4.1)\n",
67+
"Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from visdom) (2.21.0)\n",
68+
"Requirement already satisfied: tornado in /usr/local/lib/python3.6/dist-packages (from visdom) (4.5.3)\n",
69+
"Requirement already satisfied: pyzmq in /usr/local/lib/python3.6/dist-packages (from visdom) (17.0.0)\n",
70+
"Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from visdom) (1.12.0)\n",
71+
"Collecting jsonpatch\n",
72+
" Downloading https://files.pythonhosted.org/packages/82/53/73ca86f2a680c705dcd1708be4887c559dfe9ed250486dd3ccd8821b8ccb/jsonpatch-1.25-py2.py3-none-any.whl\n",
73+
"Collecting torchfile\n",
74+
" Downloading https://files.pythonhosted.org/packages/91/af/5b305f86f2d218091af657ddb53f984ecbd9518ca9fe8ef4103a007252c9/torchfile-0.1.0.tar.gz\n",
75+
"Collecting websocket-client\n",
76+
"\u001b[?25l Downloading https://files.pythonhosted.org/packages/4c/5f/f61b420143ed1c8dc69f9eaec5ff1ac36109d52c80de49d66e0c36c3dfdf/websocket_client-0.57.0-py2.py3-none-any.whl (200kB)\n",
77+
"\u001b[K |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 204kB 53.5MB/s \n",
78+
"\u001b[?25hRequirement already satisfied: pillow in /usr/local/lib/python3.6/dist-packages (from visdom) (6.2.2)\n",
79+
"Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.6/dist-packages (from requests->visdom) (2.8)\n",
80+
"Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/dist-packages (from requests->visdom) (2019.11.28)\n",
81+
"Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.6/dist-packages (from requests->visdom) (1.24.3)\n",
82+
"Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/dist-packages (from requests->visdom) (3.0.4)\n",
83+
"Collecting jsonpointer>=1.9\n",
84+
" Downloading https://files.pythonhosted.org/packages/18/b0/a80d29577c08eea401659254dfaed87f1af45272899e1812d7e01b679bc5/jsonpointer-2.0-py2.py3-none-any.whl\n",
85+
"Building wheels for collected packages: visdom, torchfile\n",
86+
" Building wheel for visdom (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
87+
" Created wheel for visdom: filename=visdom-0.1.8.9-cp36-none-any.whl size=655250 sha256=1ecb9a572b8704b61ceba2bf3f11f202374685ea565b30c512a88af0add7854b\n",
88+
" Stored in directory: /root/.cache/pip/wheels/70/19/a7/6d589ed967f4dfefd33bc166d081257bd4ed0cb618dccfd62a\n",
89+
" Building wheel for torchfile (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
90+
" Created wheel for torchfile: filename=torchfile-0.1.0-cp36-none-any.whl size=5712 sha256=3f08dd3e678f582853dd2eeff8418c5a877dc5e7e12cf2d97b915c6ce53cda14\n",
91+
" Stored in directory: /root/.cache/pip/wheels/b1/c3/d6/9a1cc8f3a99a0fc1124cae20153f36af59a6e683daca0a0814\n",
92+
"Successfully built visdom torchfile\n",
93+
"Installing collected packages: jsonpointer, jsonpatch, torchfile, websocket-client, visdom\n",
94+
"Successfully installed jsonpatch-1.25 jsonpointer-2.0 torchfile-0.1.0 visdom-0.1.8.9 websocket-client-0.57.0\n"
95+
],
96+
"name": "stdout"
97+
},
98+
{
99+
"output_type": "stream",
100+
"text": [
101+
"Setting up a new session...\n",
102+
"Traceback (most recent call last):\n",
103+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/connection.py\", line 159, in _new_conn\n",
104+
" (self._dns_host, self.port), self.timeout, **extra_kw)\n",
105+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/util/connection.py\", line 80, in create_connection\n",
106+
" raise err\n",
107+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/util/connection.py\", line 70, in create_connection\n",
108+
" sock.connect(sa)\n",
109+
"ConnectionRefusedError: [Errno 111] Connection refused\n",
110+
"\n",
111+
"During handling of the above exception, another exception occurred:\n",
112+
"\n",
113+
"Traceback (most recent call last):\n",
114+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py\", line 600, in urlopen\n",
115+
" chunked=chunked)\n",
116+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py\", line 354, in _make_request\n",
117+
" conn.request(method, url, **httplib_request_kw)\n",
118+
" File \"/usr/lib/python3.6/http/client.py\", line 1254, in request\n",
119+
" self._send_request(method, url, body, headers, encode_chunked)\n",
120+
" File \"/usr/lib/python3.6/http/client.py\", line 1300, in _send_request\n",
121+
" self.endheaders(body, encode_chunked=encode_chunked)\n",
122+
" File \"/usr/lib/python3.6/http/client.py\", line 1249, in endheaders\n",
123+
" self._send_output(message_body, encode_chunked=encode_chunked)\n",
124+
" File \"/usr/lib/python3.6/http/client.py\", line 1036, in _send_output\n",
125+
" self.send(msg)\n",
126+
" File \"/usr/lib/python3.6/http/client.py\", line 974, in send\n",
127+
" self.connect()\n",
128+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/connection.py\", line 181, in connect\n",
129+
" conn = self._new_conn()\n",
130+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/connection.py\", line 168, in _new_conn\n",
131+
" self, \"Failed to establish a new connection: %s\" % e)\n",
132+
"urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff7017b40b8>: Failed to establish a new connection: [Errno 111] Connection refused\n",
133+
"\n",
134+
"During handling of the above exception, another exception occurred:\n",
135+
"\n",
136+
"Traceback (most recent call last):\n",
137+
" File \"/usr/local/lib/python3.6/dist-packages/requests/adapters.py\", line 449, in send\n",
138+
" timeout=timeout\n",
139+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py\", line 638, in urlopen\n",
140+
" _stacktrace=sys.exc_info()[2])\n",
141+
" File \"/usr/local/lib/python3.6/dist-packages/urllib3/util/retry.py\", line 399, in increment\n",
142+
" raise MaxRetryError(_pool, url, error or ResponseError(cause))\n",
143+
"urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff7017b40b8>: Failed to establish a new connection: [Errno 111] Connection refused',))\n",
144+
"\n",
145+
"During handling of the above exception, another exception occurred:\n",
146+
"\n",
147+
"Traceback (most recent call last):\n",
148+
" File \"/usr/local/lib/python3.6/dist-packages/visdom/__init__.py\", line 711, in _send\n",
149+
" data=json.dumps(msg),\n",
150+
" File \"/usr/local/lib/python3.6/dist-packages/visdom/__init__.py\", line 677, in _handle_post\n",
151+
" r = self.session.post(url, data=data)\n",
152+
" File \"/usr/local/lib/python3.6/dist-packages/requests/sessions.py\", line 581, in post\n",
153+
" return self.request('POST', url, data=data, json=json, **kwargs)\n",
154+
" File \"/usr/local/lib/python3.6/dist-packages/requests/sessions.py\", line 533, in request\n",
155+
" resp = self.send(prep, **send_kwargs)\n",
156+
" File \"/usr/local/lib/python3.6/dist-packages/requests/sessions.py\", line 646, in send\n",
157+
" r = adapter.send(request, **kwargs)\n",
158+
" File \"/usr/local/lib/python3.6/dist-packages/requests/adapters.py\", line 516, in send\n",
159+
" raise ConnectionError(e, request=request)\n",
160+
"requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff7017b40b8>: Failed to establish a new connection: [Errno 111] Connection refused',))\n",
161+
"[Errno 99] Cannot assign requested address\n"
162+
],
163+
"name": "stderr"
164+
},
165+
{
166+
"output_type": "stream",
167+
"text": [
168+
"Exception in user code:\n",
169+
"------------------------------------------------------------\n"
170+
],
171+
"name": "stdout"
172+
},
173+
{
174+
"output_type": "stream",
175+
"text": [
176+
"[Errno 99] Cannot assign requested address\n",
177+
"[Errno 99] Cannot assign requested address\n",
178+
"Visdom python client failed to establish socket to get messages from the server. This feature is optional and can be disabled by initializing Visdom with `use_incoming_socket=False`, which will prevent waiting for this request to timeout.\n"
179+
],
180+
"name": "stderr"
181+
}
182+
]
183+
},
184+
{
185+
"cell_type": "code",
186+
"metadata": {
187+
"id": "O4xhj646_-C3",
188+
"colab_type": "code",
189+
"colab": {}
190+
},
191+
"source": [
192+
""
193+
],
194+
"execution_count": 0,
195+
"outputs": []
196+
}
197+
]
198+
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
Β (0)