Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Some small modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamjain0594 committed Jul 28, 2016
1 parent ec83a2f commit e6eb3a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion constants.lua
Expand Up @@ -11,6 +11,6 @@ imgHeight = 112 -- Height of the image to be resized to for use
imgWidth = 144 -- Width of the image to be resized to for use
trueHeight = 420 -- True height of the image
trueWidth = 580 -- True width of the image
baseSegmentationProb = 0.70 -- Probability with which to consider a pixel, a part of mask
baseSegmentationProb = 0.85 -- Probability with which to consider a pixel, a part of mask
nbClasses = 2 -- Number of classes in output, 2 since mask/no mask
interpolation = 'bicubic' -- Interpolation to be used for resizing
1 change: 0 additions & 1 deletion utils/utils.lua
Expand Up @@ -99,7 +99,6 @@ function CalculateDiceScore(outputs, targets)
local dice_coeff = 0
for i=1,outputs:size(1) do
local output_flatten = GetMaskFromOutput(outputs[i])
-- local output_flatten = GetTunedResult(outputs[i],baseSegmentationProb)
local target_flatten = targets[i]:float():add(-1)
local numerator = torch.cmul(output_flatten, target_flatten)
if output_flatten:sum() + target_flatten:sum() ~= 0 then
Expand Down

0 comments on commit e6eb3a9

Please sign in to comment.