Skip to content

Commit fc8e01a

Browse files
committed
Automated tutorials push
1 parent 09f77fa commit fc8e01a

File tree

231 files changed

+44023
-35961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+44023
-35961
lines changed

_downloads/3195443a0ced3cabc0ad643537bdb5cd/introyt1_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "4f7ab1f6",
37+
"id": "8bce29cb",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "6fa99933",
53+
"id": "8e0996d5",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/36608d2d57f623ba3a623e0c947a8c3e/data_tutorial.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
"source": [
184184
"import os\n",
185185
"import pandas as pd\n",
186-
"from torchvision.io import read_image\n",
186+
"from torchvision.io import decode_image\n",
187187
"\n",
188188
"class CustomImageDataset(Dataset):\n",
189189
" def __init__(self, annotations_file, img_dir, transform=None, target_transform=None):\n",
@@ -197,7 +197,7 @@
197197
"\n",
198198
" def __getitem__(self, idx):\n",
199199
" img_path = os.path.join(self.img_dir, self.img_labels.iloc[idx, 0])\n",
200-
" image = read_image(img_path)\n",
200+
" image = decode_image(img_path)\n",
201201
" label = self.img_labels.iloc[idx, 1]\n",
202202
" if self.transform:\n",
203203
" image = self.transform(image)\n",
@@ -276,7 +276,7 @@
276276
"The \\_\\_[getitem](#getitem__) function loads and returns a sample from\n",
277277
"the dataset at the given index `idx`. Based on the index, it identifies\n",
278278
"the image\\'s location on disk, converts that to a tensor using\n",
279-
"`read_image`, retrieves the corresponding label from the csv data in\n",
279+
"`decode_image`, retrieves the corresponding label from the csv data in\n",
280280
"`self.img_labels`, calls the transform functions on them (if\n",
281281
"applicable), and returns the tensor image and corresponding label in a\n",
282282
"tuple.\n"

_downloads/4355e2cef7d17548f1e25f97a62828c4/template_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{
3232
"cell_type": "code",
3333
"execution_count": null,
34-
"id": "cb506594",
34+
"id": "b5bc50c7",
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
@@ -47,7 +47,7 @@
4747
},
4848
{
4949
"cell_type": "markdown",
50-
"id": "593311b9",
50+
"id": "5b7307ba",
5151
"metadata": {},
5252
"source": [
5353
"\n",

_downloads/56e3f440fc204e02856f8889c226d2d1/data_tutorial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
import os
122122
import pandas as pd
123-
from torchvision.io import read_image
123+
from torchvision.io import decode_image
124124

125125
class CustomImageDataset(Dataset):
126126
def __init__(self, annotations_file, img_dir, transform=None, target_transform=None):
@@ -134,7 +134,7 @@ def __len__(self):
134134

135135
def __getitem__(self, idx):
136136
img_path = os.path.join(self.img_dir, self.img_labels.iloc[idx, 0])
137-
image = read_image(img_path)
137+
image = decode_image(img_path)
138138
label = self.img_labels.iloc[idx, 1]
139139
if self.transform:
140140
image = self.transform(image)
@@ -184,7 +184,7 @@ def __len__(self):
184184
# ^^^^^^^^^^^^^^^^^^^^
185185
#
186186
# The __getitem__ function loads and returns a sample from the dataset at the given index ``idx``.
187-
# Based on the index, it identifies the image's location on disk, converts that to a tensor using ``read_image``, retrieves the
187+
# Based on the index, it identifies the image's location on disk, converts that to a tensor using ``decode_image``, retrieves the
188188
# corresponding label from the csv data in ``self.img_labels``, calls the transform functions on them (if applicable), and returns the
189189
# tensor image and corresponding label in a tuple.
190190

_downloads/63a0f0fc7b3ffb15d3a5ac8db3d521ee/tensors_deeper_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "a324b160",
37+
"id": "55aafed1",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "61128946",
53+
"id": "0b865ee4",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/770632dd3941d2a51b831c52ded57aa2/trainingyt.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "5fe79bda",
38+
"id": "61d8ceeb",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "d32f8e08",
54+
"id": "0b7b34be",
5555
"metadata": {},
5656
"source": [
5757
"\n",

_downloads/c28f42852d456daf9af72da6c6909556/captumyt.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": null,
40-
"id": "df9ab744",
40+
"id": "eb621ebe",
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "markdown",
56-
"id": "145b47d7",
56+
"id": "a9898a03",
5757
"metadata": {},
5858
"source": [
5959
"\n",

_downloads/e2e556f6b4693c2cef716dd7f40caaf6/tensorboardyt_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
"cell_type": "code",
3737
"execution_count": null,
38-
"id": "47d8d15a",
38+
"id": "51f716f0",
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "markdown",
54-
"id": "09dfb20c",
54+
"id": "8e112120",
5555
"metadata": {},
5656
"source": [
5757
"\n",

_downloads/ed9d4f94afb79f7dada6742a06c486a5/autogradyt_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "b6e94f78",
37+
"id": "2d3ad1fc",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "27b1a2e9",
53+
"id": "5062fb08",
5454
"metadata": {},
5555
"source": [
5656
"\n",

_downloads/fe726e041160526cf828806536922cf6/modelsyt_tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{
3535
"cell_type": "code",
3636
"execution_count": null,
37-
"id": "f29fa0ff",
37+
"id": "b577a5bb",
3838
"metadata": {},
3939
"outputs": [],
4040
"source": [
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "markdown",
53-
"id": "171d6dbb",
53+
"id": "aeb5874a",
5454
"metadata": {},
5555
"source": [
5656
"\n",

0 commit comments

Comments
 (0)