Skip to content

Commit 7cc81f0

Browse files
committed
Created using Colaboratory
1 parent 8110ce2 commit 7cc81f0

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

colabs/Getting_Started_with_Hub.ipynb

+22-2
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"source": [
241241
"# Download dataset\n",
242242
"from IPython.display import clear_output\n",
243-
"!wget https://firebasestorage.googleapis.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-M_MXHpa1Cq7qojD2u_r%2F-MbI7YlHiBJg6Fg-HsOf%2F-MbIUlXZn7EYdgDNncOI%2Fanimals.zip?alt=media&token=c491c2cb-7f8b-4b23-9617-a843d38ac611\n",
243+
"!wget https://github.com/activeloopai/examples/raw/main/colabs/starting_data/animals.zip\n",
244244
"clear_output()"
245245
],
246246
"execution_count": null,
@@ -253,7 +253,7 @@
253253
},
254254
"source": [
255255
"# Unzip to './animals' folder\n",
256-
"!unzip -qq /content/assets%2F-M_MXHpa1Cq7qojD2u_r%2F-MbI7YlHiBJg6Fg-HsOf%2F-MbIUlXZn7EYdgDNncOI%2Fanimals.zip?alt=media"
256+
"!unzip -qq /content/animals.zip"
257257
],
258258
"execution_count": null,
259259
"outputs": []
@@ -1100,6 +1100,26 @@
11001100
"execution_count": null,
11011101
"outputs": []
11021102
},
1103+
{
1104+
"cell_type": "markdown",
1105+
"source": [
1106+
"**Note:** Some datasets such as imagenet contain both grayscale and color images, which can cause errors when the transformed images are passed to the model. To convert only the grayscale images to color format, you can add this Torchvision transform to your pipeline:"
1107+
],
1108+
"metadata": {
1109+
"id": "-EQ2LUPydfPo"
1110+
}
1111+
},
1112+
{
1113+
"cell_type": "code",
1114+
"source": [
1115+
"# transforms.Lambda(lambda x: x.repeat(int(3/x.shape[0]), 1, 1))"
1116+
],
1117+
"metadata": {
1118+
"id": "3Wi0K1aVdjMr"
1119+
},
1120+
"execution_count": null,
1121+
"outputs": []
1122+
},
11031123
{
11041124
"cell_type": "markdown",
11051125
"metadata": {

0 commit comments

Comments
 (0)