cnn_captcha icon indicating copy to clipboard operation
cnn_captcha copied to clipboard

在训练模型的过程中,还没有训练进程就死掉,跟cpu 有官吗?

Open Python-time opened this issue 4 years ago • 2 comments

-->图片尺寸: 75 X 270 -->验证码长度: 4 -->验证码共26类 ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] -->使用测试集为 sample/train/ -->使验证集为 sample/test/

Start model test input batch images shape: (100, 20250) input batch labels shape: (100, 104) input x: Tensor("Reshape:0", shape=(?, 75, 270, 1), dtype=float32) WARNING:tensorflow:From /root/.virtualenvs/cnn_img/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py:198: retry (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version. Instructions for updating: Use the retry module or similar alternatives. convolution 3: (?, 10, 34, 128) input batch predict shape: (?, 104) End model test Tensor("cost/Mean:0", shape=(), dtype=float32) 2020-01-29 13:07:59.851474: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA Killed (cnn_img) [

Python-time avatar Jan 29 '20 05:01 Python-time

请问解决了吗?

reporter-law avatar Sep 15 '20 12:09 reporter-law

怀疑是内存问题,我尝试加大SWAP空间,同时把batch size改小后 可以正常运行

ditanexp avatar Aug 18 '21 23:08 ditanexp