yuanyuanli85 / CaffeModelCompression

Tool to compress trained caffe weights
106 stars 52 forks source link

illegal instruction (core dump) #8

Open WangLei-UESTC opened 7 years ago

WangLei-UESTC commented 7 years ago

Thank you for your code! when I run the code ,i got an error: illegal instruction (core dump) I0405 19:50:28.866523 7248 upgrade_proto.cpp:61] Successfully upgraded file specified using deprecated V1LayerParameter I0405 19:50:28.964052 7248 net.cpp:744] Ignoring source layer loss compressing layer conv1 test1 here test2 here test3 here illegal instruction (core dump). i set flags(test* here) to check , codebook = np.empty((2**nbit),dtype=np.float32) print "test3 here"

t_start = time.time()

    wqtz.compress_layer_weights(newlabel, codebook, weights_vec, vec_length, nbit)
    #t_stop = time.time()
    #kmeans_time = kmeans_time + t_stop - t_start
    print "test4"   

it seems that error comes from compress_layer_weights(). how can I solve it.

yuanx520 commented 7 years ago

Try to remove the '-mavx2' option in build.sh file then rebuild it. That works for me.

Hugo1994 commented 6 years ago

Thank you for your code! when I run the code ,i got an error: illegal instruction (core dump) I0405 19:50:28.866523 7248 upgrade_proto.cpp:61] Successfully upgraded file specified using deprecated V1LayerParameter I0405 19:50:28.964052 7248 net.cpp:744] Ignoring source layer loss compressing layer conv1 test1 here test2 here test3 here illegal instruction (core dump). i set flags(test* here) to check , codebook = np.empty((2**nbit),dtype=np.float32) print "test3 here"

t_start = time.time()

wqtz.compress_layer_weights(newlabel, codebook, weights_vec, vec_length, nbit)

t_stop = time.time()

kmeans_time = kmeans_time + t_stop - t_start

print "test4" it seems that error comes from compress_layer_weights(). how can I solve it.

hello,i encounter a similar problem. there is no problem when i run "./build.sh", but when i run "caffemodel_compress.py", The problem is illegal instruction (core dump). Have you ever solved it? 2018-11-03 14-24-37