-
Notifications
You must be signed in to change notification settings - Fork 22
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
bad recognition of particular file #15
Comments
Thanks for creating this issue. We are looking into the problem |
Yeah, the color model for this image isn't properly handled in our grayscale conversion. We've found the problem and should have a fix shortly. |
We have pushed a fix for this issue. I have also pushed this change out to maven's snapshot repository. Can you either check out the latest version of the codebase or change your molvec dependency in your build tool to thanks!! |
Thank you for the fast response on this - we rebuilt the jar off of master, but I still get the same result on this particular image:
|
Sorry to hear that! I just tried the same locally by downloading the png file above, and it seems to work.
Is it possible that local cached changes or something similar have prevented a clean build? Can you do a git stash, git pull, and try building again? Also see if a Thanks for bringing this to our attention! |
Thanks for those results, that means it is on my end somewhere. I'll build locally Monday instead of on a remote machine and see what is going wrong. |
I made a fresh checkout and built the jar locally on my mac rather than a remote Linux machine. I built it in Eclipse by right clicking the pom.xml and selecting Run as -> Maven install. The output there shows all tests passing but it also prints a stack trace for a CDK-related exception, not sure if that is relevant. I don't have any experience with maven so I don't know if the warning on the third line is regarding my setup or the project. But I still seem to get the same result from using the jar file. When I open the file up in the GUI, it shows it only recognized a line at the bottom of the image, the rest is blank. Attaching the gui's command-line output here as well. |
It's possible that the image we tried is different than the one you're testing, or that something strange is happening with the jar build. Here is a gist of the jar I tried: Here is the md5sum of the image above that I tried:
Could you confirm that the md5sum of your image locally matches this? You can also see if the raw jar does work for that image. This may help debug the issue. |
It is the same file, same md5sum, and I got the same result from your jar as the one I built. Then I tried it on a linux machine and got the correct result. Looking a little closer I find different behavior for different java versions. On the linux machine the command
If I find the I hope that was clear. |
I looked at the jar that I had built, and Eclipse was set to use java 8 (which is the same as 1.8?). I manually switched the java home for maven to use to the edit: I should have narrowed in on this sooner. The current sources will compile and pass tests against java 1.8. If you take that jar and run it from java 11 then it fails this test file. If I try to compile against java 11 then it fails due to test failures. |
Using the image below, molvec version 0.9.8 is recognizing it as ethane (version 0.9.6 was finding propane). Is there something wrong with this PNG? Is there some kind of preprocessing that might improve the recognition?
The text was updated successfully, but these errors were encountered: