Skip to content

Add SAM2 tree detection functionality - Added TreeDetector class and …#71

Open
gstazure wants to merge 1 commit intocoolzhao:mainfrom
gstazure:feature/sam2-tree-detection
Open

Add SAM2 tree detection functionality - Added TreeDetector class and …#71
gstazure wants to merge 1 commit intocoolzhao:mainfrom
gstazure:feature/sam2-tree-detection

Conversation

@gstazure
Copy link

…Detect Trees button with zero-shot detection and fine-tuning capabilities

…Detect Trees button with zero-shot detection and fine-tuning capabilities
@Fanchengyan
Copy link
Collaborator

Hi @gstazure,

Thank you very much for your contribution!

When I tested it on my own computer, the plugin reported an error immediately upon clicking the "Geo-SAM Segmentation" button. The error message is as follows:

AttributeError: 'QgsDockWidget' object has no attribute 'vl_group_tools'  
Traceback (most recent call last):  
  File "/Users/fancy/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/geo_sam_tool.py", line 88, in create_widget_selector  
    self.wdg_select.open_widget()  
  File "/Users/fancy/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/Geo-SAM/tools/widgetTool.py", line 216, in open_widget  
    self.wdg_sel.vl_group_tools.addWidget(self.pushButton_detect_trees)  
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^  
AttributeError: 'QgsDockWidget' object has no attribute 'vl_group_tools'

Currently, vl_group_tools has not been defined. I suspect this might be because you forgot to include the modified part of Selector.ui.

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

Successfully merging this pull request may close these issues.

3 participants