jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.7k forks source link

THCudaCheck FAIL line=66 error=63 #411

Open iamyoukou opened 7 years ago

iamyoukou commented 7 years ago

When I run th neural_style.lua -style_image examples/inputs/starry_night.jpg -content_image examples/inputs/brad_pitt.jpg I got

Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel
conv1_1: 64 3 3 3
conv1_2: 64 64 3 3
conv2_1: 128 64 3 3
conv2_2: 128 128 3 3
conv3_1: 256 128 3 3
conv3_2: 256 256 3 3
conv3_3: 256 256 3 3
conv3_4: 256 256 3 3
conv4_1: 512 256 3 3
conv4_2: 512 512 3 3
conv4_3: 512 512 3 3
conv4_4: 512 512 3 3
conv5_1: 512 512 3 3
conv5_2: 512 512 3 3
conv5_3: 512 512 3 3
conv5_4: 512 512 3 3
fc6: 1 1 25088 4096
fc7: 1 1 4096 4096
fc8: 1 1 4096 1000
THCudaCheck FAIL file=/Users/YJ-work/torch/extra/cutorch/lib/THC/generic/THCStorage.cu line=66 error=63 : OS call failed or operation not supported on this OS
/Users/YJ-work/torch/install/bin/luajit: /Users/YJ-work/torch/install/share/lua/5.1/nn/utils.lua:11: cuda runtime error (63) : OS call failed or operation not supported on this OS at /Users/YJ-work/torch/extra/cutorch/lib/THC/generic/THCStorage.cu:66
stack traceback:
    [C]: in function 'resize'
    /Users/YJ-work/torch/install/share/lua/5.1/nn/utils.lua:11: in function 'torch_Storage_type'
    /Users/YJ-work/torch/install/share/lua/5.1/nn/utils.lua:57: in function 'recursiveType'
    /Users/YJ-work/torch/install/share/lua/5.1/nn/Module.lua:160: in function 'type'
    /Users/YJ-work/torch/install/share/lua/5.1/nn/utils.lua:45: in function 'recursiveType'
    /Users/YJ-work/torch/install/share/lua/5.1/nn/utils.lua:41: in function 'recursiveType'
    /Users/YJ-work/torch/install/share/lua/5.1/nn/Module.lua:160: in function 'type'
    neural_style.lua:57: in function 'main'
    neural_style.lua:601: in main chunk
    [C]: in function 'dofile'
    ...work/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
    [C]: at 0x0101abe1b0

Need your help, guys!

torchdevelopment commented 7 years ago

I am getting exactly the same error as iamyoukou, anyone have any suggestions?

vkbs commented 7 years ago

What version of cuda are you guys using?

iamyoukou commented 7 years ago

@vkbs I was using CUDA 8.0