Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yaoyuping
nnDetection
Commits
c133c39c
Commit
c133c39c
authored
Apr 22, 2021
by
mibaumgartner
Browse files
fix
parent
d4a926ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
21 deletions
+0
-21
nndet/losses/classification.py
nndet/losses/classification.py
+0
-3
nndet/losses/regression.py
nndet/losses/regression.py
+0
-16
nndet/losses/segmentation.py
nndet/losses/segmentation.py
+0
-2
No files found.
nndet/losses/classification.py
View file @
c133c39c
...
@@ -25,9 +25,6 @@ from nndet.losses.base import reduction_helper
...
@@ -25,9 +25,6 @@ from nndet.losses.base import reduction_helper
from
nndet.utils
import
make_onehot_batch
from
nndet.utils
import
make_onehot_batch
__all__
=
[
"focal_loss_with_logits"
,
"FocalLossWithLogits"
]
def
one_hot_smooth
(
data
,
def
one_hot_smooth
(
data
,
num_classes
:
int
,
num_classes
:
int
,
smoothing
:
float
=
0.0
,
smoothing
:
float
=
0.0
,
...
...
nndet/losses/regression.py
View file @
c133c39c
"""
Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from
typing
import
Optional
from
typing
import
Optional
import
torch
import
torch
...
...
nndet/losses/segmentation.py
View file @
c133c39c
...
@@ -20,8 +20,6 @@ import torch.nn as nn
...
@@ -20,8 +20,6 @@ import torch.nn as nn
from
torch
import
Tensor
from
torch
import
Tensor
from
typing
import
Callable
from
typing
import
Callable
__all__
=
[
"SoftDiceLoss"
]
def
one_hot_smooth_batch
(
data
,
num_classes
:
int
,
smoothing
:
float
=
0.0
):
def
one_hot_smooth_batch
(
data
,
num_classes
:
int
,
smoothing
:
float
=
0.0
):
shape
=
data
.
shape
shape
=
data
.
shape
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment