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

Have anybody tried resizing images into model training? #42

Open
Mandylove1993 opened this issue Dec 15, 2021 · 2 comments
Open

Have anybody tried resizing images into model training? #42

Mandylove1993 opened this issue Dec 15, 2021 · 2 comments

Comments

@Mandylove1993
Copy link

My self data set image resolution is too high to train the model --- "cuda out of memory".....So I want to resize images,I modify kitti.py to resize image,but when train datas, it will come the error in "if torch.isinf(v).sum() > 0: pdb.set_trace()" and "combined_MAE = torch.cat((depth_MAE.unsqueeze(1), keypoint_MAE), dim=1) ", the reason is “ num_reg_2D ” not > 0, but I can't find out the root cases.Have anyone else can share the changes for resize?,thanks!

@ruhyadi
Copy link

ruhyadi commented May 15, 2022

I had the same experience with resizing images on RTM3D and had an error (though not the same). Each image is associated with its own label. When you resize an image, you have to change the value in the label as well. This will become more complicated.
Maybe you can try lowering the batch size so that the memory is not full. Hope this help.

@clw5180
Copy link

clw5180 commented Sep 26, 2022

just resize the img, 2d_bbox and cam_intrinsic

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

3 participants