Skip to content

Commit f172a66

Browse files
authored
Merge branch 'main' into port-grayscale
2 parents d405efb + 9ba2158 commit f172a66

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

references/segmentation/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def compute(self):
8888
return acc_global, acc, iu
8989

9090
def reduce_from_all_processes(self):
91-
reduce_across_processes(self.mat)
91+
self.mat = reduce_across_processes(self.mat).to(torch.int64)
9292

9393
def __str__(self):
9494
acc_global, acc, iu = self.compute()

test/test_datasets_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ def url_parametrization(*dataset_urls_and_ids_fns):
368368
kinetics,
369369
kitti,
370370
places365,
371+
sbu,
371372
)
372373
def test_url_is_accessible(url):
373374
"""
@@ -379,7 +380,6 @@ def test_url_is_accessible(url):
379380

380381
@url_parametrization(
381382
stanford_cars, # https://github.com/pytorch/vision/issues/7545
382-
sbu, # https://github.com/pytorch/vision/issues/7964
383383
)
384384
@pytest.mark.xfail
385385
def test_url_is_not_accessible(url):

test/test_onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def to_numpy(tensor):
7979
inputs = list(map(to_numpy, inputs))
8080
outputs = list(map(to_numpy, outputs))
8181

82-
ort_session = onnxruntime.InferenceSession(onnx_io.getvalue())
82+
ort_session = onnxruntime.InferenceSession(onnx_io.getvalue(), providers=onnxruntime.get_available_providers())
8383
# compute onnxruntime output prediction
8484
ort_inputs = {ort_session.get_inputs()[i].name: inpt for i, inpt in enumerate(inputs)}
8585
ort_outs = ort_session.run(None, ort_inputs)

torchvision/transforms/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ def erase(img: Tensor, i: int, j: int, h: int, w: int, v: Tensor, inplace: bool
13261326
def gaussian_blur(img: Tensor, kernel_size: List[int], sigma: Optional[List[float]] = None) -> Tensor:
13271327
"""Performs Gaussian blurring on the image by given kernel.
13281328
If the image is torch Tensor, it is expected
1329-
to have [..., H, W] shape, where ... means an arbitrary number of leading dimensions.
1329+
to have [..., H, W] shape, where ... means at most one leading dimension.
13301330
13311331
Args:
13321332
img (PIL Image or Tensor): Image to be blurred

torchvision/transforms/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ def __repr__(self) -> str:
17601760
class GaussianBlur(torch.nn.Module):
17611761
"""Blurs image with randomly chosen Gaussian blur.
17621762
If the image is torch Tensor, it is expected
1763-
to have [..., C, H, W] shape, where ... means an arbitrary number of leading dimensions.
1763+
to have [..., C, H, W] shape, where ... means at most one leading dimension.
17641764
17651765
Args:
17661766
kernel_size (int or sequence): Size of the Gaussian kernel.

torchvision/transforms/v2/_type_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _transform(
7979

8080

8181
class ToPureTensor(Transform):
82-
"""[BETA] Convert all tv_tensors to pure tensors, removing associated metadata (if any).
82+
"""[BETA] Convert all TVTensors to pure tensors, removing associated metadata (if any).
8383
8484
.. v2betastatus:: ToPureTensor transform
8585

0 commit comments

Comments
 (0)