Toybrick

tensorflow faster rcnn 转rknn过程中报错

jfangah

中级会员

积分
214
楼主
发表于 2019-10-16 17:31:06    查看: 8926|回复: 14 | [复制链接]    打印 | 只看该作者
我的转换代码如下:
import numpy as np
import cv2
from rknn.api import RKNN

if __name__ == '__main__':

    INPUT_SIZE = 544
    # Create RKNN object
    rknn = RKNN(verbose = True)

    # Config for Model Input PreProcess
    rknn.config(channel_mean_value='128 128 128 128', reorder_channel='0 1 2')

    # Load TensorFlow Model

    print('--> Loading model')
    rknn.load_tensorflow(tf_pb='frozen_r101_frcnn_1.pb',
                         inputs=['Placeholder'],
                         outputs=['add'],
                         input_size_list=[[600, 800, 3]])
    print('done')

    # Build Model
    print('--> Building model')
    rknn.build(do_quantization=False)#True, dataset='./dataset.txt')
    print('done')

    # Export RKNN Model
    rknn.export_rknn('./ssd_mobilenet_v1_coco.rknn')

    rknn.release()




报错信息如下:

--> Loading model
D import clients finished

Instructions for updating:
Use tf.compat.v1.graph_util.extract_sub_graph
I Current TF Model producer version 0 min consumer version 0 bad consumer version []
I short-cut resnet_v1_101/block3/unit_14/bottleneck_v1/conv2/BatchNorm/moving_meanut0 - resnet_v1_101_2/block3/unit_14/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_14/bottleneck_v1/conv2/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_11/bottleneck_v1/conv1/BatchNorm/moving_varianceut0 - resnet_v1_101_2/block3/unit_11/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_11/bottleneck_v1/conv1/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block2/unit_2/bottleneck_v1/conv3/BatchNorm/betaut0 - resnet_v1_101_2/block2/unit_2/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block2/unit_2/bottleneck_v1/conv3/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_17/bottleneck_v1/conv3/BatchNorm/betaut0 - resnet_v1_101_2/block3/unit_17/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_17/bottleneck_v1/conv3/BatchNorm/beta/read
I short-cut resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/BatchNorm/moving_meanut0 - resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/moving_varianceut0 - resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block2/unit_4/bottleneck_v1/conv2/weightsut0 - resnet_v1_101_2/block2/unit_4/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block2/unit_4/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block3/unit_6/bottleneck_v1/conv2/BatchNorm/moving_varianceut0 - resnet_v1_101_2/block3/unit_6/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_6/bottleneck_v1/conv2/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/BatchNorm/betaut0 - resnet_v1_101_2/block3/unit_6/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_14/bottleneck_v1/conv2/BatchNorm/moving_varianceut0 - resnet_v1_101_2/block3/unit_14/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_14/bottleneck_v1/conv2/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_22/bottleneck_v1/conv1/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_22/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_22/bottleneck_v1/conv1/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_23/bottleneck_v1/conv1/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_23/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_23/bottleneck_v1/conv1/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_13/bottleneck_v1/conv2/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block3/unit_13/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_13/bottleneck_v1/conv2/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_19/bottleneck_v1/conv3/weights:out0 - resnet_v1_101_2/block3/unit_19/bottleneck_v1/conv3/Conv2D:in1 skip resnet_v1_101/block3/unit_19/bottleneck_v1/conv3/weights/read
I short-cut resnet_v1_101/block1/unit_2/bottleneck_v1/conv2/BatchNorm/gamma:out0 - resnet_v1_101_1/block1/unit_2/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block1/unit_2/bottleneck_v1/conv2/BatchNorm/gamma/read
I short-cut resnet_v1_101/block2/unit_2/bottleneck_v1/conv2/BatchNorm/beta:out0 - resnet_v1_101_2/block2/unit_2/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block2/unit_2/bottleneck_v1/conv2/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_22/bottleneck_v1/conv2/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_22/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_22/bottleneck_v1/conv2/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_6/bottleneck_v1/conv2/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_6/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_6/bottleneck_v1/conv2/BatchNorm/beta/read
I short-cut resnet_v1_101/block1/unit_1/bottleneck_v1/shortcut/weights:out0 - resnet_v1_101_1/block1/unit_1/bottleneck_v1/shortcut/Conv2D:in1 skip resnet_v1_101/block1/unit_1/bottleneck_v1/shortcut/weights/read
I short-cut resnet_v1_101/block3/unit_14/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_2/block3/unit_14/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block3/unit_14/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block3/unit_13/bottleneck_v1/conv2/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_13/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_13/bottleneck_v1/conv2/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_20/bottleneck_v1/conv1/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block3/unit_20/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_20/bottleneck_v1/conv1/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_1/bottleneck_v1/conv2/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_1/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_1/bottleneck_v1/conv2/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_5/bottleneck_v1/conv3/weights:out0 - resnet_v1_101_2/block3/unit_5/bottleneck_v1/conv3/Conv2D:in1 skip resnet_v1_101/block3/unit_5/bottleneck_v1/conv3/weights/read
I short-cut resnet_v1_101/block3/unit_5/bottleneck_v1/conv2/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_5/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_5/bottleneck_v1/conv2/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_22/bottleneck_v1/conv3/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_22/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_22/bottleneck_v1/conv3/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/moving_mean:out0 - resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_9/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_9/bottleneck_v1/conv2/BatchNorm/gamma/read
I short-cut resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/beta:out0 - resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_23/bottleneck_v1/conv3/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_23/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_23/bottleneck_v1/conv3/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block2/unit_1/bottleneck_v1/conv1/BatchNorm/beta:out0 - resnet_v1_101_2/block2/unit_1/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block2/unit_1/bottleneck_v1/conv1/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_12/bottleneck_v1/conv3/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block3/unit_12/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_12/bottleneck_v1/conv3/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_6/bottleneck_v1/conv1/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block3/unit_6/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_6/bottleneck_v1/conv1/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block2/unit_2/bottleneck_v1/conv1/BatchNorm/gamma:out0 - resnet_v1_101_2/block2/unit_2/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block2/unit_2/bottleneck_v1/conv1/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_23/bottleneck_v1/conv3/weights:out0 - resnet_v1_101_2/block3/unit_23/bottleneck_v1/conv3/Conv2D:in1 skip resnet_v1_101/block3/unit_23/bottleneck_v1/conv3/weights/read
I short-cut resnet_v1_101/block3/unit_12/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_2/block3/unit_12/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block3/unit_12/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block2/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block2/unit_1/bottleneck_v1/shortcut/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block2/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_4/bottleneck_v1/conv3/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_4/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_4/bottleneck_v1/conv3/BatchNorm/gamma/read
I short-cut resnet_v1_101/block1/unit_1/bottleneck_v1/conv3/BatchNorm/moving_mean:out0 - resnet_v1_101_1/block1/unit_1/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block1/unit_1/bottleneck_v1/conv3/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_13/bottleneck_v1/conv1/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_13/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_13/bottleneck_v1/conv1/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_20/bottleneck_v1/conv3/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block3/unit_20/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_20/bottleneck_v1/conv3/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block2/unit_3/bottleneck_v1/conv3/BatchNorm/beta:out0 - resnet_v1_101_2/block2/unit_3/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block2/unit_3/bottleneck_v1/conv3/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_14/bottleneck_v1/conv1/weights:out0 - resnet_v1_101_2/block3/unit_14/bottleneck_v1/conv1/Conv2D:in1 skip resnet_v1_101/block3/unit_14/bottleneck_v1/conv1/weights/read
I short-cut resnet_v1_101/block1/unit_2/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_1/block1/unit_2/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block1/unit_2/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/gamma:out0 - resnet_v1_101_4/block4/unit_1/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/gamma/read
I short-cut resnet_v1_101/rpn_bbox_pred/weights:out0 - resnet_v1_101_3/rpn_bbox_pred/Conv2D:in1 skip resnet_v1_101/rpn_bbox_pred/weights/read
I short-cut resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/moving_mean:out0 - resnet_v1_101_4/block4/unit_1/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block4/unit_1/bottleneck_v1/conv1/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_19/bottleneck_v1/conv3/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_19/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_19/bottleneck_v1/conv3/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_10/bottleneck_v1/conv1/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_10/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_10/bottleneck_v1/conv1/BatchNorm/gamma/read
I short-cut resnet_v1_101/block2/unit_2/bottleneck_v1/conv1/BatchNorm/beta:out0 - resnet_v1_101_2/block2/unit_2/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block2/unit_2/bottleneck_v1/conv1/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_21/bottleneck_v1/conv2/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_21/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_21/bottleneck_v1/conv2/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_20/bottleneck_v1/conv1/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_20/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_20/bottleneck_v1/conv1/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_9/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_9/bottleneck_v1/conv3/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_11/bottleneck_v1/conv1/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_11/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_11/bottleneck_v1/conv1/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/conv1/BatchNorm/gamma:out0 - resnet_v1_101/conv1/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/conv1/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_11/bottleneck_v1/conv3/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_11/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_11/bottleneck_v1/conv3/BatchNorm/beta/read
I short-cut resnet_v1_101/block2/unit_2/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_2/block2/unit_2/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block2/unit_2/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/BatchNorm/beta:out0 - resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block4/unit_3/bottleneck_v1/conv1/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_10/bottleneck_v1/conv1/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_10/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_10/bottleneck_v1/conv1/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_5/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_2/block3/unit_5/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block3/unit_5/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block3/unit_13/bottleneck_v1/conv3/weights:out0 - resnet_v1_101_2/block3/unit_13/bottleneck_v1/conv3/Conv2D:in1 skip resnet_v1_101/block3/unit_13/bottleneck_v1/conv3/weights/read
I short-cut resnet_v1_101/block3/unit_10/bottleneck_v1/conv3/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_10/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_10/bottleneck_v1/conv3/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_9/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_9/bottleneck_v1/conv1/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_22/bottleneck_v1/conv2/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_22/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_22/bottleneck_v1/conv2/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_18/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_2/block3/unit_18/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block3/unit_18/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block3/unit_16/bottleneck_v1/conv3/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_16/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_16/bottleneck_v1/conv3/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_18/bottleneck_v1/conv1/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_18/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_18/bottleneck_v1/conv1/BatchNorm/gamma/read
I short-cut resnet_v1_101/block2/unit_2/bottleneck_v1/conv3/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block2/unit_2/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block2/unit_2/bottleneck_v1/conv3/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/moving_mean:out0 - resnet_v1_101_4/block4/unit_1/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block4/unit_1/bottleneck_v1/conv2/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_6/bottleneck_v1/conv2/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_6/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_6/bottleneck_v1/conv2/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_13/bottleneck_v1/conv3/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_13/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_13/bottleneck_v1/conv3/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_7/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_7/bottleneck_v1/conv2/BatchNorm/beta/read
I short-cut resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/weights:out0 - resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv1/Conv2D:in1 skip resnet_v1_101/block4/unit_2/bottleneck_v1/conv1/weights/read
I short-cut resnet_v1_101/block1/unit_3/bottleneck_v1/conv2/BatchNorm/beta:out0 - resnet_v1_101_1/block1/unit_3/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block1/unit_3/bottleneck_v1/conv2/BatchNorm/beta/read
I short-cut resnet_v1_101/conv1/weights:out0 - resnet_v1_101/conv1/Conv2D:in1 skip resnet_v1_101/conv1/weights/read
I short-cut resnet_v1_101/block1/unit_2/bottleneck_v1/conv1/BatchNorm/gamma:out0 - resnet_v1_101_1/block1/unit_2/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block1/unit_2/bottleneck_v1/conv1/BatchNorm/gamma/read
I short-cut resnet_v1_101/block2/unit_1/bottleneck_v1/shortcut/weights:out0 - resnet_v1_101_2/block2/unit_1/bottleneck_v1/shortcut/Conv2D:in1 skip resnet_v1_101/block2/unit_1/bottleneck_v1/shortcut/weights/read
I short-cut resnet_v1_101/block2/unit_3/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_2/block2/unit_3/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block2/unit_3/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block3/unit_4/bottleneck_v1/conv2/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_4/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_4/bottleneck_v1/conv2/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_19/bottleneck_v1/conv1/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_19/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_19/bottleneck_v1/conv1/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_4/bottleneck_v1/conv3/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_4/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_4/bottleneck_v1/conv3/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_6/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_6/bottleneck_v1/conv3/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_8/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block1/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_variance:out0 - resnet_v1_101_1/block1/unit_1/bottleneck_v1/shortcut/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block1/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_8/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_21/bottleneck_v1/conv1/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_21/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_21/bottleneck_v1/conv1/BatchNorm/beta/read
I short-cut resnet_v1_101/block2/unit_1/bottleneck_v1/conv3/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block2/unit_1/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block2/unit_1/bottleneck_v1/conv3/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_5/bottleneck_v1/conv1/weights:out0 - resnet_v1_101_2/block3/unit_5/bottleneck_v1/conv1/Conv2D:in1 skip resnet_v1_101/block3/unit_5/bottleneck_v1/conv1/weights/read
I short-cut resnet_v1_101/block3/unit_4/bottleneck_v1/conv3/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block3/unit_4/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_4/bottleneck_v1/conv3/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_21/bottleneck_v1/conv1/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_21/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_21/bottleneck_v1/conv1/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_17/bottleneck_v1/conv3/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_17/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_17/bottleneck_v1/conv3/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_11/bottleneck_v1/conv1/weights:out0 - resnet_v1_101_2/block3/unit_11/bottleneck_v1/conv1/Conv2D:in1 skip resnet_v1_101/block3/unit_11/bottleneck_v1/conv1/weights/read
I short-cut resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/gamma:out0 - resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/gamma/read
I short-cut resnet_v1_101/block1/unit_3/bottleneck_v1/conv1/weights:out0 - resnet_v1_101_1/block1/unit_3/bottleneck_v1/conv1/Conv2D:in1 skip
...
...
...
I short-cut resnet_v1_101/block3/unit_17/bottleneck_v1/conv1/weights:out0 - resnet_v1_101_2/block3/unit_17/bottleneck_v1/conv1/Conv2D:in1 skip resnet_v1_101/block3/unit_17/bottleneck_v1/conv1/weights/read
I short-cut resnet_v1_101/bbox_pred/biases:out0 - resnet_v1_101_5/bbox_pred/BiasAdd:in1 skip resnet_v1_101/bbox_pred/biases/read
I short-cut resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block3/unit_8/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_8/bottleneck_v1/conv2/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_22/bottleneck_v1/conv2/BatchNorm/moving_mean:out0 - resnet_v1_101_2/block3/unit_22/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm:in3 skip resnet_v1_101/block3/unit_22/bottleneck_v1/conv2/BatchNorm/moving_mean/read
I short-cut resnet_v1_101/block3/unit_15/bottleneck_v1/conv3/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_15/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_15/bottleneck_v1/conv3/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_15/bottleneck_v1/conv3/weights:out0 - resnet_v1_101_2/block3/unit_15/bottleneck_v1/conv3/Conv2D:in1 skip resnet_v1_101/block3/unit_15/bottleneck_v1/conv3/weights/read
I short-cut resnet_v1_101/block2/unit_4/bottleneck_v1/conv1/weights:out0 - resnet_v1_101_2/block2/unit_4/bottleneck_v1/conv1/Conv2D:in1 skip resnet_v1_101/block2/unit_4/bottleneck_v1/conv1/weights/read
I short-cut resnet_v1_101/block3/unit_17/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_2/block3/unit_17/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block3/unit_17/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/BatchNorm/gamma:out0 - resnet_v1_101_2/block3/unit_8/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block3/unit_8/bottleneck_v1/conv3/BatchNorm/gamma/read
I short-cut resnet_v1_101/block3/unit_16/bottleneck_v1/conv1/BatchNorm/moving_variance:out0 - resnet_v1_101_2/block3/unit_16/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in4 skip resnet_v1_101/block3/unit_16/bottleneck_v1/conv1/BatchNorm/moving_variance/read
I short-cut resnet_v1_101/block3/unit_23/bottleneck_v1/conv1/BatchNorm/beta:out0 - resnet_v1_101_2/block3/unit_23/bottleneck_v1/conv1/BatchNorm/FusedBatchNorm:in2 skip resnet_v1_101/block3/unit_23/bottleneck_v1/conv1/BatchNorm/beta/read
I short-cut resnet_v1_101/block3/unit_4/bottleneck_v1/conv2/weights:out0 - resnet_v1_101_2/block3/unit_4/bottleneck_v1/conv2/Conv2D:in1 skip resnet_v1_101/block3/unit_4/bottleneck_v1/conv2/weights/read
I short-cut resnet_v1_101/block1/unit_1/bottleneck_v1/conv3/BatchNorm/gamma:out0 - resnet_v1_101_1/block1/unit_1/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm:in1 skip resnet_v1_101/block1/unit_1/bottleneck_v1/conv3/BatchNorm/gamma/read
I Have 15 tensors convert to const tensor
2019-10-16 17:20:33.732186: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-10-16 17:20:34.443459: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x3c08520 executing computations on platform CUDA. Devices:
2019-10-16 17:20:34.443529: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): GeForce RTX 2080 Ti, Compute Capability 7.5
2019-10-16 17:20:34.443545: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (1): GeForce RTX 2080 Ti, Compute Capability 7.5
2019-10-16 17:20:34.468449: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2095110000 Hz
2019-10-16 17:20:34.471571: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x3caff00 executing computations on platform Host. Devices:
2019-10-16 17:20:34.471623: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
2019-10-16 17:20:34.472334: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 0 with properties:
name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545
pciBusID: 0000:05:00.0
totalMemory: 10.73GiB freeMemory: 10.53GiB
2019-10-16 17:20:34.472818: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 1 with properties:
name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545
pciBusID: 0000:81:00.0
totalMemory: 10.73GiB freeMemory: 10.53GiB
2019-10-16 17:20:34.472975: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding visible gpu devices: 0, 1
2019-10-16 17:20:34.476547: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-10-16 17:20:34.476583: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990]      0 1
2019-10-16 17:20:34.476600: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0:   N N
2019-10-16 17:20:34.476612: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 1:   N N
2019-10-16 17:20:34.477610: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10248 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:05:00.0, compute capability: 7.5)
2019-10-16 17:20:34.478223: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 10248 MB memory) -> physical GPU (device: 1, name: GeForce RTX 2080 Ti, pci bus id: 0000:81:00.0, compute capability: 7.5)
2019-10-16 17:20:35.541716: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_12. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:35.541831: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_14. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:35.541847: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_16. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:35.541860: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_18. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:36.373214: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_12. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:36.373293: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_14. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:36.373307: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_16. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:36.373319: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_18. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
I build output layer attach_add:out0
I build input layer Placeholder:out0
D Try match Add add
2019-10-16 17:20:40.282221: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding visible gpu devices: 0, 1
2019-10-16 17:20:40.282434: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-10-16 17:20:40.282448: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990]      0 1
2019-10-16 17:20:40.282454: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0:   N N
2019-10-16 17:20:40.282460: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 1:   N N
2019-10-16 17:20:40.282811: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10248 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:05:00.0, compute capability: 7.5)
2019-10-16 17:20:40.283068: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 10248 MB memory) -> physical GPU (device: 1, name: GeForce RTX 2080 Ti, pci bus id: 0000:81:00.0, compute capability: 7.5)
2019-10-16 17:20:41.002206: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_12. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:41.002297: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_14. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:41.002334: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_16. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:41.002356: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_18. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:41.784621: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_12. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:41.784705: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_14. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:41.784719: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_16. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:41.784732: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_18. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:42.024706: I tensorflow/stream_executor/dso_loader.cc:152] successfully opened CUDA library libcublas.so.10.0 locally
I Match mul_add_2_bn [['add', 'mul', 'add/y', 'mul/y']] [['Add', 'Mul', 'C', 'C_1']] to [['batchnormalize']]
D Try match BiasAdd resnet_v1_101_5/bbox_pred/BiasAdd
I Match fullconnect [['resnet_v1_101_5/bbox_pred/BiasAdd', 'resnet_v1_101_5/bbox_pred/MatMul', 'resnet_v1_101/bbox_pred/biases', 'resnet_v1_101/bbox_pred/weights']] [['BiasAdd', 'MatMul', 'C', 'C_1']] to [['fullconnect']]
D Try match Mean Mean
I Match reduce_mean_nokeepshape [['Mean', 'Mean/reduction_indices']] [['Mean', 'C']] to [['pooling', 'reshape']]
2019-10-16 17:20:43.649220: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding visible gpu devices: 0, 1
2019-10-16 17:20:43.649482: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-10-16 17:20:43.649496: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990]      0 1
2019-10-16 17:20:43.649503: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0:   N N
2019-10-16 17:20:43.649509: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 1:   N N
2019-10-16 17:20:43.649860: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10248 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:05:00.0, compute capability: 7.5)
2019-10-16 17:20:43.650109: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 10248 MB memory) -> physical GPU (device: 1, name: GeForce RTX 2080 Ti, pci bus id: 0000:81:00.0, compute capability: 7.5)
2019-10-16 17:20:44.380881: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_12. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:44.380976: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_14. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:44.381017: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_16. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:44.381034: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_18. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:45.203796: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_12. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:45.203890: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_14. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:45.203908: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_16. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:45.203924: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_18. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:46.181623: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding visible gpu devices: 0, 1
2019-10-16 17:20:46.181810: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-10-16 17:20:46.181824: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990]      0 1
2019-10-16 17:20:46.181831: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0:   N N
2019-10-16 17:20:46.181837: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 1:   N N
2019-10-16 17:20:46.182201: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10248 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:05:00.0, compute capability: 7.5)
2019-10-16 17:20:46.182614: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 10248 MB memory) -> physical GPU (device: 1, name: GeForce RTX 2080 Ti, pci bus id: 0000:81:00.0, compute capability: 7.5)
2019-10-16 17:20:47.055105: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_12. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:47.055190: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_14. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:47.055205: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_16. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:47.055218: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_18. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:47.877976: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_12. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:47.878061: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_14. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:47.878075: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_16. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
2019-10-16 17:20:47.878088: W ./tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node resnet_v1_101_3/rois/strided_slice_18. Error: Pack node (resnet_v1_101_3/rois/stack) axis attribute is out of bounds: 1
D connect ['pooling:out0', 'reshape:in0']
D Try match Relu resnet_v1_101_4/block4/unit_3/bottleneck_v1/Relu
I Match relu [['resnet_v1_101_4/block4/unit_3/bottleneck_v1/Relu']] [['Relu']] to [['relu']]
D Try match Add resnet_v1_101_4/block4/unit_3/bottleneck_v1/add
I Match add [['resnet_v1_101_4/block4/unit_3/bottleneck_v1/add']] [['Add']] to [['add']]
D Try match Relu resnet_v1_101_4/block4/unit_2/bottleneck_v1/Relu
I Match relu [['resnet_v1_101_4/block4/unit_2/bottleneck_v1/Relu']] [['Relu']] to [['relu']]
D Try match FusedBatchNorm resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm
I Match fusebatchnorm [['resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/gamma', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/beta', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/moving_mean', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/BatchNorm/moving_variance']] [['FusedBatchNorm', 'C', 'C_1', 'C_2', 'C_3']] to [['batchnormalize']]
D Try match Add resnet_v1_101_4/block4/unit_2/bottleneck_v1/add
I Match add [['resnet_v1_101_4/block4/unit_2/bottleneck_v1/add']] [['Add']] to [['add']]
D Try match Conv2D resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv3/Conv2D
I Match single_convolution [['resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv3/Conv2D', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv3/weights']] [['Conv', 'C']] to [['convolution']]
D Try match Relu resnet_v1_101_4/block4/unit_1/bottleneck_v1/Relu
I Match relu [['resnet_v1_101_4/block4/unit_1/bottleneck_v1/Relu']] [['Relu']] to [['relu']]
D Try match FusedBatchNorm resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm
I Match fusebatchnorm [['resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/gamma', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/beta', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/moving_mean', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/BatchNorm/moving_variance']] [['FusedBatchNorm', 'C', 'C_1', 'C_2', 'C_3']] to [['batchnormalize']]
D Try match Relu resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv2/Relu
I Match relu [['resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv2/Relu']] [['Relu']] to [['relu']]
D Try match Add resnet_v1_101_4/block4/unit_1/bottleneck_v1/add
I Match add [['resnet_v1_101_4/block4/unit_1/bottleneck_v1/add']] [['Add']] to [['add']]
D Try match Conv2D resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv3/Conv2D
I Match single_convolution [['resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv3/Conv2D', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv3/weights']] [['Conv', 'C']] to [['convolution']]
D Try match FusedBatchNorm resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm
I Match fusebatchnorm [['resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/BatchNorm/gamma', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/BatchNorm/beta', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/BatchNorm/moving_mean', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/BatchNorm/moving_variance']] [['FusedBatchNorm', 'C', 'C_1', 'C_2', 'C_3']] to [['batchnormalize']]
D Try match FusedBatchNorm resnet_v1_101_4/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/FusedBatchNorm
I Match fusebatchnorm [['resnet_v1_101_4/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/FusedBatchNorm', 'resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/gamma', 'resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/beta', 'resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_mean', 'resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/BatchNorm/moving_variance']] [['FusedBatchNorm', 'C', 'C_1', 'C_2', 'C_3']] to [['batchnormalize']]
D Try match FusedBatchNorm resnet_v1_101_4/block4/unit_1/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm
I Match fusebatchnorm [['resnet_v1_101_4/block4/unit_1/bottleneck_v1/conv3/BatchNorm/FusedBatchNorm', 'resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/gamma', 'resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/beta', 'resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/moving_mean', 'resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/BatchNorm/moving_variance']] [['FusedBatchNorm', 'C', 'C_1', 'C_2', 'C_3']] to [['batchnormalize']]
D Try match Relu resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv2/Relu
I Match relu [['resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv2/Relu']] [['Relu']] to [['relu']]
D Try match Conv2D resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv2/Conv2D
I Match single_convolution [['resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv2/Conv2D', 'resnet_v1_101/block4/unit_3/bottleneck_v1/conv2/weights']] [['Conv', 'C']] to [['convolution']]
D Try match Conv2D resnet_v1_101_4/block4/unit_1/bottleneck_v1/shortcut/Conv2D
I Match single_convolution [['resnet_v1_101_4/block4/unit_1/bottleneck_v1/shortcut/Conv2D', 'resnet_v1_101/block4/unit_1/bottleneck_v1/shortcut/weights']] [['Conv', 'C']] to [['convolution']]
D Try match Conv2D resnet_v1_101_4/block4/unit_1/bottleneck_v1/conv3/Conv2D
I Match single_convolution [['resnet_v1_101_4/block4/unit_1/bottleneck_v1/conv3/Conv2D', 'resnet_v1_101/block4/unit_1/bottleneck_v1/conv3/weights']] [['Conv', 'C']] to [['convolution']]
D Try match FusedBatchNorm resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm
I Match fusebatchnorm [['resnet_v1_101_4/block4/unit_2/bottleneck_v1/conv2/BatchNorm/FusedBatchNorm', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/gamma', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/beta', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/moving_mean', 'resnet_v1_101/block4/unit_2/bottleneck_v1/conv2/BatchNorm/moving_variance']] [['FusedBatchNorm', 'C', 'C_1', 'C_2', 'C_3']] to [['batchnormalize']]
D Try match Relu resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv1/Relu
I Match relu [['resnet_v1_101_4/block4/unit_3/bottleneck_v1/conv1/Relu']] [['Relu']] to [['relu']]
D Try match CropAndResize resnet_v1_101_3/pool5/crops
['resnet_v1_101_3/pool5/mul:out0', 'resnet_v1_101_3/rois/sub_4:out0', 'resnet_v1_101_3/rois/sub_5:out0', 'resnet_v1_101_3/rois/zeros:out0', 'resnet_v1_101_3/rpn_cls_prob/concat:out0', 'resnet_v1_101_3/rpn_cls_score_reshape/concat:out0', 'resnet_v1_101_3/rois/add:out0', 'resnet_v1_101_3/pool5/mul_1:out0', 'resnet_v1_101_3/rois/sub_6:out0', 'resnet_v1_101_3/Reshape/shape:out0', 'resnet_v1_101_3/rois/add_1:out0', 'resnet_v1_101_3/rois/Add_2:out0', 'resnet_v1_101_3/rois/sub_7:out0', 'resnet_v1_101_3/rois/Add_3:out0', 'resnet_v1_101_3/Shape_1:out0']
E Catch exception when loading tensorflow model: frozen_r101_frcnn_1.pb!
T Traceback (most recent call last):
T   File "rknn/api/rknn_base.py", line 188, in rknn.api.rknn_base.RKNNBase.load_tensorflow
T   File "rknn/base/RKNNlib/converter/convert_tf.py", line 613, in rknn.base.RKNNlib.converter.convert_tf.convert_tf.match_paragraph_and_param
T TypeError: must be str, not int
done
--> Building model


网上各种搜也找不到为什么,请大神指教一下

回复

使用道具 举报

jefferyzhang

版主

积分
13574
沙发
发表于 2019-10-16 21:59:22 | 只看该作者
FRCN的PB版的子图结构在rknntoolkit1.1识别时候会有问题,是已知问题。
回复

使用道具 举报

jfangah

中级会员

积分
214
板凳
 楼主| 发表于 2019-10-17 11:47:19 | 只看该作者
jefferyzhang 发表于 2019-10-16 21:59
FRCN的PB版的子图结构在rknntoolkit1.1识别时候会有问题,是已知问题。

我转换的工具是rknntoolkit1.2,1.2也会有这个问题吗
回复

使用道具 举报

jefferyzhang

版主

积分
13574
地板
发表于 2019-10-17 14:12:14 | 只看该作者
jfangah 发表于 2019-10-17 11:47
我转换的工具是rknntoolkit1.2,1.2也会有这个问题吗

是的。你可以修改模型结构,或者换成caffe试试
回复

使用道具 举报

jfangah

中级会员

积分
214
5#
 楼主| 发表于 2019-10-17 15:11:14 | 只看该作者
jefferyzhang 发表于 2019-10-17 14:12
是的。你可以修改模型结构,或者换成caffe试试

那你们有计划去针对这个问题进行优化吗?
回复

使用道具 举报

jefferyzhang

版主

积分
13574
6#
发表于 2019-10-18 12:05:27 | 只看该作者
jfangah 发表于 2019-10-17 15:11
那你们有计划去针对这个问题进行优化吗?

有内部修复版,但是会影响其他模型正常转换,所以不打算发布。
回复

使用道具 举报

jfangah

中级会员

积分
214
7#
 楼主| 发表于 2019-10-18 13:52:59 | 只看该作者
jefferyzhang 发表于 2019-10-18 12:05
有内部修复版,但是会影响其他模型正常转换,所以不打算发布。

那如果是使用这个内部修复版转出来的rknn模型,可以在正式发布的版本里面使用吗?
回复

使用道具 举报

jefferyzhang

版主

积分
13574
8#
发表于 2019-10-18 15:05:56 | 只看该作者
jfangah 发表于 2019-10-18 13:52
那如果是使用这个内部修复版转出来的rknn模型,可以在正式发布的版本里面使用吗? ...

不确定行不行,而且只能解决特定版本模型的转换。
我们一般不会有客户用FRCN做产品。
回复

使用道具 举报

jfangah

中级会员

积分
214
9#
 楼主| 发表于 2019-10-18 15:13:05 | 只看该作者
jefferyzhang 发表于 2019-10-18 15:05
不确定行不行,而且只能解决特定版本模型的转换。
我们一般不会有客户用FRCN做产品。 ...

那可以告知你们的客户一般都用什么模型吗?
回复

使用道具 举报

jefferyzhang

版主

积分
13574
10#
发表于 2019-10-18 15:22:24 | 只看该作者
jfangah 发表于 2019-10-18 15:13
那可以告知你们的客户一般都用什么模型吗?

看到你提的redmine了,我已经跟NPU部门解释过了,他们会给你提供rknn toolkit for frcn的版本。
一般来说会用mobilenet-ssd吧,毕竟faster rcnn完整模型的运算量略大,帧率上不去。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表