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

organoid_tracker.py cannot recognize .tif, .jpg, .gif files #1

Open
hanmingcr opened this issue Dec 20, 2021 · 5 comments
Open

organoid_tracker.py cannot recognize .tif, .jpg, .gif files #1

hanmingcr opened this issue Dec 20, 2021 · 5 comments

Comments

@hanmingcr
Copy link

hanmingcr commented Dec 20, 2021

The package was installed on Ubuntu 20.04. Unfortunately, the executable file cannot recognize any regular image files.

@rutgerkok
Copy link
Member

rutgerkok commented Dec 21, 2021

That's strange. The program should start just by running python organoid_tracker.py, and then the screen below should open. From there, you can load a lot of different image formats.

Screenshot

That said, we have never tested the program on Ubuntu, only on Windows. So I expect some issues to arise. If you encounter any errors in the console, you can post them here and I'll have a look.

@hanmingcr
Copy link
Author

Screenshot from 2021-12-23 15-13-47

Thank you for your reply. There is no error message when I run organoid_tracker.py. It just cannot recognize any image, even the ones included in the manuals/images/ folder (see the attached screenshot).

rutgerkok added a commit that referenced this issue Dec 24, 2021
This is what the official PyQT documentation uses. Maybe this could explain the issue #1 ?
@rutgerkok
Copy link
Member

rutgerkok commented Dec 24, 2021

Thanks for the screenshot! Looking at the official documentation ( https://doc.qt.io/qtforpython-5/PySide2/QtWidgets/QFileDialog.html#PySide2.QtWidgets.PySide2.QtWidgets.QFileDialog.getOpenFileName ) it seems like I need to use a space instead of a semicolon to separate the file extensions (*.nd2;*.tif). Maybe that fixes it? I've updated OrganoidTracker to include this change.

@hanmingcr
Copy link
Author

Thank you! The issue is gone now. By the way, would you mind uploading a python script to convert the checkpoint files of your pre-trained model into saved_model.pb? I used the savedmodel module to convert, but it generates a .pb file incompatible to tensorflow2.5.

@rutgerkok
Copy link
Member

I would use the stable branch - https://github.com/jvzonlab/OrganoidTracker/tree/stable . That one contains the network as it was published.

For the master branch, we're still testing things out, to find what works best.

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