Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sizes do not match- error training with my own images #87

Open
elleobrien opened this issue May 9, 2018 · 0 comments
Open

Sizes do not match- error training with my own images #87

elleobrien opened this issue May 9, 2018 · 0 comments

Comments

@elleobrien
Copy link

When I attempted to train the network with a folder full of my own images using the following code,

$ DATA_ROOT=myimages dataset=folder th main.lua

I get the following error:

$main.lua:182: bad argument #1 to 'copy' (sizes do not match at /tmp/luarocks_cutorch-scm-1-6006/cutorch/lib/THC/generic/THCTensorCopy.c:48)
stack traceback:
        [C]: in function 'copy'
        main.lua:182: in function 'opfunc'
        /home/eobrien/torch/install/share/lua/5.1/optim/adam.lua:37: in function 'adam'
        main.lua:236: in main chunk
        [C]: in function 'dofile'
        ...rien/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
        [C]: at 0x00405d50

Is this due to inconsistencies in the image sizes in my dataset? Or something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant