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

Solved https://github.com/zhou13/lcnn/issues/53#issue-1005072261 #54

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

ibrahim-601
Copy link
Contributor

In PyTorch 1.4.x (index/128) at

y = (index / 128).float() + torch.gather(joff[:, 0], 1, index) + 0.5
outputs integer values but in PyTorch 1.8.x it outputs float values. Updating it with (index//128) outputs integer values in both PyTorch versions and solves #53 (comment).

In PyTorch 1.4.x (index/128) at https://github.com/zhou13/lcnn/blob/88f281ab5421d51a62f1f84f97fea05afbf0c8d8/lcnn/models/line_vectorizer.py#L174 outputs integer values but in PyTorch 1.8.x it outputs float values. Updating it with (index//128) outputs integer values in both PyTorch versions and solves zhou13#53 (comment).
@zhou13 zhou13 merged commit e07e48b into zhou13:master Sep 27, 2021
@zhou13
Copy link
Owner

zhou13 commented Sep 27, 2021

Good catch! Thanks for the contribution.

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.

2 participants