Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "C:\waifu2x-chainer\waifu2x.py", line 192, in <module>
- args, dst, models['noise_scale'], models['alpha'])
- File "C:\waifu2x-chainer\waifu2x.py", line 49, in upscale_image
- dst = reconstruct.image(dst, model, cfg.block_size, cfg.batch_size)
- File "C:\waifu2x-chainer\lib\reconstruct.py", line 149, in image
- dst = blockwise(src, model, block_size, batch_size)
- File "C:\waifu2x-chainer\lib\reconstruct.py", line 54, in blockwise
- batch_y = model(batch_x)
- File "C:\waifu2x-chainer\lib\srcnn.py", line 169, in __call__
- h = self.res1(h)
- File "C:\waifu2x-chainer\lib\srcnn.py", line 146, in __call__
- return h * se + x
- File "C:\Users\username\Anaconda3\lib\site-packages\chainer\functions\math\basic_math.py", line 337, in mul
- return Mul().apply((self, rhs))[0]
- File "C:\Users\username\Anaconda3\lib\site-packages\chainer\function_node.py", line 243, in apply
- self._check_data_type_forward(in_data)
- File "C:\Users\username\Anaconda3\lib\site-packages\chainer\function_node.py", line 328, in _check_data_type_forward
- self.check_type_forward(in_type)
- File "C:\Users\username\Anaconda3\lib\site-packages\chainer\functions\math\basic_math.py", line 297, in check_type_forward
- in_types[0].shape == in_types[1].shape
- File "C:\Users\username\Anaconda3\lib\site-packages\chainer\utils\type_check.py", line 524, in expect
- expr.expect()
- File "C:\Users\username\Anaconda3\lib\site-packages\chainer\utils\type_check.py", line 482, in expect
- '{0} {1} {2}'.format(left, self.inv, right))
- chainer.utils.type_check.InvalidType:
- Invalid operation is performed in: _ * _ (Forward)
- Expect: in_types[0].shape == in_types[1].shape
- Actual: (8, 64, 52, 52) != (8, 64, 1, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement