Skip to content

Commit

Permalink
Add requirements.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jill-Jênn Vie committed Dec 10, 2018
2 parents 475014e + 7498b29 commit f4d2e60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion i2v/chainer_i2v.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _forward(self, inputs, layername):
input_ -= self.mean # subtract mean
input_ = input_.transpose((0, 3, 1, 2)) # (N, H, W, C) -> (N, C, H, W)
x = Variable(input_)
with chainer.using_config('train', False):
with chainer.using_config('train', False), chainer.using_config('enable_backprop', False):
y, = self.net(inputs={'data': x}, outputs=[layername])
return y

Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
numpy
scipy
Pillow
scikit-image
chainer>=2.0.0

0 comments on commit f4d2e60

Please sign in to comment.