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

Fine-tuning : Check failed: crop_size == data_mean_.height() #6064

Closed
cicido opened this issue Nov 21, 2017 · 1 comment
Closed

Fine-tuning : Check failed: crop_size == data_mean_.height() #6064

cicido opened this issue Nov 21, 2017 · 1 comment

Comments

@cicido
Copy link

cicido commented Nov 21, 2017

Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help.
Do not post such requests to Issues. Doing so interferes with the development of Caffe.

Please read the guidelines for contributing before submitting this issue.

Issue summary

where I run examples/02-fine-tuning.ipyb, there are erreos as follows:

F1121 15:29:51.496075 21338 data_transformer.cpp:258] Check failed: crop_size == data_mean_.height() (227 vs. 256)
*** Check failure stack trace: ***
Aborted (core dumped)
I find in the function:
def style_net(train=True, learn_all=False, subset=None):
if subset is None:
subset = 'train' if train else 'test'
source = caffe_root + 'data/flickr_style/%s.txt' % subset
transform_param = dict(mirror=train, crop_size=227,
mean_file=caffe_root + 'data/ilsvrc12/imagenet_mean.binaryproto')
style_data, style_label = L.ImageData(
transform_param=transform_param, source=source,
batch_size=50, new_height=256, new_width=256, ntop=2)
return caffenet(data=style_data, label=style_label, train=train,
num_classes=NUM_STYLE_LABELS,
classifier_name='fc8_flickr',
learn_all=learn_all)

Your system configuration

Operating system: CentOS 7
Compiler: g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
CUDA version (if applicable): 8.0
CUDNN version (if applicable):6.0
BLAS: open
Python or MATLAB version (for pycaffe and matcaffe respectively):
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:09:58)

@cicido
Copy link
Author

cicido commented Nov 23, 2017

already solved.
just comment the mean-file
#4113

@cicido cicido closed this as completed Nov 23, 2017
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