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

RuntimeError: Tensors must have same number of dimensions: got 4 and 3 #47

Open
WesternTrail opened this issue Dec 9, 2022 · 3 comments

Comments

@WesternTrail
Copy link

When I set the Model = MVSNET (Refine = TRUE), an error occurs: Runtimeerror: Tensors Must has number of diarsions: Got 4 and 3?IntersectionIntersectionDoes the Internet do not support the Refinement part

@Innocence4822
Copy link

Have you solved this problem?

@mumuliu66
Copy link

me too

@Zhaoyibinn
Copy link

    if not self.refine:
        return {"depth": depth, "photometric_confidence": photometric_confidence}
    else:
        resize_transform = torchvision.transforms.Resize(size=(depth.shape[1], depth.shape[2]))
        resized_img = resize_transform(imgs[0][0])
        refined_depth = self.refine_network(resized_img.unsqueeze(0), depth.unsqueeze(0))
        return {"depth": depth, "refined_depth": refined_depth, "photometric_confidence": photometric_confidence}

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

4 participants