Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
0dceac02
Unverified
Commit
0dceac02
authored
Dec 13, 2022
by
Sergii Dymchenko
Committed by
GitHub
Dec 13, 2022
Browse files
Fix non-existing parameters in docstrings (#7025)
parent
93723b48
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
references/depth/stereo/utils/losses.py
references/depth/stereo/utils/losses.py
+1
-1
test/datasets_utils.py
test/datasets_utils.py
+1
-1
test/test_ops.py
test/test_ops.py
+3
-2
torchvision/models/_api.py
torchvision/models/_api.py
+1
-2
torchvision/models/detection/_utils.py
torchvision/models/detection/_utils.py
+1
-1
torchvision/transforms/transforms.py
torchvision/transforms/transforms.py
+1
-1
No files found.
references/depth/stereo/utils/losses.py
View file @
0dceac02
...
...
@@ -275,7 +275,7 @@ class SmoothnessLoss(nn.Module):
"""
Args:
images: tensor of shape (D1, D2, ..., DN, C, H, W)
depth
s: tensor of shape (D1, D2, ..., DN, 1, H, W)
val
s: tensor of shape (D1, D2, ..., DN, 1, H, W)
Returns:
smoothness loss of shape (D1, D2, ..., DN)
...
...
test/datasets_utils.py
View file @
0dceac02
...
...
@@ -951,7 +951,7 @@ def create_random_string(length: int, *digits: str) -> str:
Args:
length (int): Number of characters in the generated string.
*
character
s (str): Characters to sample from. If omitted defaults to :attr:`string.ascii_lowercase`.
*
digit
s (str): Characters to sample from. If omitted defaults to :attr:`string.ascii_lowercase`.
"""
if
not
digits
:
digits
=
string
.
ascii_lowercase
...
...
test/test_ops.py
View file @
0dceac02
...
...
@@ -585,8 +585,9 @@ class TestNMS:
def
_reference_nms
(
self
,
boxes
,
scores
,
iou_threshold
):
"""
Args:
box_scores (N, 5): boxes in corner-form and probabilities.
iou_threshold: intersection over union threshold.
boxes: boxes in corner-form
scores: probabilities
iou_threshold: intersection over union threshold
Returns:
picked: a list of indexes of the kept boxes
"""
...
...
torchvision/models/_api.py
View file @
0dceac02
...
...
@@ -117,7 +117,7 @@ def get_weight(name: str) -> WeightsEnum:
def
get_model_weights
(
name
:
Union
[
Callable
,
str
])
->
WeightsEnum
:
"""
Retuns the weights enum class associated to the given model.
Retu
r
ns the weights enum class associated to the given model.
.. betastatus:: function
...
...
@@ -137,7 +137,6 @@ def _get_enum_from_fn(fn: Callable) -> WeightsEnum:
Args:
fn (Callable): The builder method used to create the model.
weight_name (str): The name of the weight enum entry of the specific model.
Returns:
WeightsEnum: The requested weight enum.
"""
...
...
torchvision/models/detection/_utils.py
View file @
0dceac02
...
...
@@ -25,7 +25,7 @@ class BalancedPositiveNegativeSampler:
def
__call__
(
self
,
matched_idxs
:
List
[
Tensor
])
->
Tuple
[
List
[
Tensor
],
List
[
Tensor
]]:
"""
Args:
matched
idxs: list of tensors containing -1, 0 or positive values.
matched
_
idxs: list of tensors containing -1, 0 or positive values.
Each tensor corresponds to a specific image.
-1 values are ignored, 0 are considered as negatives and > 0 as
positives.
...
...
torchvision/transforms/transforms.py
View file @
0dceac02
...
...
@@ -2123,7 +2123,7 @@ class ElasticTransform(torch.nn.Module):
def
forward
(
self
,
tensor
:
Tensor
)
->
Tensor
:
"""
Args:
img
(PIL Image or Tensor): Image to be transformed.
tensor
(PIL Image or Tensor): Image to be transformed.
Returns:
PIL Image or Tensor: Transformed image.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment