diff options
| author | Cameron <cysmith1010@gmail.com> | 2016-11-09 12:31:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-09 12:31:18 -0700 |
| commit | 14acee513bc63f82b8d069ccf8cd09454bed6811 (patch) | |
| tree | 0860a2ff9b58ec65029e16ad9cdac95d47dff7b5 /neural_style.py | |
| parent | e9bd5f3525f9aa4b200a8c00cbff7b95c09ae6dc (diff) | |
Update neural_style.py
Diffstat (limited to 'neural_style.py')
| -rw-r--r-- | neural_style.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/neural_style.py b/neural_style.py index 936abce..62875f6 100644 --- a/neural_style.py +++ b/neural_style.py @@ -551,7 +551,7 @@ def normalize(weights): denom = sum(weights) if denom > 0.: return [float(i) / denom for i in weights] - else: return [0.] + else: return [0. for _ in weights] def maybe_make_directory(dir_path): if not os.path.exists(dir_path): |
