Skip to content

fsns_demo reshape error #108

@fredO13

Description

@fredO13

I have an error at line 156 of fsns.py when running fsns_demo.py with an image from SVHN test dataset.
images = F.reshape(images, (batch_size, num_channels, height, 4, -1))
batch_size = 1
num_channels = 3
height = 48
width = 182

the error is raised in chainer.function.reshape() :

Invalid operation is performed in: Reshape (Forward)

Expect: prod(x.shape) % known_size(=576) == 0
Actual: 288 != 0

command line is
python ./chainer/fsns_demo.py --gpu -1 ./downloads/model/ model_35000.npz ./downloads/svhn/test/2.png ./datasets/svhn/svhn_char_map.json

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions