-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from PUTvision/feat/0.6.0
Feat/0.6.0
- Loading branch information
Showing
25 changed files
with
465 additions
and
259 deletions.
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
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
11 changes: 11 additions & 0 deletions
11
src/deepness/common/processing_parameters/standardization_parameters.py
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,11 @@ | ||
import numpy as np | ||
|
||
|
||
class StandardizationParameters: | ||
def __init__(self, channels_number: int): | ||
self.mean = np.array([0.0 for _ in range(channels_number)], dtype=np.float32) | ||
self.std = np.array([1.0 for _ in range(channels_number)], dtype=np.float32) | ||
|
||
def set_mean_std(self, mean: np.array, std: np.array): | ||
self.mean = np.array(mean, dtype=np.float32) | ||
self.std = np.array(std, dtype=np.float32) |
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,20 @@ | ||
from qgis.PyQt.QtWidgets import QMessageBox, QTextEdit | ||
|
||
|
||
class ResizableMessageBox(QMessageBox): | ||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
self.setSizeGripEnabled(True) | ||
|
||
def event(self, event): | ||
if event.type() in (event.LayoutRequest, event.Resize): | ||
if event.type() == event.Resize: | ||
res = super().event(event) | ||
else: | ||
res = False | ||
details = self.findChild(QTextEdit) | ||
if details: | ||
details.setMaximumSize(16777215, 16777215) | ||
self.setMaximumSize(16777215, 16777215) | ||
return res | ||
return super().event(event) |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
name=Deepness: Deep Neural Remote Sensing | ||
qgisMinimumVersion=3.22 | ||
description=Inference of deep neural network models (ONNX) for segmentation, detection and regression | ||
version=0.5.4 | ||
version=0.6.0 | ||
author=PUT Vision | ||
[email protected] | ||
|
||
|
Oops, something went wrong.