Skip to content

Commit 14664e5

Browse files
author
Anna Spiridonenkova
committed
fixing image styling issues
1 parent e46c854 commit 14664e5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

_posts/2022-3-10-running-pytorch-models-on-jetson-nano.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ $ ls -lt ~/jetson_inference/
105105
```
106106

107107

108-
<div style="display: flex">
109-
<img src="/assets/images/blog-2022-3-10-using-jetson-interface-1.jpeg" alt="Using jest interface example 1" width="30%">
110-
<img src="/assets/images/blog-2022-3-10-using-jetson-interface-2.jpeg" alt="Using jest interface example 2" width="70%">
108+
<div style="display: flex; justify-content: space-between;">
109+
<img src="/assets/images/blog-2022-3-10-using-jetson-interface-1.jpeg" alt="Using jest interface example 1" width="35%" height="300px">
110+
<img src="/assets/images/blog-2022-3-10-using-jetson-interface-2.jpeg" alt="Using jest interface example 2" width="60%" height="300px">
111111
</div>
112112

113113

114-
<div style="display: flex">
115-
<img src="/assets/images/blog-2022-3-10-using-jetson-interface-3.jpeg" alt="Using jest interface example 3" width="30%">
116-
<img src="/assets/images/blog-2022-3-10-using-jetson-interface-4.jpeg" alt="Using jest interface example 4" width="70%">
114+
<div style="display: flex; justify-content: space-between;">
115+
<img src="/assets/images/blog-2022-3-10-using-jetson-interface-3.jpeg" alt="Using jest interface example 3" width="60%" height="300px">
116+
<img src="/assets/images/blog-2022-3-10-using-jetson-interface-4.jpeg" alt="Using jest interface example 4" width="35%" height="300px">
117117
</div>
118118

119119
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
183183

184184
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:
185185

186-
1. Get the repo and install what’s required:
186+
* Get the repo and install what’s required:
187187

188188
```
189189
git clone https://github.com/ultralytics/yolov5
190190
cd yolov5
191191
pip install -r requirements.txt
192192
```
193193

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:
195195

196196
```
197197
detect: weights=yolov5s.pt, source=data/images, imgsz=[640, 640], conf_thres=0.25, iou_thres=0.45, max_det=1000, device=, view_img=False, save_txt=False, save_conf=False, save_crop=False, nosave=False, classes=None, agnostic_nms=False, augment=False, visualize=False, update=False, project=runs/detect, name=exp, exist_ok=False, line_thickness=3, hide_labels=False, hide_conf=False, half=False
@@ -228,20 +228,20 @@ total 1456
228228
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:
229229

230230
<div style="display: flex">
231-
<img src="{{ 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-
<img src="{{ 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+
<img src="{{ 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+
<img src="{{ 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">
233233
</div>
234234
**Figure 1**. *PyTorch YOLOv5 on Jetson Nano*.
235235

236236
<div style="display: flex">
237-
<img src="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-3.png" alt="PyTorch YOLOv5 on iOS, example with a dog" width="50%">
238-
<img src="{{ 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+
<img src="{{ 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+
<img src="{{ 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">
239239
</div>
240240
**Figure 2**. *PyTorch YOLOv5 on iOS*.
241241

242242
<div style="display: flex">
243-
<img src="{{ site.baseurl }}/assets/images/blog-2022-3-10-using-pytorch-5.png" alt="PyTorch YOLOv5 on Android, example with a dog" width="50%">
244-
<img src="{{ 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+
<img src="{{ 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+
<img src="{{ 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">
245245
</div>
246246
**Figure 2**. *PyTorch YOLOv5 on Android*.
247247

0 commit comments

Comments
 (0)