Closed cmosig closed 11 months ago
Hi @cmosig
Im not familar with this error and its hard to tell from that traceback the location of the error. It appears to be an error with the pyqgis interface but im not sure. Do any of the other tools within the plugin work? (for example the sinuosity tool...). Having said that, it is recommended to install segment-geospatial manually on OSX or linux. The reason is that QGIS does not distribute a seperate python version for those OS systems and the configure tool may not properly handle the installation.
Thanks for the quick answer! I have not installed segment-geospatial manually on my (Ubuntu 22) system. When using this configuration button again I get the same result.
I believe the other tools in the plugin work.
Can I run anything with more debug output?
Hi again,
Sorry I dont think there is an option to display more. Have you tried installing segment-geospatial=0.5.0 manually on your system? What error do you receive then? You could also try directly in your QGIS python console to type
import subprocess
subprocess.check_call(['python3', 'm','pip','install','segment-geospatial=0.5.0'])
It's weird, the install works fine. segment-geospatial==0.5.0
is installed on my system. The install also works fine from the python console.
Is there anything else in the configuration script before or after the install that can cause this error/crash?
If segment-geosptial was sucessfully installed then all you need to do is download the training datasets from META available here
https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth
Each file should be placed within your geometric attributes toolbox located in your case at
/home/cmosig/.local/share/QGIS/QGIS3/profiles/default/python/plugins/geometric_attributes
Once that is done, the tool should work.
Alright, then I am going to close this issue. Thank you
When using the button "Configure Segment Anything Model (SAM)", the program hangs for a while (expected), but then I get the following error:
Let me know which other information is needed.