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

Predicting SMILES with confidence returns last character of SMILES twice with the same confidence #104

Closed
1 task done
LaurinL0801 opened this issue Jun 10, 2024 · 0 comments

Comments

@LaurinL0801
Copy link

LaurinL0801 commented Jun 10, 2024

Issue Type

Bug

Source

GitHub (source)

DECIMER Image Transformer Version

2.6.0

OS Platform and Distribution

No response

Python version

No response

Current Behaviour?

When running the predict_SMILES function

def predict_SMILES(
with confidence=True, the last predicted SMILES gets returned twice. However, the SMILES returned without confidence value doesn't have this problem.

Which images caused the issue? (This is mandatory for images related issues)

No response

Standalone code to reproduce the issue

from DECIMER import predict_SMILES
predict_SMILES('path/to/chemical/structure/image', confidence=True)

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
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

2 participants