Skip to content
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

retrain #30

Open
Lucifer1002 opened this issue Apr 14, 2022 · 1 comment
Open

retrain #30

Lucifer1002 opened this issue Apr 14, 2022 · 1 comment

Comments

@Lucifer1002
Copy link

Hello, I would like to ask how to retrain on the basis of the pre-trained model to enhance the network's resistance to rotation?How to implement?

@jiangwei221
Copy link
Collaborator

Hi, in order to obtain the correct correspondences, you need to rotate the camera pose, also the image and depth.
You can check:

def rotate_capture(cap, rot):
if rot == 0:
return copy.deepcopy(cap)
else:
rot_pose = rotate_camera_pose(cap.cam_pose, rot)
rot_cap = copy.deepcopy(cap)
rot_cap.cam_pose = rot_pose
if hasattr(rot_cap, 'captured_image'):
rot_cap.captured_image.rotation = rot
if hasattr(rot_cap, 'captured_depth'):
rot_cap.captured_depth.rotation = rot
return rot_cap

However, this implementation will cause black borders which can be a problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants