Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Commits
4dfc63a8
Commit
4dfc63a8
authored
1 year ago
by
Daniel CARRON
Browse files
Options
Downloads
Patches
Plain Diff
[doc] Fix typos
parent
45043ddb
No related branches found
No related tags found
2 merge requests
!18
Update tests
,
!16
Make square centre-padding a model transform
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mednet/engine/saliency/viewer.py
+5
-5
5 additions, 5 deletions
src/mednet/engine/saliency/viewer.py
with
5 additions
and
5 deletions
src/mednet/engine/saliency/viewer.py
+
5
−
5
View file @
4dfc63a8
...
...
@@ -63,7 +63,7 @@ def _overlay_saliency_map(
Parameters
----------
image
The input image that will be overla
ye
d with the saliency map.
The input image that will be overla
i
d with the saliency map.
saliencies
The saliency map that will be overlaid on the (raw) image.
colormap
...
...
@@ -118,7 +118,7 @@ def _overlay_bounding_box(
Parameters
----------
image
The input image that will be overla
ye
d with the saliency map.
The input image that will be overla
i
d with the saliency map.
bbox
The bounding box to draw on the input image.
color
...
...
@@ -149,13 +149,13 @@ def _process_sample(
saliencies
:
numpy
.
typing
.
NDArray
[
numpy
.
double
],
ground_truth
:
BoundingBoxes
,
)
->
PIL
.
Image
.
Image
:
"""
Generate an overla
ye
d representation of the original sample and saliency
"""
Generate an overla
i
d representation of the original sample and saliency
maps.
Parameters
----------
raw_data
The raw data representing the input sample that will be overla
ye
d with
The raw data representing the input sample that will be overla
i
d with
saliency maps and annotations.
saliencies
The saliency map recovered from the model, that will be imprinted on
...
...
@@ -166,7 +166,7 @@ def _process_sample(
Returns
-------
PIL.Image.Image
An image with the original raw data overla
ye
d with the different
An image with the original raw data overla
i
d with the different
elements as selected by the user.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment