Aixile / chainer-cyclegan

Chainer CycleGAN
MIT License
238 stars 55 forks source link

TypeError: __call__() got an unexpected keyword argument 'test' #2

Open taktak1 opened 7 years ago

taktak1 commented 7 years ago

python train.py

File "/chainer-cyclegan/updater.py", line 122, in update_core x_y = self.gen_g(x) File "/chainer-cyclegan/common/net.py", line 146, in call h = self.c1(x, test=test) File "/chainer-cyclegan/common/net.py", line 83, in call h = self.batchnorm(h, test=test) TypeError: call() got an unexpected keyword argument 'test'

taktak1 commented 7 years ago

What is wrong?

Aixile commented 7 years ago

Are you using chainer 2? This code only support chainer 1.16~1.24, please downgrade chainer or modify the code manually (http://docs.chainer.org/en/stable/upgrade.html)