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

Error on normalize_target method of LadderVAE class #3

Open
mese79 opened this issue Jun 7, 2024 · 0 comments
Open

Error on normalize_target method of LadderVAE class #3

mese79 opened this issue Jun 7, 2024 · 0 comments

Comments

@mese79
Copy link
Collaborator

mese79 commented Jun 7, 2024

I was running the EvaluationOnTestImage notebook, and I've got an error regarding the two tensor are not on the same device.
It happens in normilize_target method: code
As a quick fix, I did this:

def normalize_target(self, target, batch=None):
    device = target.device
    return (target - self.data_mean.to(device)) / self.data_std.to(device)

I'm not sure if this is a bug or something's wrong with the notebook that I've run.

@mese79 mese79 changed the title Error on normilize_target method of LadderVAE class Error on normalize_target method of LadderVAE class Jun 8, 2024
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

1 participant