File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ export LANG=C.UTF-8
12
12
13
13
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd ) "
14
14
15
+ # Update root certificates by installing new libgnutls30
16
+ sudo apt-get update || sudo apt-get install libgnutls30
15
17
sudo apt-get update
16
18
sudo apt-get install -y --no-install-recommends unzip p7zip-full sox libsox-dev libsox-fmt-all rsync
17
19
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ way of doing it:
220
220
import torchvision
221
221
from torchvision.models.detection.faster_rcnn import FastRCNNPredictor
222
222
223
- # load a model pre-trained pre-trained on COCO
223
+ # load a model pre-trained on COCO
224
224
model = torchvision.models.detection.fasterrcnn_resnet50_fpn(pretrained = True )
225
225
226
226
# replace the classifier with a new one, that has
@@ -290,7 +290,7 @@ be using Mask R-CNN:
290
290
291
291
292
292
def get_model_instance_segmentation (num_classes ):
293
- # load an instance segmentation model pre-trained pre-trained on COCO
293
+ # load an instance segmentation model pre-trained on COCO
294
294
model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained = True )
295
295
296
296
# get number of input features for the classifier
Original file line number Diff line number Diff line change 14
14
`torch.utils.data.Dataset <https://pytorch.org/docs/stable/data.html#torch.utils.data.Dataset>`__.
15
15
These datasets are currently available in:
16
16
17
- * `torchvision <https://pytorch.org/docs /stable/torchvision /datasets.html>`__
18
- * `torchaudio <https://pytorch.org/audio/datasets.html>`__
19
- * `torchtext <https://pytorch.org/text/datasets.html>`__
17
+ * `torchvision <https://pytorch.org/vision /stable/datasets.html>`__
18
+ * `torchaudio <https://pytorch.org/audio/stable/ datasets.html>`__
19
+ * `torchtext <https://pytorch.org/text/stable/ datasets.html>`__
20
20
21
21
with more to come.
22
22
Using the Yesno dataset from ``torchaudio.datasets.YESNO``, we will
You can’t perform that action at this time.
0 commit comments