Skip to content

Commit b6e6569

Browse files
authored
Merge branch 'main' into disable-weight-loading
2 parents e9a4d83 + a23778c commit b6e6569

File tree

17 files changed

+226
-27
lines changed

17 files changed

+226
-27
lines changed

torchvision/csrc/io/decoder/stream.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ int Stream::openCodec(std::vector<DecoderMetadata>* metadata, int num_threads) {
7474
}
7575
}
7676

77-
// print codec type and number of threads
78-
LOG(INFO) << "Codec " << codecCtx_->codec->long_name
79-
<< " Codec id: " << codecCtx_->codec_id
80-
<< " Codec tag: " << codecCtx_->codec_tag
81-
<< " Codec type: " << codecCtx_->codec_type
82-
<< " Codec extradata: " << codecCtx_->extradata
83-
<< " Number of threads: " << codecCtx_->thread_count
84-
<< " Thread type: " << codecCtx_->thread_type;
85-
8677
int ret;
8778
// Copy codec parameters from input stream to output codec context
8879
if ((ret = avcodec_parameters_to_context(codecCtx_, steam->codecpar)) < 0) {

torchvision/datasets/cifar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import os.path
32
import pickle
43
from typing import Any, Callable, Optional, Tuple

torchvision/datasets/coco.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import os.path
32
from typing import Any, Callable, Optional, Tuple, List
43

torchvision/datasets/lsun.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import io
2-
import os
32
import os.path
43
import pickle
54
import string

torchvision/datasets/semeion.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import os.path
32
from typing import Any, Callable, Optional, Tuple
43

torchvision/datasets/stl10.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import os.path
32
from typing import Any, Callable, Optional, Tuple
43

torchvision/datasets/svhn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import os.path
32
from typing import Any, Callable, Optional, Tuple
43

torchvision/prototype/models/_meta.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,28 @@
11021102
"toothbrush",
11031103
]
11041104

1105+
# To be replaced with torchvision.datasets.info("coco_kp")
1106+
_COCO_PERSON_CATEGORIES = ["no person", "person"]
1107+
_COCO_PERSON_KEYPOINT_NAMES = [
1108+
"nose",
1109+
"left_eye",
1110+
"right_eye",
1111+
"left_ear",
1112+
"right_ear",
1113+
"left_shoulder",
1114+
"right_shoulder",
1115+
"left_elbow",
1116+
"right_elbow",
1117+
"left_wrist",
1118+
"right_wrist",
1119+
"left_hip",
1120+
"right_hip",
1121+
"left_knee",
1122+
"right_knee",
1123+
"left_ankle",
1124+
"right_ankle",
1125+
]
1126+
11051127
# To be replaced with torchvision.datasets.info("voc").categories
11061128
_VOC_CATEGORIES = [
11071129
"__background__",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
from .faster_rcnn import *
2+
from .keypoint_rcnn import *
23
from .mask_rcnn import *
4+
from .retinanet import *

torchvision/prototype/models/detection/faster_rcnn.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import warnings
22
from typing import Any, Optional, Union
33

4+
from torchvision.transforms.functional import InterpolationMode
5+
46
from ....models.detection.faster_rcnn import (
57
_mobilenet_extractor,
68
_resnet_fpn_extractor,
@@ -28,7 +30,10 @@
2830
]
2931

3032

31-
_common_meta = {"categories": _COCO_CATEGORIES}
33+
_common_meta = {
34+
"categories": _COCO_CATEGORIES,
35+
"interpolation": InterpolationMode.BILINEAR,
36+
}
3237

3338

3439
class FasterRCNNResNet50FPNWeights(Weights):

0 commit comments

Comments
 (0)