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
04f70c1b
Commit
04f70c1b
authored
Sep 06, 2019
by
Vishwak Srinivasan
Committed by
Francisco Massa
Sep 06, 2019
Browse files
Modify gels to lstsq (#1293)
parent
f58d1d3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchvision/transforms/functional.py
torchvision/transforms/functional.py
+1
-1
No files found.
torchvision/transforms/functional.py
View file @
04f70c1b
...
@@ -437,7 +437,7 @@ def _get_perspective_coeffs(startpoints, endpoints):
...
@@ -437,7 +437,7 @@ def _get_perspective_coeffs(startpoints, endpoints):
A
=
torch
.
tensor
(
matrix
,
dtype
=
torch
.
float
)
A
=
torch
.
tensor
(
matrix
,
dtype
=
torch
.
float
)
B
=
torch
.
tensor
(
startpoints
,
dtype
=
torch
.
float
).
view
(
8
)
B
=
torch
.
tensor
(
startpoints
,
dtype
=
torch
.
float
).
view
(
8
)
res
=
torch
.
ge
ls
(
B
,
A
)[
0
]
res
=
torch
.
ls
tsq
(
B
,
A
)[
0
]
return
res
.
squeeze_
(
1
).
tolist
()
return
res
.
squeeze_
(
1
).
tolist
()
...
...
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