Skip to content

Commit 5274c98

Browse files
committed
fixed live demo nb
1 parent f174029 commit 5274c98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

notebooks/resnet18/live_demo.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"source": [
3939
"from jetcam.utils import bgr8_to_jpeg\n",
4040
"import traitlets\n",
41-
"import ipywidgetsb\n",
41+
"import ipywidgets\n",
4242
"\n",
4343
"image_w = ipywidgets.Image()\n",
4444
"\n",
@@ -60,6 +60,7 @@
6060
"metadata": {},
6161
"outputs": [],
6262
"source": [
63+
"import torch\n",
6364
"from torch2trt import TRTModule\n",
6465
"\n",
6566
"model_trt = TRTModule()\n",
@@ -81,6 +82,7 @@
8182
"source": [
8283
"import cv2\n",
8384
"import numpy as np\n",
85+
"import torchvision\n",
8486
"\n",
8587
"device = torch.device('cuda')\n",
8688
"mean = 255.0 * np.array([0.485, 0.456, 0.406])\n",

0 commit comments

Comments
 (0)