We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71f9b4a commit 273c371Copy full SHA for 273c371
notebooks/torchvision-zoo-to-openvino/convnext-classification.ipynb
@@ -66,8 +66,13 @@
66
},
67
"outputs": [],
68
"source": [
69
+ "import platform\n",
70
+ "\n",
71
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu torch torchvision\n",
- "%pip install -q \"openvino>=2023.1.0\""
72
+ "%pip install -q \"openvino>=2023.1.0\"\n",
73
74
+ "if platform.system() == \"Darwin\":\n",
75
+ " %pip install -q \"numpy<2.0\""
76
]
77
78
{
@@ -124,7 +129,7 @@
124
129
"\n",
125
130
" with open(img_path, \"wb\") as f:\n",
126
131
" f.write(r.content)\n",
127
- "image = read_image(img_path)\n",
132
+ "image = read_image(str(img_path))\n",
128
133
"display(transforms.ToPILImage()(image))"
134
135
0 commit comments