Skip to content

Commit

Permalink
Update import
Browse files Browse the repository at this point in the history
  • Loading branch information
geoyee committed Dec 22, 2021
1 parent 8fa1a30 commit 6cda4f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions buildseg/buildSeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtWidgets import QAction

from buildseg import utils
# Initialize Qt resources from file resources.py
from .resources import *
# Import the code for the dialog
Expand Down Expand Up @@ -299,7 +298,6 @@ def init_setting(self):
self.dlg.cbxOverlap.addItems([str(s) for s in self.overlap_size_list])
self.dlg.cbxOverlap.setCurrentIndex(4) # default 32
self.dlg.cbxScale.addItems([str(s) for s in self.scale_list])
self.infer_worker = utils.InferWorker(self.model_file, self.param_file)
# # quick test in my computer
# self.dlg.cbxScale.setCurrentIndex(5)
# self.dlg.mQfwShape.setFilePath(r"C:\Users\Geoyee\Desktop\dd\test.shp")
Expand All @@ -318,6 +316,7 @@ def run(self):
# check env
check_pass = self.check_python_pip_env()
if check_pass is True:
self.infer_worker = utils.InferWorker(self.model_file, self.param_file)
# Run the dialog event loop
result = self.dlg.exec_()
# See if OK was pressed
Expand Down

0 comments on commit 6cda4f1

Please sign in to comment.