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

Unable to train from scratch #9

Open
kiminannu opened this issue Sep 6, 2017 · 2 comments
Open

Unable to train from scratch #9

kiminannu opened this issue Sep 6, 2017 · 2 comments

Comments

@kiminannu
Copy link

kiminannu commented Sep 6, 2017

Hi,

Firstly, I want to congratulate you for this brilliant piece of work. I have tried your autocolorize and it works great ! Many thanks for making it publicly available.

I am trying to work on NIR images. Idea is to convert this single channel image to a color image. Since the nature of image is different from a normal grayscale image, I have to train the system from scratch / fine-tune your model. I followed your simple training instructions and I guess I am successful in copying the required files and setting up the training environment. I have setup the training without 'extended data layer'.

My input is LMDB (converted .jpg files to LMDB using create_imagenet.sh) and it contains 3 channel 640x480. When I run the training in CPU-only mode, I get the following error:

I0905 16:48:48.431213 14444 net.cpp:434] sr_x_minus_one <- sr_minus_one
I0905 16:48:48.431243 14444 net.cpp:408] sr_x_minus_one -> sr_x_minus_one
F0905 16:48:48.431275 14444 eltwise_layer.cpp:34] Check failed: bottom[i]->shape() == bottom[0]->shape()

I apologize if this is a trivial issue. I am not much experienced in CAFFE, thus, I request you to kindly help me to figure out the possible issue and get the training running.

Thank you in advance,
Kimi

@kiminannu
Copy link
Author

Can anyone please help me to solve the above issue?

@alwyz
Copy link

alwyz commented Sep 20, 2018

I am also having the same problem. Did you ever get it sorted? Can anyone help? I've tried everything - resizing images to every possible combination of 1/3 size and every other trick/tip ive read online. I'm convinced this script is broken, but hopefully the author can chime in and give some clarity as to whats going on.

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

2 participants