Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPV
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Macalík
MPV
Commits
a6c4bb09
Commit
a6c4bb09
authored
2 years ago
by
Dmytro Mishkin
Browse files
Options
Downloads
Patches
Plain Diff
fix typing
parent
368bdbde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assignment_0_3_correspondences_template/local_descriptor.py
+4
-4
4 additions, 4 deletions
assignment_0_3_correspondences_template/local_descriptor.py
with
4 additions
and
4 deletions
assignment_0_3_correspondences_template/local_descriptor.py
+
4
−
4
View file @
a6c4bb09
...
...
@@ -4,12 +4,12 @@ import torch
import
torch.nn
as
nn
import
torch.nn.functional
as
F
import
typing
from
typing
import
Tuple
from
imagefiltering
import
*
from
local_detector
import
*
def
affine_from_location
(
b_ch_d_y_x
:
torch
.
Tensor
)
->
torch
.
Tensor
:
def
affine_from_location
(
b_ch_d_y_x
:
torch
.
Tensor
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]
:
r
"""
Computes transformation matrix A which transforms point in homogeneous coordinates from canonical coordinate system into image
from keypoint location (output of scalespace_harris or scalespace_hessian)
Return:
...
...
@@ -26,7 +26,7 @@ def affine_from_location(b_ch_d_y_x: torch.Tensor)-> torch.Tensor:
def
affine_from_location_and_orientation
(
b_ch_d_y_x
:
torch
.
Tensor
,
ori
:
torch
.
Tensor
)
->
torch
.
Tensor
:
ori
:
torch
.
Tensor
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]
:
r
"""
Computes transformation matrix A which transforms point in homogeneous coordinates from canonical coordinate system into image
from keypoint location (output of scalespace_harris or scalespace_hessian). Ori - orientation angle in radians
Return:
...
...
@@ -44,7 +44,7 @@ def affine_from_location_and_orientation(b_ch_d_y_x: torch.Tensor,
def
affine_from_location_and_orientation_and_affshape
(
b_ch_d_y_x
:
torch
.
Tensor
,
ori
:
torch
.
Tensor
,
aff_shape
:
torch
.
Tensor
)
->
torch
.
Tensor
:
aff_shape
:
torch
.
Tensor
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]
:
r
"""
Computes transformation matrix A which transforms point in homogeneous coordinates from canonical coordinate system into image
from keypoint location (output of scalespace_harris or scalespace_hessian)
Return:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment