Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-head model support #149 #150

Merged
merged 31 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
362ccc5
Clip removed and docs updated #149
przemyslaw-aszkowski Feb 21, 2024
13898f7
Handle no channel models, prepare new tests
bartoszptak Feb 22, 2024
64bf2f1
Allow for multi outputs for regressor and segmentor
bartoszptak Feb 23, 2024
db3e5a4
Fix pytest segmentation fault
przemyslaw-aszkowski Feb 23, 2024
c89b2fb
Merge branch 'devel' into fix_pytest
przemyslaw-aszkowski Feb 23, 2024
92ee5cc
remove xvfb-run
przemyslaw-aszkowski Feb 23, 2024
c863fbd
syntax fix
przemyslaw-aszkowski Feb 23, 2024
ce5d21f
xvfb-run fixes
przemyslaw-aszkowski Feb 23, 2024
7cde2f6
test fixes
przemyslaw-aszkowski Feb 23, 2024
6027967
tmp fix
przemyslaw-aszkowski Feb 23, 2024
6e6b702
test fix WIP
przemyslaw-aszkowski Feb 23, 2024
22b8392
test fixes
przemyslaw-aszkowski Feb 23, 2024
29610b7
Merge remote-tracking branch 'origin/fix_pytest' into clip_removed_an…
bartoszptak Feb 23, 2024
3779c5a
Make numpy compatible with ubuntu20
bartoszptak Feb 23, 2024
9bf5aee
Why did the export test work before?
bartoszptak Feb 29, 2024
5ea69a4
Fix tests, changle new model names
bartoszptak Feb 29, 2024
33114ea
Update docs, add names to dummy regression models
bartoszptak Feb 29, 2024
a99744f
Update regression tests
bartoszptak Feb 29, 2024
b6e9663
Handle sigmoid segmentation models that have background in names
bartoszptak Feb 29, 2024
c761756
Add model outputs to UX, fix yolo SEGM
bartoszptak Mar 1, 2024
eaba849
Documentation update and code fixes
przemyslaw-aszkowski Mar 1, 2024
3b81ce9
Update map_processor_segmentation.py
bartoszptak Mar 1, 2024
6347522
Add YOLOv9 model handle
bartoszptak Mar 20, 2024
9ff4811
Restore two channels for sigmoid segmentation
bartoszptak Mar 20, 2024
3d5794d
Export fixed
bartoszptak Mar 21, 2024
ab99982
Sort files in export test
bartoszptak Mar 21, 2024
7e7d009
Add YOLOv9 model
bartoszptak Mar 21, 2024
186463a
Docs improvements
bartoszptak Mar 21, 2024
c492e4e
Docs improvements
bartoszptak Mar 21, 2024
0d05b73
Update test name
bartoszptak Mar 21, 2024
c2b757e
Merge pull request #156 from PUTvision/yolov9
przemyslaw-aszkowski Mar 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/source/creators/creators_description_classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ For each output class, a separate vector layer can be created.

Output report contains information about percentage coverage of each class.

The model should have at least two output classes, one for the background and one (or more) for the object of interest. The background class should be the first class in the output.
przemyslaw-aszkowski marked this conversation as resolved.
Show resolved Hide resolved
Model outputs should sum to 1.0 for each pixel, so the output is a probability map. To achieve this, the output should be passed through a softmax function.


===============
Detection Model
Expand Down
3 changes: 2 additions & 1 deletion src/deepness/processing/models/segmentor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def postprocessing(self, model_output: List) -> np.ndarray:
np.ndarray
Batch of postprocessed masks (N,H,W,C), 0-1
"""
labels = np.clip(model_output[0], 0, 1)
# labels = np.clip(model_output[0], 0, 1)
labels = model_output[0] # no need for clipping I think - see #149

return labels

Expand Down
Loading