You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<imgsrc="/assets/images/blog-2022-3-10-using-jetson-interface-3.jpeg"alt="Using jest interface example 3"width="60%"height="300px">
116
+
<imgsrc="/assets/images/blog-2022-3-10-using-jetson-interface-4.jpeg"alt="Using jest interface example 4"width="35%"height="300px">
117
117
</div>
118
118
119
119
You can also use the docker image to run PyTorch models because the image has PyTorch, torchvision and torchaudio installed:
@@ -183,15 +183,15 @@ You can also use the docker image described in the section *Using Jetson Inferen
183
183
184
184
The official [YOLOv5](https://github.com/ultralytics/yolov5) repo is used to run the PyTorch YOLOv5 model on Jetson Nano. After logging in to Jetson Nano, follow the steps below:
185
185
186
-
1. Get the repo and install what’s required:
186
+
* Get the repo and install what’s required:
187
187
188
188
```
189
189
git clone https://github.com/ultralytics/yolov5
190
190
cd yolov5
191
191
pip install -r requirements.txt
192
192
```
193
193
194
-
2. Run `python3 detect.py`, which by default uses the PyTorch yolov5s.pt model. You should see something like:
194
+
* Run `python3 detect.py`, which by default uses the PyTorch yolov5s.pt model. You should see something like:
Using the same test files used in the PyTorch iOS YOLOv5 demo app or Android YOLOv5 demo app, you can compare the results generated with running the YOLOv5 PyTorch model on mobile devices and Jetson Nano:
229
229
230
230
<divstyle="display: flex">
231
-
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-1.png"alt="PyTorch YOLOv5 on Jetson Nano, example with a dog"width="50%">
232
-
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-2.png"alt="PyTorch YOLOv5 on Jetson Nano, example with a horse and a rider"width="50%">
231
+
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-1.png"alt="PyTorch YOLOv5 on Jetson Nano, example with a dog"width="35%"height="300px">
232
+
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-2.jpeg"alt="PyTorch YOLOv5 on Jetson Nano, example with a horse and a rider"width="60%"height="300px">
233
233
</div>
234
234
**Figure 1**. *PyTorch YOLOv5 on Jetson Nano*.
235
235
236
236
<divstyle="display: flex">
237
-
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-3.png"alt="PyTorch YOLOv5 on iOS, example with a dog"width="50%">
238
-
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-4.png"alt="PyTorch YOLOv5 on iOS, example with a horse and a rider"width="50%">
237
+
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-3.png"alt="PyTorch YOLOv5 on iOS, example with a dog"width="35%"height="300px">
238
+
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-4.png"alt="PyTorch YOLOv5 on iOS, example with a horse and a rider"width="60%"height="300px">
239
239
</div>
240
240
**Figure 2**. *PyTorch YOLOv5 on iOS*.
241
241
242
242
<divstyle="display: flex">
243
-
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-5.png"alt="PyTorch YOLOv5 on Android, example with a dog"width="50%">
244
-
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-6.png"alt="PyTorch YOLOv5 on Android, example with a horse and a rider"width="50%">
243
+
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-5.png"alt="PyTorch YOLOv5 on Android, example with a dog"width="35%"height="300px">
244
+
<imgsrc="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-6.png"alt="PyTorch YOLOv5 on Android, example with a horse and a rider"width="60%"height="300px">
0 commit comments