-
Notifications
You must be signed in to change notification settings - Fork 44
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
PIL.Image attribute error when importing from detectree2.models.train #110
Comments
@JDtroles thanks for raising this issue. I believe that it comes from this issue with detectron2: In short, the newest Pillow (10.0.0) seems to be causing problems because If things are urgent, a temporary solution would be to pin the previous version of Pillow when installing detectron2: First clone locally:
Then edit the
Then install the package located in the current directory
Then, assuming the other dependencies are correctly set up, you should be able to install detectree2 with the usual method:
Please let me know if you have any questions or other thoughts. |
@PatBall1 thank you for the really fast answer! ERROR 1: PROJ: proj_create_from_database: /home/usr/anaconda3/envs/env-name/share/proj/proj.db lacks DATABASE.LAYOUT.VERSION.MAJOR / DATABASE.LAYOUT.VERSION.MINOR metadata. It comes from another PROJ installation. But probably I will just wait for the fix in detectron. Or is this totally unrelated? Thanks again! |
@JDtroles this seems to be a different issue deriving from a conflict with your installed version of the PROJ library. This problem usually arises when there are multiple versions of PROJ installed in your environment and the system is using an incompatible or incorrect version. Here are steps to troubleshoot this problem:
proj The version of the PROJ library should be displayed.
which proj This will return the path where
sudo find / -name "proj.db" This will return all paths where
For conda: conda install -c conda-forge proj For pip: pip install --upgrade pyproj
export PROJ_LIB=/path/to/proj.db Replace Note that this command will only set the You'll need to restart your terminal or source your bash file ( |
throws Error:
Help is greatly appreciated.
Thank you for your work!
The text was updated successfully, but these errors were encountered: