Skip to content

Commit

Permalink
Fix....?
Browse files Browse the repository at this point in the history
from comment :
azadis#15

 t_normal_stack = transforms.Compose([
transforms.Normalize((0.5,), (0.5,)),
])
  • Loading branch information
Abul22 authored Jul 10, 2019
1 parent f9fe7cb commit e9a073e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ def normalize_stack(input,val=0.5):
len_ = input.size(1)
mean = (val,)*len_
std = (val,)*len_
t_normal_stack = transforms.Compose([
transforms.Normalize(mean,std)])
t_normal_stack = transforms.Compose([
transforms.Normalize((0.5,), (0.5,)),
])
return t_normal_stack(input)


Expand Down

0 comments on commit e9a073e

Please sign in to comment.