fast-neural-style-tensorflow
fast-neural-style-tensorflow copied to clipboard
自己训练的模型因为cpu速度慢中断了 生产如下的训练过程中写入的文件不能用吗?eval的时候会报错
fast-style-model.ckpt-600.data-00000-of-00001 fast-style-model.ckpt-600.index fast-style-model.ckpt-600.meta
D:\CommonCode\fast-neural-style-tensorflow>python eval.py --model_file michelangelo.ckpt --image_file img/test.jpg E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodes E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTree E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"') for unknown op: ScatterAddNdim E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') for unknown op: TopNRemove E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"') for unknown op: TreePredictions E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots INFO:tensorflow:Image size: 712x474 W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\util\tensor_slice_reader.cc:95] Could not open D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? W c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:993] Data loss: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? Traceback (most recent call last): File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1022, in _do_call return fn(*args) File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1004, in _run_fn status, run_metadata) File "C:\Program Files\Anaconda3\lib\contextlib.py", line 66, in exit next(self.gen) File "C:\Program Files\Anaconda3\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status pywrap_tensorflow.TF_GetCode(status)) tensorflow.python.framework.errors_impl.DataLossError: Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? [[Node: save/RestoreV2_13 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2_13/tensor_names, save/RestoreV2_13/shape_and_slices)]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "eval.py", line 62, in
Caused by op 'save/RestoreV2_13', defined at:
File "eval.py", line 62, in
DataLossError (see above for traceback): Unable to open table file D:\CommonCode\fast-neural-style-tensorflow\michelangelo.ckpt: Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator? [[Node: save/RestoreV2_13 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2_13/tensor_names, save/RestoreV2_13/shape_and_slices)]]
D:\CommonCode\fast-neural-style-tensorflow>
自己忙活了好久原来可以直接传入fast-style-model.ckpt-600 作为模型
@625673575 你是用的作者的源代码训练的吗?你的tensorflow的版本是?
@chuxuezhi01 我用的1.0版本 自己改了源码升级的
@625673575 你能将你改后的源码分享一下吗?我一直改一直报错,希望得到你的帮助。
@chuxuezhi01 作者已经改了代码 主要就是替换几个过时的函数