Skip to content
Snippets Groups Projects

GDP 4.2.10 - Adding Debug mode to GUI.py to run individual modules

Merged mhby1g21 requested to merge GDP-4.2.10 into master
1 file
+ 19
5
Compare changes
  • Side-by-side
  • Inline
@@ -270,7 +270,9 @@ class EdgeNetTab(QWidget):
def on_include_top_changed(self, state):
"""Handle include top checkbox change"""
self.include_top = state == Qt.CheckState.Checked
# In PyQt6, CheckState.Checked has value 2
self.include_top = (state == 2) # or state == Qt.CheckState.Checked
self.update_status(f"Include top changed to: {self.include_top}")
def verify_inputs(self):
"""Verify input files exist"""
@@ -319,10 +321,22 @@ class EdgeNetTab(QWidget):
def _build_infer_command(self):
"""Build infer360.py command"""
include_top = "--include_top y" if self.include_top else ""
return (f'wsl bash -c "source {self.config_reader.config["wslAnacondaDir"]}/activate'
f' {self.config_reader.config["edgeNetEnv"]} && '
f'python infer360.py Input enhanced_depth_e.png material.png rgb.png Input {include_top}"')
# Debug print to verify include_top state
self.update_status(f"Current include_top state: {self.include_top}")
base_cmd = (f'wsl bash -c "source {self.config_reader.config["wslAnacondaDir"]}/activate'
f' {self.config_reader.config["edgeNetEnv"]} && '
f'python infer360.py Input enhanced_depth_e.png material.png rgb.png Input')
if self.include_top:
command = base_cmd + ' --include_top y"'
else:
command = base_cmd + '"'
# Log final command
self.update_status(f"Final command: {command}")
return command
def on_edge_net_complete(self, success, error_message):
"""Handle EdgeNet completion"""
Loading