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
b81d189d
"vscode:/vscode.git/clone" did not exist on "30b4f771b0c515c18179f3e1ee0b4662b2606a95"
Unverified
Commit
b81d189d
authored
Oct 04, 2021
by
Nicolas Hug
Committed by
GitHub
Oct 04, 2021
Browse files
Fix all outstanding flake8 issues (#4535)
parent
5f0edb97
Changes
28
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
14 deletions
+5
-14
torchvision/datasets/cifar.py
torchvision/datasets/cifar.py
+0
-1
torchvision/datasets/widerface.py
torchvision/datasets/widerface.py
+0
-1
torchvision/io/_video_opt.py
torchvision/io/_video_opt.py
+0
-1
torchvision/models/densenet.py
torchvision/models/densenet.py
+2
-2
torchvision/models/detection/rpn.py
torchvision/models/detection/rpn.py
+1
-1
torchvision/models/detection/ssdlite.py
torchvision/models/detection/ssdlite.py
+1
-1
torchvision/models/mobilenetv2.py
torchvision/models/mobilenetv2.py
+0
-1
torchvision/ops/_register_onnx_ops.py
torchvision/ops/_register_onnx_ops.py
+1
-6
No files found.
torchvision/datasets/cifar.py
View file @
b81d189d
...
...
@@ -4,7 +4,6 @@ import pickle
from
typing
import
Any
,
Callable
,
Optional
,
Tuple
import
numpy
as
np
import
torch
from
PIL
import
Image
from
.utils
import
check_integrity
,
download_and_extract_archive
...
...
torchvision/datasets/widerface.py
View file @
b81d189d
...
...
@@ -6,7 +6,6 @@ import torch
from
PIL
import
Image
from
.utils
import
(
check_integrity
,
download_file_from_google_drive
,
download_and_extract_archive
,
extract_archive
,
...
...
torchvision/io/_video_opt.py
View file @
b81d189d
import
math
import
os
import
warnings
from
fractions
import
Fraction
from
typing
import
List
,
Tuple
...
...
torchvision/models/densenet.py
View file @
b81d189d
...
...
@@ -65,11 +65,11 @@ class _DenseLayer(nn.Module):
return
cp
.
checkpoint
(
closure
,
*
input
)
@
torch
.
jit
.
_overload_method
# noqa: F811
def
forward
(
self
,
input
:
List
[
Tensor
])
->
Tensor
:
def
forward
(
self
,
input
:
List
[
Tensor
])
->
Tensor
:
# noqa: F811
pass
@
torch
.
jit
.
_overload_method
# noqa: F811
def
forward
(
self
,
input
:
Tensor
)
->
Tensor
:
def
forward
(
self
,
input
:
Tensor
)
->
Tensor
:
# noqa: F811
pass
# torchscript does not yet support *args, so we overload method
...
...
torchvision/models/detection/rpn.py
View file @
b81d189d
...
...
@@ -9,7 +9,7 @@ from torchvision.ops import boxes as box_ops
from
.
import
_utils
as
det_utils
# Import AnchorGenerator to keep compatibility.
from
.anchor_utils
import
AnchorGenerator
from
.anchor_utils
import
AnchorGenerator
# noqa: 401
from
.image_list
import
ImageList
...
...
torchvision/models/detection/ssdlite.py
View file @
b81d189d
import
warnings
from
collections
import
OrderedDict
from
functools
import
partial
from
typing
import
Any
,
Callable
,
Dict
,
List
,
Optional
,
Tuple
from
typing
import
Any
,
Callable
,
Dict
,
List
,
Optional
import
torch
from
torch
import
nn
,
Tensor
...
...
torchvision/models/mobilenetv2.py
View file @
b81d189d
import
warnings
from
functools
import
partial
from
typing
import
Callable
,
Any
,
Optional
,
List
import
torch
...
...
torchvision/ops/_register_onnx_ops.py
View file @
b81d189d
...
...
@@ -7,12 +7,7 @@ _onnx_opset_version = 11
def
_register_custom_op
():
from
torch.onnx.symbolic_helper
import
(
parse_args
,
scalar_type_to_onnx
,
scalar_type_to_pytorch_type
,
cast_pytorch_to_onnx
,
)
from
torch.onnx.symbolic_helper
import
parse_args
from
torch.onnx.symbolic_opset11
import
select
,
squeeze
,
unsqueeze
from
torch.onnx.symbolic_opset9
import
_cast_Long
...
...
Prev
1
2
Next
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