diff options
author | Sam Gross <colesbury@gmail.com> | 2015-08-24 20:45:35 +0300 |
---|---|---|
committer | Sam Gross <colesbury@gmail.com> | 2015-08-24 20:45:35 +0300 |
commit | 340b26957739cdc3583faec7e805194522e51fb5 (patch) | |
tree | f17a24ef142fc46806d64653e745e68f5b413051 | |
parent | de926c7de81cf317ef92b908cacf20c8978efbfc (diff) |
Fix clampImage function call to saturate
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -143,8 +143,8 @@ local function clampImage(tensor) return tensor end local a = torch.Tensor():resize(tensor:size()):copy(tensor) - a.image.saturate(tensor) -- bound btwn 0 and 1 - a:mul(255) -- remap to [0..255] + a.image.saturate(a) -- bound btwn 0 and 1 + a:mul(255) -- remap to [0..255] return a end |