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

Fix incorrect dimensions when loading the shift predictor #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cyrusvahidi
Copy link

When loading the shift predictor, its dimensions were not being loaded correctly.

It does not match the directions of the latent deformator. For example, with a deformator of 64 dimensions, by default the shift predictor was initialized with 128 dimensions. This would not fail during training because of pytorch's use of both one-hots and integers in the cross-entropy loss of the predictor.

This small change in setting the shift predictor's dim explicitly to directions_count fixes this.

Correct me if my interpretation is wrong

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

Successfully merging this pull request may close these issues.

1 participant