-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added CReTA #775
base: master
Are you sure you want to change the base?
Added CReTA #775
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we remove this tsv file from the PR?
Each row in the matrix contains (xi,yi,xj,yj) where xi,yi and xj,yj | ||
are coordinates for images i,j respectively afer correcting for camera intrinsics. | ||
R_avg: 3X3XN matrix of absolute rotations. [iRw in our notation] | ||
maxImages: Maimum No. of images in the dataset (used for indexing) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo on
Maximum number of images in the dataset (used for indexing).
from typing import Dict, List, Optional, Tuple | ||
|
||
import numpy as np | ||
from scipy.io import savemat, loadmat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's import only the module, as import scipy.io
, instead of importing the function.
savemat(f"ta_input_{matches_hash}.mat", {"RT": RT, "edges": edges, "R_avg": R_avg, "matches": matches}) | ||
if not os.path.isfile(f"ta_output_{matches_hash}.mat"): | ||
raise FileExistsError("Could not find CReTA translation averaging solution.") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we add a comment for L98 about what needs to be run in between L97 and L100?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove this .asv file and all the other .asv files? (autosaved files)
No description provided.