This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
QDeepLandia v1.0.0 #1
Open
SebastienPeillet
wants to merge
11
commits into
master
Choose a base branch
from
dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
64dd05d
ENH: add function to load model
b3e87cd
begin processing utils
d3d5d05
First operational workflow
51475d3
ENH : workflow refac with QgsTask + canvas extent use
92f74f0
use tmp folder
0b87259
better method to get tmp dir
d371781
block inference button during inference task
165208a
config: consider a config sample, that each user must tune
delhomer 93fcffc
packaging: update Makefile
delhomer 107f22d
minor pep8 fixes
delhomer 0e5a51a
load_model: simplify the model loading with respect to deeposlandia 0…
delhomer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*~ | ||
*~ | ||
config.ini | ||
data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[status] | ||
status = dev | ||
|
||
[running] | ||
processes = 1 | ||
|
||
[symlink] | ||
aerial = /path/to/aerial/dataset/ | ||
tanzania = /path/to/tanzania/dataset/ | ||
|
||
[folder] | ||
project_folder = /path/to/static/files/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from qgis.core import Qgis, QgsProcessingFeedback, QgsMessageLog | ||
|
||
class Feedback(QgsProcessingFeedback): | ||
"""To provide feedback to the message bar from the express tools""" | ||
|
||
def __init__(self, iface): | ||
super().__init__() | ||
self.iface = iface | ||
self.fatal_errors = [] | ||
|
||
def reportError(self, error, fatalError=False): | ||
QgsMessageLog.logMessage(str(error), "QDeeplandia") | ||
if fatalError: | ||
self.fatal_errors.append(error) | ||
|
||
def pushToUser(self, exception): | ||
QgsMessageLog.logMessage(str(exception), "QDeeplandia") | ||
self.iface.messageBar().pushMessage( | ||
"Error", ", ".join(self.fatal_errors), level=Qgis.Critical, duration=0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from qgis.PyQt.QtWidgets import QDialog, QWidget, QHBoxLayout, QVBoxLayout, QLabel, QSpinBox, QDialogButtonBox | ||
|
||
class NbLabelDialog(QDialog): | ||
def __init__(self,parent): | ||
super(NbLabelDialog, self).__init__() | ||
|
||
self.VL = QVBoxLayout(self) | ||
self.HL = QHBoxLayout() | ||
self.VL.addLayout(self.HL) | ||
|
||
self.label = QLabel(self.tr('Number of label : ')) | ||
self.HL.addWidget(self.label) | ||
|
||
self.spinbox = QSpinBox() | ||
self.HL.addWidget(self.spinbox) | ||
|
||
self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) | ||
self.buttonBox.accepted.connect(self.accept) | ||
self.buttonBox.rejected.connect(self.reject) | ||
self.VL.addWidget(self.buttonBox) | ||
|
||
def param(self): | ||
return self.spinbox.value() |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
White space after
,
.