Closed NodYoung closed 7 years ago
因为在导出的模型中包含了图像预处理和大小调整的部分
通过这个模型又生成了一个 pb,但是怎么运用这个模型,能给一个案例吗 刚买了你的书,求指导
书中第五章第四节有介绍如何保存和加载模型
Traceback (most recent call last):
File "D:\Anaconda\An\envs\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
TypeError: get_test_bottlenecks() missing 5 required positional arguments: 'sess', 'image_lists', 'n_classes', 'jpeg_data_tensor', and 'bottleneck_tensor'
-------------------- >> begin captured logging << --------------------
tensorflow: Level 1: Registering FakeQuantWithMinMaxArgs (<function _FakeQuantWithMinMaxArgsGradient at 0x0000000005C221E0>) in gradient.
tensorflow: Level 1: Registering FakeQuantWithMinMaxVars (<function _FakeQuantWithMinMaxVarsGradient at 0x0000000005DB0400>) in gradient.
tensorflow: Level 1: Registering FakeQuantWithMinMaxVarsPerChannel (<function _FakeQuantWithMinMaxVarsPerChannelGradient at 0x0000000005DB0378>) in gradient.
tensorflow: Level 1: Registering MatMul,flops (<function _calc_mat_mul_flops at 0x00000000060ED158>) in statistical functions.
tensorflow: Level 1: Registering cond_context ((<class 'tensorflow.core.protobuf.control_flow_pb2.CondContextDef'>, <function CondContext.to_proto at 0x000000000618DB70>, <function CondContext.from_proto at 0x000000000618DBF8>)) in proto functions.
tensorflow: Level 1: Registering while_context ((<class 'tensorflow.core.protobuf.control_flow_pb2.WhileContextDef'>, <function WhileContext.to_proto at 0x000000000618F8C8>, <function WhileContext.from_proto at 0x000000000618F950>)) in proto functions.
tensorflow: Level 1: Registering ReadVariableOp (<function _ReadGrad at 0x00000000061BA158>) in gradient.
tensorflow: Level 1: Registering ResourceGather (<function _GatherGrad at 0x00000000061DF730>) in gradient.
tensorflow: Level 1: Registering variables ((<class 'tensorflow.core.framework.variable_pb2.VariableDef'>, <function _to_proto_fn at 0x00000000061DF7B8>, <function _from_proto_fn at 0x00000000061DF840>)) in proto functions.
tensorflow: Level 1: Registering trainable_variables ((<class 'tensorflow.core.framework.variable_pb2.VariableDef'>, <function _to_proto_fn at 0x00000000061DF7B8>, <function _from_proto_fn at 0x00000000061DF840>)) in proto functions.
tensorflow: Level 1: Registering moving_average_variables ((<class 'tensorflow.core.framework.variable_pb2.VariableDef'>, <function _to_proto_fn at 0x00000000061DF7B8>, <function _from_proto_fn at 0x00000000061DF840>)) in proto functions.
tensorflow: Level 1: Registering RandomStandardNormal (None) in gradient.
tensorflow: Level 1: Registering ParameterizedTruncatedNormal (None) in gradient.
tensorflow: Level 1: Registering TruncatedNormal (None) in gradient.
tensorflow: Level 1: Registering RandomUniform (None) in gradient.
tensorflow: Level 1: Registering Multinomial (None) in gradient.
tensorflow: Level 1: Registering RandomGamma (None) in gradient.
tensorflow: Level 1: Registering Pack (<function _PackGrad at 0x00000000062BF378>) in gradient.
tensorflow: Level 1: Registering Unpack (<function _UnpackGrad at 0x00000000062F3158>) in gradient.
tensorflow: Level 1: Registering Concat (<function _ConcatGrad at 0x00000000062F31E0>) in gradient.
tensorflow: Level 1: Registering ConcatV2 (<function _ConcatGradV2 at 0x00000000062F3378>) in gradient.
tensorflow: Level 1: Registering ConcatOffset (None) in gradient.
tensorflow: Level 1: Registering Slice (<function _SliceGrad at 0x00000000062F3488>) in gradient.
tensorflow: Level 1: Registering StridedSlice (<function _StridedSliceGrad at 0x00000000062F32F0>) in gradient.
tensorflow: Level 1: Registering StridedSliceGrad (<function _StridedSliceGradGrad at 0x00000000062F3400>) in gradient.
tensorflow: Level 1: Registering Split (<function _SplitGrad at 0x00000000062F3510>) in gradient.
tensorflow: Level 1: Registering SplitV (<function _SplitVGrad at 0x00000000062F3598>) in gradient.
tensorflow: Level 1: Registering Const (None) in gradient.
tensorflow: Level 1: Registering Diag (<function _DiagGrad at 0x00000000062F36A8>) in gradient.
tensorflow: Level 1: Registering DiagPart (<function _DiagPartGrad at 0x00000000062F3620>) in gradient.
tensorflow: Level 1: Registering MatrixDiag (<function _MatrixDiagGrad at 0x00000000062F3840>) in gradient.
tensorflow: Level 1: Registering MatrixDiagPart (<function _MatrixDiagPartGrad at 0x00000000062F3730>) in gradient.
tensorflow: Level 1: Registering MatrixSetDiag (<function _MatrixSetDiagGrad at 0x00000000062F37B8>) in gradient.
tensorflow: Level 1: Registering MatrixBandPart (<function _MatrixBandPartGrad at 0x00000000062F38C8>) in gradient.
tensorflow: Level 1: Registering EditDistance (None) in gradient.
tensorflow: Level 1: Registering Fill (<function _FillGrad at 0x00000000062F3950>) in gradient.
tensorflow: Level 1: Registering ZerosLike (None) in gradient.
tensorflow: Level 1: Registering OnesLike (None) in gradient.
tensorflow: Level 1: Registering PreventGradient (<function _PreventGradientGrad at 0x00000000062F39D8>) in gradient.
tensorflow: Level 1: Registering Gather (<function _GatherGrad at 0x00000000062F3A60>) in gradient.
tensorflow: Level 1: Registering GatherNd (<function _GatherNdGrad at 0x00000000062F3B70>) in gradient.
tensorflow: Level 1: Registering CheckNumerics (<function _CheckNumericsGrad at 0x00000000062F3C80>) in gradient.
tensorflow: Level 1: Registering Identity (<function _IdGrad at 0x00000000062F3AE8>) in gradient.
tensorflow: Level 1: Registering PlaceholderWithDefault (<function _IdGrad at 0x00000000062F3AE8>) in gradient.
tensorflow: Level 1: Registering RefIdentity (<function _RefIdGrad at 0x00000000062F3BF8>) in gradient.
tensorflow: Level 1: Registering StopGradient (None) in gradient.
tensorflow: Level 1: Registering Reshape (<function _ReshapeGrad at 0x00000000062F3E18>) in gradient.
tensorflow: Level 1: Registering InvertPermutation (None) in gradient.
tensorflow: Level 1: Registering ExpandDims (<function _ExpandDimsGrad at 0x00000000062F3D08>) in gradient.
tensorflow: Level 1: Registering Squeeze (<function _SqueezeGrad at 0x00000000062F3D90>) in gradient.
tensorflow: Level 1: Registering Transpose (<function _TransposeGrad at 0x00000000062F3F28>) in gradient.
tensorflow: Level 1: Registering Shape (None) in gradient.
tensorflow: Level 1: Registering ShapeN (None) in gradient.
tensorflow: Level 1: Registering Rank (None) in gradient.
tensorflow: Level 1: Registering Size (None) in gradient.
tensorflow: Level 1: Registering Tile (<function _TileGrad at 0x00000000062FB048>) in gradient.
tensorflow: Level 1: Registering BroadcastGradientArgs (None) in gradient.
tensorflow: Level 1: Registering Pad (<function _PadGrad at 0x00000000062FB0D0>) in gradient.
tensorflow: Level 1: Registering ReverseSequence (<function _ReverseSequenceGrad at 0x00000000062FB158>) in gradient.
tensorflow: Level 1: Registering Reverse (<function _ReverseGrad at 0x00000000062FB1E0>) in gradient.
tensorflow: Level 1: Registering ReverseV2 (<function _ReverseV2Grad at 0x00000000062FB378>) in gradient.
tensorflow: Level 1: Registering SpaceToBatch (<function _SpaceToBatchGrad at 0x00000000062FB268>) in gradient.
tensorflow: Level 1: Registering SpaceToBatchND (<function _SpaceToBatchNDGrad at 0x00000000062FB2F0>) in gradient.
tensorflow: Level 1: Registering BatchToSpace (<function _BatchToSpaceGrad at 0x00000000062FB400>) in gradient.
tensorflow: Level 1: Registering BatchToSpaceND (<function _BatchToSpaceNDGrad at 0x00000000062FB488>) in gradient.
tensorflow: Level 1: Registering SpaceToDepth (<function _SpaceToDepthGrad at 0x00000000062FB510>) in gradient.
tensorflow: Level 1: Registering DepthToSpace (<function _DepthToSpaceGrad at 0x00000000062FB598>) in gradient.
tensorflow: Level 1: Registering OneHot (None) in gradient.
tensorflow: Level 1: Registering MirrorPad (<function _MirrorPadGrad at 0x00000000062FB620>) in gradient.
tensorflow: Level 1: Registering MirrorPadGrad (<function _MirrorPadGradGrad at 0x00000000062FB6A8>) in gradient.
tensorflow: Level 1: Registering QuantizeAndDequantize (<function _QuantizeAndDequantizeGrad at 0x00000000062FB730>) in gradient.
tensorflow: Level 1: Registering QuantizeAndDequantizeV2 (<function _QuantizeAndDequantizeV2Grad at 0x00000000062FB7B8>) in gradient.
tensorflow: Level 1: Registering ExtractImagePatches (<function _ExtractImagePatchesGrad at 0x00000000062FB840>) in gradient.
tensorflow: Level 1: Registering ScatterNd (<function _ScatterNdGrad at 0x00000000062FB8C8>) in gradient.
tensorflow: Level 1: Registering DynamicPartition (<function _DynamicPartitionGrads at 0x00000000062FB9D8>) in gradient.
tensorflow: Level 1: Registering DynamicStitch (<function _DynamicStitchGrads at 0x000000000631B048>) in gradient.
tensorflow: Level 1: Registering Queue (None) in gradient.
tensorflow: Level 1: Registering QueueEnqueue (None) in gradient.
tensorflow: Level 1: Registering QueueEnqueueMany (None) in gradient.
tensorflow: Level 1: Registering QueueDequeue (None) in gradient.
tensorflow: Level 1: Registering QueueDequeueMany (None) in gradient.
tensorflow: Level 1: Registering QueueDequeueUpTo (None) in gradient.
tensorflow: Level 1: Registering QueueClose (None) in gradient.
tensorflow: Level 1: Registering QueueSize (None) in gradient.
tensorflow: Level 1: Registering Stack (None) in gradient.
tensorflow: Level 1: Registering StackPush (None) in gradient.
tensorflow: Level 1: Registering StackPop (None) in gradient.
tensorflow: Level 1: Registering StackClose (None) in gradient.
tensorflow: Level 1: Registering GetSessionHandle (None) in gradient.
tensorflow: Level 1: Registering GetSessionHandleV2 (None) in gradient.
tensorflow: Level 1: Registering GetSessionTensor (None) in gradient.
tensorflow: Level 1: Registering DeleteSessionTensor (None) in gradient.
tensorflow: Level 1: Registering Sum (<function _SumGrad at 0x000000000631B510>) in gradient.
tensorflow: Level 1: Registering Max (<function _MaxGrad at 0x000000000631BA60>) in gradient.
tensorflow: Level 1: Registering Min (<function _MinGrad at 0x000000000631BAE8>) in gradient.
tensorflow: Level 1: Registering Mean (<function _MeanGrad at 0x000000000631BB70>) in gradient.
tensorflow: Level 1: Registering Prod (<function _ProdGrad at 0x000000000631BBF8>) in gradient.
tensorflow: Level 1: Registering SegmentSum (<function _SegmentSumGrad at 0x000000000631BC80>) in gradient.
tensorflow: Level 1: Registering SegmentMean (<function _SegmentMeanGrad at 0x000000000631BD08>) in gradient.
tensorflow: Level 1: Registering SparseSegmentSum (<function _SparseSegmentSumGrad at 0x000000000631BD90>) in gradient.
tensorflow: Level 1: Registering SparseSegmentMean (<function _SparseSegmentMeanGrad at 0x000000000631BE18>) in gradient.
tensorflow: Level 1: Registering SparseSegmentSqrtN (<function _SparseSegmentSqrtNGrad at 0x000000000631BEA0>) in gradient.
tensorflow: Level 1: Registering SegmentMin (<function _SegmentMinGrad at 0x0000000006340048>) in gradient.
tensorflow: Level 1: Registering SegmentMax (<function _SegmentMaxGrad at 0x00000000063400D0>) in gradient.
tensorflow: Level 1: Registering UnsortedSegmentSum (<function _UnsortedSegmentSumGrad at 0x0000000006340158>) in gradient.
tensorflow: Level 1: Registering UnsortedSegmentMax (<function _UnsortedSegmentMaxGrad at 0x00000000063401E0>) in gradient.
tensorflow: Level 1: Registering Abs (<function _AbsGrad at 0x0000000006340268>) in gradient.
tensorflow: Level 1: Registering Neg (<function _NegGrad at 0x00000000063402F0>) in gradient.
tensorflow: Level 1: Registering Inv (<function _InvGrad at 0x0000000006340378>) in gradient.
tensorflow: Level 1: Registering Reciprocal (<function _ReciprocalGrad at 0x0000000006340400>) in gradient.
tensorflow: Level 1: Registering InvGrad (<function _InvGradGrad at 0x0000000006340488>) in gradient.
tensorflow: Level 1: Registering ReciprocalGrad (<function _ReciprocalGradGrad at 0x0000000006340620>) in gradient.
tensorflow: Level 1: Registering Square (<function _SquareGrad at 0x0000000006340510>) in gradient.
tensorflow: Level 1: Registering Sqrt (<function _SqrtGrad at 0x00000000063406A8>) in gradient.
tensorflow: Level 1: Registering SqrtGrad (<function _SqrtGradGrad at 0x0000000006340598>) in gradient.
tensorflow: Level 1: Registering Rsqrt (<function _RsqrtGrad at 0x0000000006340840>) in gradient.
tensorflow: Level 1: Registering RsqrtGrad (<function _RsqrtGradGrad at 0x0000000006340730>) in gradient.
tensorflow: Level 1: Registering Exp (<function _ExpGrad at 0x00000000063407B8>) in gradient.
tensorflow: Level 1: Registering Expm1 (<function _Expm1Grad at 0x00000000063408C8>) in gradient.
tensorflow: Level 1: Registering Log (<function _LogGrad at 0x0000000006340950>) in gradient.
tensorflow: Level 1: Registering Log1p (<function _Log1pGrad at 0x00000000063409D8>) in gradient.
tensorflow: Level 1: Registering Tanh (<function _TanhGrad at 0x0000000006340A60>) in gradient.
tensorflow: Level 1: Registering TanhGrad (<function _TanhGradGrad at 0x0000000006340AE8>) in gradient.
tensorflow: Level 1: Registering Erf (<function _ErfGrad at 0x0000000006340C80>) in gradient.
tensorflow: Level 1: Registering Erfc (<function _ErfcGrad at 0x0000000006340B70>) in gradient.
tensorflow: Level 1: Registering Lgamma (<function _LgammaGrad at 0x0000000006340BF8>) in gradient.
tensorflow: Level 1: Registering Digamma (<function _DigammaGrad at 0x0000000006340D90>) in gradient.
tensorflow: Level 1: Registering Igamma (<function _IgammaGrad at 0x0000000006340EA0>) in gradient.
tensorflow: Level 1: Registering Igammac (<function _IgammacGrad at 0x0000000006340E18>) in gradient.
tensorflow: Level 1: Registering Betainc (<function _BetaincGrad at 0x0000000006340F28>) in gradient.
tensorflow: Level 1: Registering Zeta (<function _ZetaGrad at 0x0000000006340D08>) in gradient.
tensorflow: Level 1: Registering Polygamma (<function _PolygammaGrad at 0x00000000063450D0>) in gradient.
tensorflow: Level 1: Registering Sigmoid (<function _SigmoidGrad at 0x0000000006345048>) in gradient.
tensorflow: Level 1: Registering SigmoidGrad (<function _SigmoidGradGrad at 0x0000000006345268>) in gradient.
tensorflow: Level 1: Registering Sign (<function _SignGrad at 0x0000000006345158>) in gradient.
tensorflow: Level 1: Registering Sin (<function _SinGrad at 0x00000000063451E0>) in gradient.
tensorflow: Level 1: Registering Cos (<function _CosGrad at 0x00000000063452F0>) in gradient.
tensorflow: Level 1: Registering Tan (<function _TanGrad at 0x0000000006345378>) in gradient.
tensorflow: Level 1: Registering Asin (<function _AsinGrad at 0x0000000006345400>) in gradient.
tensorflow: Level 1: Registering Acos (<function _AcosGrad at 0x0000000006345488>) in gradient.
tensorflow: Level 1: Registering Atan (<function _AtanGrad at 0x0000000006345510>) in gradient.
tensorflow: Level 1: Registering Atan2 (<function _Atan2Grad at 0x0000000006345598>) in gradient.
tensorflow: Level 1: Registering AddN (<function _AddNGrad at 0x0000000006345620>) in gradient.
tensorflow: Level 1: Registering Add (<function _AddGrad at 0x00000000063456A8>) in gradient.
tensorflow: Level 1: Registering Sub (<function _SubGrad at 0x0000000006345730>) in gradient.
tensorflow: Level 1: Registering Mul (<function _MulGrad at 0x00000000063457B8>) in gradient.
tensorflow: Level 1: Registering Div (<function _DivGrad at 0x0000000006345840>) in gradient.
tensorflow: Level 1: Registering FloorDiv (<function _FloorDivGrad at 0x00000000063458C8>) in gradient.
tensorflow: Level 1: Registering TruncateDiv (<function _TruncateDivGrad at 0x0000000006345A60>) in gradient.
tensorflow: Level 1: Registering RealDiv (<function _RealDivGrad at 0x0000000006345950>) in gradient.
tensorflow: Level 1: Registering Pow (<function _PowGrad at 0x0000000006345B70>) in gradient.
tensorflow: Level 1: Registering Maximum (<function _MaximumGrad at 0x0000000006345AE8>) in gradient.
tensorflow: Level 1: Registering Minimum (<function _MinimumGrad at 0x0000000006345D08>) in gradient.
tensorflow: Level 1: Registering SquaredDifference (<function _SquaredDifferenceGrad at 0x0000000006345D90>) in gradient.
tensorflow: Level 1: Registering Less (None) in gradient.
tensorflow: Level 1: Registering LessEqual (None) in gradient.
tensorflow: Level 1: Registering Greater (None) in gradient.
tensorflow: Level 1: Registering GreaterEqual (None) in gradient.
tensorflow: Level 1: Registering Equal (None) in gradient.
tensorflow: Level 1: Registering ApproximateEqual (None) in gradient.
tensorflow: Level 1: Registering NotEqual (None) in gradient.
tensorflow: Level 1: Registering LogicalAnd (None) in gradient.
tensorflow: Level 1: Registering LogicalOr (None) in gradient.
tensorflow: Level 1: Registering LogicalNot (None) in gradient.
tensorflow: Level 1: Registering Select (<function _SelectGrad at 0x0000000006345BF8>) in gradient.
tensorflow: Level 1: Registering MatMul (<function _MatMulGrad at 0x0000000006345E18>) in gradient.
tensorflow: Level 1: Registering SparseMatMul (<function _SparseMatMulGrad at 0x0000000006345EA0>) in gradient.
tensorflow: Level 1: Registering Floor (<function _FloorGrad at 0x0000000006345C80>) in gradient.
tensorflow: Level 1: Registering Ceil (<function _CeilGrad at 0x0000000006345F28>) in gradient.
tensorflow: Level 1: Registering Round (<function _RoundGrad at 0x000000000634B048>) in gradient.
tensorflow: Level 1: Registering Rint (<function _RintGrad at 0x000000000634B0D0>) in gradient.
tensorflow: Level 1: Registering BatchMatMul (<function _BatchMatMul at 0x000000000634B158>) in gradient.
tensorflow: Level 1: Registering Range (None) in gradient.
tensorflow: Level 1: Registering LinSpace (None) in gradient.
tensorflow: Level 1: Registering Complex (<function _ComplexGrad at 0x000000000634B1E0>) in gradient.
tensorflow: Level 1: Registering Real (<function _RealGrad at 0x000000000634B378>) in gradient.
tensorflow: Level 1: Registering Imag (<function _ImagGrad at 0x000000000634B268>) in gradient.
tensorflow: Level 1: Registering Conj (<function _ConjGrad at 0x000000000634B2F0>) in gradient.
tensorflow: Level 1: Registering ComplexAbs (<function _ComplexAbsGrad at 0x000000000634B400>) in gradient.
tensorflow: Level 1: Registering Cast (<function _CastGrad at 0x000000000634B488>) in gradient.
tensorflow: Level 1: Registering Cross (<function _CrossGrad at 0x000000000634B510>) in gradient.
tensorflow: Level 1: Registering Cumsum (<function _CumsumGrad at 0x000000000634B598>) in gradient.
tensorflow: Level 1: Registering Cumprod (<function _CumprodGrad at 0x000000000634B6A8>) in gradient.
tensorflow: Level 1: Registering SparseAddGrad (None) in gradient.
tensorflow: Level 1: Registering SparseConcat (None) in gradient.
tensorflow: Level 1: Registering SparseToDense (None) in gradient.
tensorflow: Level 1: Registering SparseReorder (<function _SparseReorderGrad at 0x000000000634BE18>) in gradient.
tensorflow: Level 1: Registering SparseAdd (<function _SparseAddGrad at 0x000000000634BEA0>) in gradient.
tensorflow: Level 1: Registering SparseTensorDenseAdd (<function _SparseTensorDenseAddGrad at 0x000000000634BF28>) in gradient.
tensorflow: Level 1: Registering SparseReduceSum (<function _SparseReduceSumGrad at 0x0000000006358048>) in gradient.
tensorflow: Level 1: Registering SparseTensorDenseMatMul (<function _SparseTensorDenseMatMulGrad at 0x00000000063580D0>) in gradient.
tensorflow: Level 1: Registering SparseDenseCwiseAdd (<function _SparseDenseCwiseAddGrad at 0x0000000006358158>) in gradient.
tensorflow: Level 1: Registering SparseDenseCwiseMul (<function _SparseDenseCwiseMulGrad at 0x0000000006358268>) in gradient.
tensorflow: Level 1: Registering SparseDenseCwiseDiv (<function _SparseDenseCwiseDivGrad at 0x00000000063582F0>) in gradient.
tensorflow: Level 1: Registering SparseSoftmax (<function _SparseSoftmaxGrad at 0x0000000006358378>) in gradient.
tensorflow: Level 1: Registering SparseSparseMaximum (<function _SparseSparseMaximumGrad at 0x0000000006358400>) in gradient.
tensorflow: Level 1: Registering SparseSparseMinimum (<function _SparseSparseMinimumGrad at 0x0000000006358488>) in gradient.
tensorflow: Level 1: Registering FFT (<function _FFTGrad at 0x0000000006358AE8>) in gradient.
tensorflow: Level 1: Registering IFFT (<function _IFFTGrad at 0x0000000006362158>) in gradient.
tensorflow: Level 1: Registering FFT2D (<function _FFT2DGrad at 0x00000000063621E0>) in gradient.
tensorflow: Level 1: Registering IFFT2D (<function _IFFT2DGrad at 0x0000000006362268>) in gradient.
tensorflow: Level 1: Registering FFT3D (<function _FFT3DGrad at 0x0000000006362378>) in gradient.
tensorflow: Level 1: Registering IFFT3D (<function _IFFT3DGrad at 0x00000000063622F0>) in gradient.
tensorflow: Level 1: Registering RFFT (<function _RFFTGradHelper.
Ran 1 test in 0.030s
FAILED (errors=1)
Error
Traceback (most recent call last):
File "D:\Anaconda\An\envs\lib\unittest\case.py", line 59, in testPartExecutor
yield
File "D:\Anaconda\An\envs\lib\unittest\case.py", line 601, in run
testMethod()
File "D:\Anaconda\An\envs\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
Exception: get_test_bottlenecks() missing 5 required positional arguments: 'sess', 'image_lists', 'n_classes', 'jpeg_data_tensor', and 'bottleneck_tensor'
-------------------- >> begin captured logging << --------------------
tensorflow: Level 1: Registering FakeQuantWithMinMaxArgs (<function _FakeQuantWithMinMaxArgsGradient at 0x0000000005C221E0>) in gradient.
tensorflow: Level 1: Registering FakeQuantWithMinMaxVars (<function _FakeQuantWithMinMaxVarsGradient at 0x0000000005DB0400>) in gradient.
tensorflow: Level 1: Registering FakeQuantWithMinMaxVarsPerChannel (<function _FakeQuantWithMinMaxVarsPerChannelGradient at 0x0000000005DB0378>) in gradient.
tensorflow: Level 1: Registering MatMul,flops (<function _calc_mat_mul_flops at 0x00000000060ED158>) in statistical functions.
tensorflow: Level 1: Registering cond_context ((<class 'tensorflow.core.protobuf.control_flow_pb2.CondContextDef'>, <function CondContext.to_proto at 0x000000000618DB70>, <function CondContext.from_proto at 0x000000000618DBF8>)) in proto functions.
tensorflow: Level 1: Registering while_context ((<class 'tensorflow.core.protobuf.control_flow_pb2.WhileContextDef'>, <function WhileContext.to_proto at 0x000000000618F8C8>, <function WhileContext.from_proto at 0x000000000618F950>)) in proto functions.
tensorflow: Level 1: Registering ReadVariableOp (<function _ReadGrad at 0x00000000061BA158>) in gradient.
tensorflow: Level 1: Registering ResourceGather (<function _GatherGrad at 0x00000000061DF730>) in gradient.
tensorflow: Level 1: Registering variables ((<class 'tensorflow.core.framework.variable_pb2.VariableDef'>, <function _to_proto_fn at 0x00000000061DF7B8>, <function _from_proto_fn at 0x00000000061DF840>)) in proto functions.
tensorflow: Level 1: Registering trainable_variables ((<class 'tensorflow.core.framework.variable_pb2.VariableDef'>, <function _to_proto_fn at 0x00000000061DF7B8>, <function _from_proto_fn at 0x00000000061DF840>)) in proto functions.
tensorflow: Level 1: Registering moving_average_variables ((<class 'tensorflow.core.framework.variable_pb2.VariableDef'>, <function _to_proto_fn at 0x00000000061DF7B8>, <function _from_proto_fn at 0x00000000061DF840>)) in proto functions.
tensorflow: Level 1: Registering RandomStandardNormal (None) in gradient.
tensorflow: Level 1: Registering ParameterizedTruncatedNormal (None) in gradient.
tensorflow: Level 1: Registering TruncatedNormal (None) in gradient.
tensorflow: Level 1: Registering RandomUniform (None) in gradient.
tensorflow: Level 1: Registering Multinomial (None) in gradient.
tensorflow: Level 1: Registering RandomGamma (None) in gradient.
tensorflow: Level 1: Registering Pack (<function _PackGrad at 0x00000000062BF378>) in gradient.
tensorflow: Level 1: Registering Unpack (<function _UnpackGrad at 0x00000000062F3158>) in gradient.
tensorflow: Level 1: Registering Concat (<function _ConcatGrad at 0x00000000062F31E0>) in gradient.
tensorflow: Level 1: Registering ConcatV2 (<function _ConcatGradV2 at 0x00000000062F3378>) in gradient.
tensorflow: Level 1: Registering ConcatOffset (None) in gradient.
tensorflow: Level 1: Registering Slice (<function _SliceGrad at 0x00000000062F3488>) in gradient.
tensorflow: Level 1: Registering StridedSlice (<function _StridedSliceGrad at 0x00000000062F32F0>) in gradient.
tensorflow: Level 1: Registering StridedSliceGrad (<function _StridedSliceGradGrad at 0x00000000062F3400>) in gradient.
tensorflow: Level 1: Registering Split (<function _SplitGrad at 0x00000000062F3510>) in gradient.
tensorflow: Level 1: Registering SplitV (<function _SplitVGrad at 0x00000000062F3598>) in gradient.
tensorflow: Level 1: Registering Const (None) in gradient.
tensorflow: Level 1: Registering Diag (<function _DiagGrad at 0x00000000062F36A8>) in gradient.
tensorflow: Level 1: Registering DiagPart (<function _DiagPartGrad at 0x00000000062F3620>) in gradient.
tensorflow: Level 1: Registering MatrixDiag (<function _MatrixDiagGrad at 0x00000000062F3840>) in gradient.
tensorflow: Level 1: Registering MatrixDiagPart (<function _MatrixDiagPartGrad at 0x00000000062F3730>) in gradient.
tensorflow: Level 1: Registering MatrixSetDiag (<function _MatrixSetDiagGrad at 0x00000000062F37B8>) in gradient.
tensorflow: Level 1: Registering MatrixBandPart (<function _MatrixBandPartGrad at 0x00000000062F38C8>) in gradient.
tensorflow: Level 1: Registering EditDistance (None) in gradient.
tensorflow: Level 1: Registering Fill (<function _FillGrad at 0x00000000062F3950>) in gradient.
tensorflow: Level 1: Registering ZerosLike (None) in gradient.
tensorflow: Level 1: Registering OnesLike (None) in gradient.
tensorflow: Level 1: Registering PreventGradient (<function _PreventGradientGrad at 0x00000000062F39D8>) in gradient.
tensorflow: Level 1: Registering Gather (<function _GatherGrad at 0x00000000062F3A60>) in gradient.
tensorflow: Level 1: Registering GatherNd (<function _GatherNdGrad at 0x00000000062F3B70>) in gradient.
tensorflow: Level 1: Registering CheckNumerics (<function _CheckNumericsGrad at 0x00000000062F3C80>) in gradient.
tensorflow: Level 1: Registering Identity (<function _IdGrad at 0x00000000062F3AE8>) in gradient.
tensorflow: Level 1: Registering PlaceholderWithDefault (<function _IdGrad at 0x00000000062F3AE8>) in gradient.
tensorflow: Level 1: Registering RefIdentity (<function _RefIdGrad at 0x00000000062F3BF8>) in gradient.
tensorflow: Level 1: Registering StopGradient (None) in gradient.
tensorflow: Level 1: Registering Reshape (<function _ReshapeGrad at 0x00000000062F3E18>) in gradient.
tensorflow: Level 1: Registering InvertPermutation (None) in gradient.
tensorflow: Level 1: Registering ExpandDims (<function _ExpandDimsGrad at 0x00000000062F3D08>) in gradient.
tensorflow: Level 1: Registering Squeeze (<function _SqueezeGrad at 0x00000000062F3D90>) in gradient.
tensorflow: Level 1: Registering Transpose (<function _TransposeGrad at 0x00000000062F3F28>) in gradient.
tensorflow: Level 1: Registering Shape (None) in gradient.
tensorflow: Level 1: Registering ShapeN (None) in gradient.
tensorflow: Level 1: Registering Rank (None) in gradient.
tensorflow: Level 1: Registering Size (None) in gradient.
tensorflow: Level 1: Registering Tile (<function _TileGrad at 0x00000000062FB048>) in gradient.
tensorflow: Level 1: Registering BroadcastGradientArgs (None) in gradient.
tensorflow: Level 1: Registering Pad (<function _PadGrad at 0x00000000062FB0D0>) in gradient.
tensorflow: Level 1: Registering ReverseSequence (<function _ReverseSequenceGrad at 0x00000000062FB158>) in gradient.
tensorflow: Level 1: Registering Reverse (<function _ReverseGrad at 0x00000000062FB1E0>) in gradient.
tensorflow: Level 1: Registering ReverseV2 (<function _ReverseV2Grad at 0x00000000062FB378>) in gradient.
tensorflow: Level 1: Registering SpaceToBatch (<function _SpaceToBatchGrad at 0x00000000062FB268>) in gradient.
tensorflow: Level 1: Registering SpaceToBatchND (<function _SpaceToBatchNDGrad at 0x00000000062FB2F0>) in gradient.
tensorflow: Level 1: Registering BatchToSpace (<function _BatchToSpaceGrad at 0x00000000062FB400>) in gradient.
tensorflow: Level 1: Registering BatchToSpaceND (<function _BatchToSpaceNDGrad at 0x00000000062FB488>) in gradient.
tensorflow: Level 1: Registering SpaceToDepth (<function _SpaceToDepthGrad at 0x00000000062FB510>) in gradient.
tensorflow: Level 1: Registering DepthToSpace (<function _DepthToSpaceGrad at 0x00000000062FB598>) in gradient.
tensorflow: Level 1: Registering OneHot (None) in gradient.
tensorflow: Level 1: Registering MirrorPad (<function _MirrorPadGrad at 0x00000000062FB620>) in gradient.
tensorflow: Level 1: Registering MirrorPadGrad (<function _MirrorPadGradGrad at 0x00000000062FB6A8>) in gradient.
tensorflow: Level 1: Registering QuantizeAndDequantize (<function _QuantizeAndDequantizeGrad at 0x00000000062FB730>) in gradient.
tensorflow: Level 1: Registering QuantizeAndDequantizeV2 (<function _QuantizeAndDequantizeV2Grad at 0x00000000062FB7B8>) in gradient.
tensorflow: Level 1: Registering ExtractImagePatches (<function _ExtractImagePatchesGrad at 0x00000000062FB840>) in gradient.
tensorflow: Level 1: Registering ScatterNd (<function _ScatterNdGrad at 0x00000000062FB8C8>) in gradient.
tensorflow: Level 1: Registering DynamicPartition (<function _DynamicPartitionGrads at 0x00000000062FB9D8>) in gradient.
tensorflow: Level 1: Registering DynamicStitch (<function _DynamicStitchGrads at 0x000000000631B048>) in gradient.
tensorflow: Level 1: Registering Queue (None) in gradient.
tensorflow: Level 1: Registering QueueEnqueue (None) in gradient.
tensorflow: Level 1: Registering QueueEnqueueMany (None) in gradient.
tensorflow: Level 1: Registering QueueDequeue (None) in gradient.
tensorflow: Level 1: Registering QueueDequeueMany (None) in gradient.
tensorflow: Level 1: Registering QueueDequeueUpTo (None) in gradient.
tensorflow: Level 1: Registering QueueClose (None) in gradient.
tensorflow: Level 1: Registering QueueSize (None) in gradient.
tensorflow: Level 1: Registering Stack (None) in gradient.
tensorflow: Level 1: Registering StackPush (None) in gradient.
tensorflow: Level 1: Registering StackPop (None) in gradient.
tensorflow: Level 1: Registering StackClose (None) in gradient.
tensorflow: Level 1: Registering GetSessionHandle (None) in gradient.
tensorflow: Level 1: Registering GetSessionHandleV2 (None) in gradient.
tensorflow: Level 1: Registering GetSessionTensor (None) in gradient.
tensorflow: Level 1: Registering DeleteSessionTensor (None) in gradient.
tensorflow: Level 1: Registering Sum (<function _SumGrad at 0x000000000631B510>) in gradient.
tensorflow: Level 1: Registering Max (<function _MaxGrad at 0x000000000631BA60>) in gradient.
tensorflow: Level 1: Registering Min (<function _MinGrad at 0x000000000631BAE8>) in gradient.
tensorflow: Level 1: Registering Mean (<function _MeanGrad at 0x000000000631BB70>) in gradient.
tensorflow: Level 1: Registering Prod (<function _ProdGrad at 0x000000000631BBF8>) in gradient.
tensorflow: Level 1: Registering SegmentSum (<function _SegmentSumGrad at 0x000000000631BC80>) in gradient.
tensorflow: Level 1: Registering SegmentMean (<function _SegmentMeanGrad at 0x000000000631BD08>) in gradient.
tensorflow: Level 1: Registering SparseSegmentSum (<function _SparseSegmentSumGrad at 0x000000000631BD90>) in gradient.
tensorflow: Level 1: Registering SparseSegmentMean (<function _SparseSegmentMeanGrad at 0x000000000631BE18>) in gradient.
tensorflow: Level 1: Registering SparseSegmentSqrtN (<function _SparseSegmentSqrtNGrad at 0x000000000631BEA0>) in gradient.
tensorflow: Level 1: Registering SegmentMin (<function _SegmentMinGrad at 0x0000000006340048>) in gradient.
tensorflow: Level 1: Registering SegmentMax (<function _SegmentMaxGrad at 0x00000000063400D0>) in gradient.
tensorflow: Level 1: Registering UnsortedSegmentSum (<function _UnsortedSegmentSumGrad at 0x0000000006340158>) in gradient.
tensorflow: Level 1: Registering UnsortedSegmentMax (<function _UnsortedSegmentMaxGrad at 0x00000000063401E0>) in gradient.
tensorflow: Level 1: Registering Abs (<function _AbsGrad at 0x0000000006340268>) in gradient.
tensorflow: Level 1: Registering Neg (<function _NegGrad at 0x00000000063402F0>) in gradient.
tensorflow: Level 1: Registering Inv (<function _InvGrad at 0x0000000006340378>) in gradient.
tensorflow: Level 1: Registering Reciprocal (<function _ReciprocalGrad at 0x0000000006340400>) in gradient.
tensorflow: Level 1: Registering InvGrad (<function _InvGradGrad at 0x0000000006340488>) in gradient.
tensorflow: Level 1: Registering ReciprocalGrad (<function _ReciprocalGradGrad at 0x0000000006340620>) in gradient.
tensorflow: Level 1: Registering Square (<function _SquareGrad at 0x0000000006340510>) in gradient.
tensorflow: Level 1: Registering Sqrt (<function _SqrtGrad at 0x00000000063406A8>) in gradient.
tensorflow: Level 1: Registering SqrtGrad (<function _SqrtGradGrad at 0x0000000006340598>) in gradient.
tensorflow: Level 1: Registering Rsqrt (<function _RsqrtGrad at 0x0000000006340840>) in gradient.
tensorflow: Level 1: Registering RsqrtGrad (<function _RsqrtGradGrad at 0x0000000006340730>) in gradient.
tensorflow: Level 1: Registering Exp (<function _ExpGrad at 0x00000000063407B8>) in gradient.
tensorflow: Level 1: Registering Expm1 (<function _Expm1Grad at 0x00000000063408C8>) in gradient.
tensorflow: Level 1: Registering Log (<function _LogGrad at 0x0000000006340950>) in gradient.
tensorflow: Level 1: Registering Log1p (<function _Log1pGrad at 0x00000000063409D8>) in gradient.
tensorflow: Level 1: Registering Tanh (<function _TanhGrad at 0x0000000006340A60>) in gradient.
tensorflow: Level 1: Registering TanhGrad (<function _TanhGradGrad at 0x0000000006340AE8>) in gradient.
tensorflow: Level 1: Registering Erf (<function _ErfGrad at 0x0000000006340C80>) in gradient.
tensorflow: Level 1: Registering Erfc (<function _ErfcGrad at 0x0000000006340B70>) in gradient.
tensorflow: Level 1: Registering Lgamma (<function _LgammaGrad at 0x0000000006340BF8>) in gradient.
tensorflow: Level 1: Registering Digamma (<function _DigammaGrad at 0x0000000006340D90>) in gradient.
tensorflow: Level 1: Registering Igamma (<function _IgammaGrad at 0x0000000006340EA0>) in gradient.
tensorflow: Level 1: Registering Igammac (<function _IgammacGrad at 0x0000000006340E18>) in gradient.
tensorflow: Level 1: Registering Betainc (<function _BetaincGrad at 0x0000000006340F28>) in gradient.
tensorflow: Level 1: Registering Zeta (<function _ZetaGrad at 0x0000000006340D08>) in gradient.
tensorflow: Level 1: Registering Polygamma (<function _PolygammaGrad at 0x00000000063450D0>) in gradient.
tensorflow: Level 1: Registering Sigmoid (<function _SigmoidGrad at 0x0000000006345048>) in gradient.
tensorflow: Level 1: Registering SigmoidGrad (<function _SigmoidGradGrad at 0x0000000006345268>) in gradient.
tensorflow: Level 1: Registering Sign (<function _SignGrad at 0x0000000006345158>) in gradient.
tensorflow: Level 1: Registering Sin (<function _SinGrad at 0x00000000063451E0>) in gradient.
tensorflow: Level 1: Registering Cos (<function _CosGrad at 0x00000000063452F0>) in gradient.
tensorflow: Level 1: Registering Tan (<function _TanGrad at 0x0000000006345378>) in gradient.
tensorflow: Level 1: Registering Asin (<function _AsinGrad at 0x0000000006345400>) in gradient.
tensorflow: Level 1: Registering Acos (<function _AcosGrad at 0x0000000006345488>) in gradient.
tensorflow: Level 1: Registering Atan (<function _AtanGrad at 0x0000000006345510>) in gradient.
tensorflow: Level 1: Registering Atan2 (<function _Atan2Grad at 0x0000000006345598>) in gradient.
tensorflow: Level 1: Registering AddN (<function _AddNGrad at 0x0000000006345620>) in gradient.
tensorflow: Level 1: Registering Add (<function _AddGrad at 0x00000000063456A8>) in gradient.
tensorflow: Level 1: Registering Sub (<function _SubGrad at 0x0000000006345730>) in gradient.
tensorflow: Level 1: Registering Mul (<function _MulGrad at 0x00000000063457B8>) in gradient.
tensorflow: Level 1: Registering Div (<function _DivGrad at 0x0000000006345840>) in gradient.
tensorflow: Level 1: Registering FloorDiv (<function _FloorDivGrad at 0x00000000063458C8>) in gradient.
tensorflow: Level 1: Registering TruncateDiv (<function _TruncateDivGrad at 0x0000000006345A60>) in gradient.
tensorflow: Level 1: Registering RealDiv (<function _RealDivGrad at 0x0000000006345950>) in gradient.
tensorflow: Level 1: Registering Pow (<function _PowGrad at 0x0000000006345B70>) in gradient.
tensorflow: Level 1: Registering Maximum (<function _MaximumGrad at 0x0000000006345AE8>) in gradient.
tensorflow: Level 1: Registering Minimum (<function _MinimumGrad at 0x0000000006345D08>) in gradient.
tensorflow: Level 1: Registering SquaredDifference (<function _SquaredDifferenceGrad at 0x0000000006345D90>) in gradient.
tensorflow: Level 1: Registering Less (None) in gradient.
tensorflow: Level 1: Registering LessEqual (None) in gradient.
tensorflow: Level 1: Registering Greater (None) in gradient.
tensorflow: Level 1: Registering GreaterEqual (None) in gradient.
tensorflow: Level 1: Registering Equal (None) in gradient.
tensorflow: Level 1: Registering ApproximateEqual (None) in gradient.
tensorflow: Level 1: Registering NotEqual (None) in gradient.
tensorflow: Level 1: Registering LogicalAnd (None) in gradient.
tensorflow: Level 1: Registering LogicalOr (None) in gradient.
tensorflow: Level 1: Registering LogicalNot (None) in gradient.
tensorflow: Level 1: Registering Select (<function _SelectGrad at 0x0000000006345BF8>) in gradient.
tensorflow: Level 1: Registering MatMul (<function _MatMulGrad at 0x0000000006345E18>) in gradient.
tensorflow: Level 1: Registering SparseMatMul (<function _SparseMatMulGrad at 0x0000000006345EA0>) in gradient.
tensorflow: Level 1: Registering Floor (<function _FloorGrad at 0x0000000006345C80>) in gradient.
tensorflow: Level 1: Registering Ceil (<function _CeilGrad at 0x0000000006345F28>) in gradient.
tensorflow: Level 1: Registering Round (<function _RoundGrad at 0x000000000634B048>) in gradient.
tensorflow: Level 1: Registering Rint (<function _RintGrad at 0x000000000634B0D0>) in gradient.
tensorflow: Level 1: Registering BatchMatMul (<function _BatchMatMul at 0x000000000634B158>) in gradient.
tensorflow: Level 1: Registering Range (None) in gradient.
tensorflow: Level 1: Registering LinSpace (None) in gradient.
tensorflow: Level 1: Registering Complex (<function _ComplexGrad at 0x000000000634B1E0>) in gradient.
tensorflow: Level 1: Registering Real (<function _RealGrad at 0x000000000634B378>) in gradient.
tensorflow: Level 1: Registering Imag (<function _ImagGrad at 0x000000000634B268>) in gradient.
tensorflow: Level 1: Registering Conj (<function _ConjGrad at 0x000000000634B2F0>) in gradient.
tensorflow: Level 1: Registering ComplexAbs (<function _ComplexAbsGrad at 0x000000000634B400>) in gradient.
tensorflow: Level 1: Registering Cast (<function _CastGrad at 0x000000000634B488>) in gradient.
tensorflow: Level 1: Registering Cross (<function _CrossGrad at 0x000000000634B510>) in gradient.
tensorflow: Level 1: Registering Cumsum (<function _CumsumGrad at 0x000000000634B598>) in gradient.
tensorflow: Level 1: Registering Cumprod (<function _CumprodGrad at 0x000000000634B6A8>) in gradient.
tensorflow: Level 1: Registering SparseAddGrad (None) in gradient.
tensorflow: Level 1: Registering SparseConcat (None) in gradient.
tensorflow: Level 1: Registering SparseToDense (None) in gradient.
tensorflow: Level 1: Registering SparseReorder (<function _SparseReorderGrad at 0x000000000634BE18>) in gradient.
tensorflow: Level 1: Registering SparseAdd (<function _SparseAddGrad at 0x000000000634BEA0>) in gradient.
tensorflow: Level 1: Registering SparseTensorDenseAdd (<function _SparseTensorDenseAddGrad at 0x000000000634BF28>) in gradient.
tensorflow: Level 1: Registering SparseReduceSum (<function _SparseReduceSumGrad at 0x0000000006358048>) in gradient.
tensorflow: Level 1: Registering SparseTensorDenseMatMul (<function _SparseTensorDenseMatMulGrad at 0x00000000063580D0>) in gradient.
tensorflow: Level 1: Registering SparseDenseCwiseAdd (<function _SparseDenseCwiseAddGrad at 0x0000000006358158>) in gradient.
tensorflow: Level 1: Registering SparseDenseCwiseMul (<function _SparseDenseCwiseMulGrad at 0x0000000006358268>) in gradient.
tensorflow: Level 1: Registering SparseDenseCwiseDiv (<function _SparseDenseCwiseDivGrad at 0x00000000063582F0>) in gradient.
tensorflow: Level 1: Registering SparseSoftmax (<function _SparseSoftmaxGrad at 0x0000000006358378>) in gradient.
tensorflow: Level 1: Registering SparseSparseMaximum (<function _SparseSparseMaximumGrad at 0x0000000006358400>) in gradient.
tensorflow: Level 1: Registering SparseSparseMinimum (<function _SparseSparseMinimumGrad at 0x0000000006358488>) in gradient.
tensorflow: Level 1: Registering FFT (<function _FFTGrad at 0x0000000006358AE8>) in gradient.
tensorflow: Level 1: Registering IFFT (<function _IFFTGrad at 0x0000000006362158>) in gradient.
tensorflow: Level 1: Registering FFT2D (<function _FFT2DGrad at 0x00000000063621E0>) in gradient.
tensorflow: Level 1: Registering IFFT2D (<function _IFFT2DGrad at 0x0000000006362268>) in gradient.
tensorflow: Level 1: Registering FFT3D (<function _FFT3DGrad at 0x0000000006362378>) in gradient.
tensorflow: Level 1: Registering IFFT3D (<function _IFFT3DGrad at 0x00000000063622F0>) in gradient.
tensorflow: Level 1: Registering RFFT (<function _RFFTGradHelper.
Process finished with exit code 1
楼主您好,我为什么会报一堆的错误啊,我没弄懂什么意思
您好,关注了您写的书和代码,用了您写的fune tuning训练出来分类模型,要测试一张图片是哪个类型的话要如何运用呢,我看了很大资料说要有inference里面的logits,但是这个好像是cifar10里面的,目前是个初学者,很多不懂,希望得到指点,非常感谢
6.5.2节中 为什么不同大小的图片均能通过加载的inception-v3模型生成一个2048的特征向量,求具体原理。
@caicloud 恳请指教。