root@3b0b9c604317:/home/samjth/NVIDIA_Transfer_Learning _Toolkit# tlt-train faster_rcnn -e specs/test_config.txt
Using TensorFlow backend.
2019-11-29 13:06:46.235100: 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-11-29 13:06:46.317166: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:998] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-11-29 13:06:46.317583: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x780d820 executing computations on platform CUDA. Devices:
2019-11-29 13:06:46.317604: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): GeForce GTX 1070, Compute Capability 6.1
2019-11-29 13:06:46.319434: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3192000000 Hz
2019-11-29 13:06:46.320171: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x792a210 executing computations on platform Host. Devices:
2019-11-29 13:06:46.320189: I tensorflow/compiler/xla/service/service.cc:158] StreamExecutor device (0): <undefined>, <undefined>
2019-11-29 13:06:46.320274: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 0 with properties:
name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate(GHz): 1.7465
pciBusID: 0000:01:00.0
totalMemory: 7.93GiB freeMemory: 7.25GiB
2019-11-29 13:06:46.320291: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding visible gpu devices: 0
2019-11-29 13:06:46.320767: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-11-29 13:06:46.320781: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0
2019-11-29 13:06:46.320789: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0: N
2019-11-29 13:06:46.320846: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 7056 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)
2019-11-29 13:06:46,328 [INFO] /usr/local/lib/python2.7/dist-packages/iva/faster_rcnn/scripts/train.pyc: valid_class_mapping: {u'Closed-column-tip': 4, u'Stack-diameter-change-zone': 5, u'Platforms': 0, u'Stack-shells': 2, u'Ladders': 1, u'Stack-tip': 3, u'Flare-tip': 6}
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
2019-11-29 13:06:46,334 [WARNING] tensorflow: From /usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.
Instructions for updating:
Please use `rate` instead of `keep_prob`. Rate should be set to `rate = 1 - keep_prob`.
2019-11-29 13:06:46,576 [WARNING] tensorflow: From /usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.
Instructions for updating:
Please use `rate` instead of `keep_prob`. Rate should be set to `rate = 1 - keep_prob`.
__________________________________________________________________________________________________
Layer (type) Output Shape Param # Connected to
==================================================================================================
input_1 (InputLayer) (None, 3, None, None 0
__________________________________________________________________________________________________
block1_conv1 (Conv2D) (None, 64, None, Non 1792 input_1[0][0]
__________________________________________________________________________________________________
block1_conv2 (Conv2D) (None, 64, None, Non 36928 block1_conv1[0][0]
__________________________________________________________________________________________________
block1_pool (MaxPooling2D) (None, 64, None, Non 0 block1_conv2[0][0]
__________________________________________________________________________________________________
block2_conv1 (Conv2D) (None, 128, None, No 73856 block1_pool[0][0]
__________________________________________________________________________________________________
block2_conv2 (Conv2D) (None, 128, None, No 147584 block2_conv1[0][0]
__________________________________________________________________________________________________
block2_pool (MaxPooling2D) (None, 128, None, No 0 block2_conv2[0][0]
__________________________________________________________________________________________________
block3_conv1 (Conv2D) (None, 256, None, No 295168 block2_pool[0][0]
__________________________________________________________________________________________________
block3_conv2 (Conv2D) (None, 256, None, No 590080 block3_conv1[0][0]
__________________________________________________________________________________________________
block3_conv3 (Conv2D) (None, 256, None, No 590080 block3_conv2[0][0]
__________________________________________________________________________________________________
block3_pool (MaxPooling2D) (None, 256, None, No 0 block3_conv3[0][0]
__________________________________________________________________________________________________
block4_conv1 (Conv2D) (None, 512, None, No 1180160 block3_pool[0][0]
__________________________________________________________________________________________________
block4_conv2 (Conv2D) (None, 512, None, No 2359808 block4_conv1[0][0]
__________________________________________________________________________________________________
block4_conv3 (Conv2D) (None, 512, None, No 2359808 block4_conv2[0][0]
__________________________________________________________________________________________________
block4_pool (MaxPooling2D) (None, 512, None, No 0 block4_conv3[0][0]
__________________________________________________________________________________________________
block5_conv1 (Conv2D) (None, 512, None, No 2359808 block4_pool[0][0]
__________________________________________________________________________________________________
block5_conv2 (Conv2D) (None, 512, None, No 2359808 block5_conv1[0][0]
__________________________________________________________________________________________________
block5_conv3 (Conv2D) (None, 512, None, No 2359808 block5_conv2[0][0]
__________________________________________________________________________________________________
input_2 (InputLayer) (None, 256, 4, 1) 0
__________________________________________________________________________________________________
crop_and_resize_1 (CropAndResiz (256, 512, 14, 14) 0 block5_conv3[0][0]
input_2[0][0]
__________________________________________________________________________________________________
classifier_pool (MaxPooling2D) (256, 512, 7, 7) 0 crop_and_resize_1[0][0]
__________________________________________________________________________________________________
classifier_flatten (Flatten) (256, 25088) 0 classifier_pool[0][0]
__________________________________________________________________________________________________
fc1 (Dense) (256, 4096) 102764544 classifier_flatten[0][0]
__________________________________________________________________________________________________
dropout_1 (Dropout) (256, 4096) 0 fc1[0][0]
__________________________________________________________________________________________________
fc2 (Dense) (256, 4096) 16781312 dropout_1[0][0]
__________________________________________________________________________________________________
dropout_2 (Dropout) (256, 4096) 0 fc2[0][0]
__________________________________________________________________________________________________
rpn_conv1 (Conv2D) (None, 512, None, No 2359808 block5_conv3[0][0]
__________________________________________________________________________________________________
dense_class (Dense) (256, 7) 28679 dropout_2[0][0]
__________________________________________________________________________________________________
dense_regress (Dense) (256, 24) 98328 dropout_2[0][0]
__________________________________________________________________________________________________
rpn_out_class (Conv2D) (None, 36, None, Non 18468 rpn_conv1[0][0]
__________________________________________________________________________________________________
rpn_out_regress (Conv2D) (None, 144, None, No 73872 rpn_conv1[0][0]
__________________________________________________________________________________________________
TF_reshape_2_class (TFReshape) (1, 256, 7) 0 dense_class[0][0]
__________________________________________________________________________________________________
TF_reshape_3_regr (TFReshape) (1, 256, 24) 0 dense_regress[0][0]
==================================================================================================
Total params: 136,839,699
Trainable params: 136,579,539
Non-trainable params: 260,160
__________________________________________________________________________________________________
2019-11-29 13:06:46,636 [INFO] /usr/local/lib/python2.7/dist-packages/iva/faster_rcnn/scripts/train.pyc: Loading pretrained weights from /home/samjth/NVIDIA_Transfer_Learning _Toolkit/tlt_resnet50_faster_rcnn_v1/resnet50.h5
2019-11-29 13:06:46,850 [INFO] /usr/local/lib/python2.7/dist-packages/iva/faster_rcnn/scripts/train.pyc: Pretrained weights loaded!
2019-11-29 13:06:47,082 [INFO] /usr/local/lib/python2.7/dist-packages/iva/faster_rcnn/scripts/train.pyc: training example num: 1952
2019-11-29 13:06:47,533 [INFO] /usr/local/lib/python2.7/dist-packages/iva/faster_rcnn/scripts/train.pyc: Starting training
2019-11-29 13:06:47,533 [INFO] /usr/local/lib/python2.7/dist-packages/iva/faster_rcnn/scripts/train.pyc: Epoch 1/12
Found 1952 examples in training dataset, valid image extension isjpg, jpeg and png(case sensitive)
Compressed_class_mapping: {u'Closed-column-tip': 4, u'Stack-diameter-change-zone': 5, u'Stack-tip': 3, u'Stack-shells': 2, u'Ladders': 1, u'Platforms': 0, u'Flare-tip': 6}
Name mapping:{u'Ladders': u'Ladders', u'Platforms': u'Platforms', u'Stack-diameter-change-zone': u'Stack-diameter-change-zone', u'Closed-column-tip': u'Closed-column-tip', u'Stack-tip': u'Stack-tip', u'Stack-shells': u'Stack-shells', u'Flare-tip': u'Flare-tip'}
Training dataset stats(compressed via class mapping):
{u'Closed-column-tip': 238, u'Stack-diameter-change-zone': 196, u'Platforms': 3844, u'Stack-shells': 3704, u'Ladders': 3041, u'Stack-tip': 685, u'Flare-tip': 86}
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
2019-11-29 13:06:56,728 [WARNING] tensorflow: From /usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
2019-11-29 13:07:08.670807: I tensorflow/stream_executor/dso_loader.cc:152] successfully opened CUDA library libcublas.so.10.0 locally
2019-11-29 13:07:08.979468: W tensorflow/core/common_runtime/bfc_allocator.cc:211] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.29GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available.
2019-11-29 13:07:09.060185: W tensorflow/core/common_runtime/bfc_allocator.cc:211] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.29GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available.
2019-11-29 13:07:09.603786: W tensorflow/core/common_runtime/bfc_allocator.cc:211] Allocator (GPU_0_bfc) ran out of memory trying to allocate 3.01GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available.
3/1952 [..............................] - ETA: 4:14:00 - rpn_cls: 0.7031 - rpn_regr: 0.1813 - detector_cls: 1.6736 - detector_regr: 0.1816Traceback (most recent call last):
File "/usr/local/bin/tlt-train-g1", line 10, in <module>
sys.exit(main())
File "./common/magnet_train.py", line 30, in main
File "./faster_rcnn/scripts/train.py", line 287, in main
File "./faster_rcnn/utils/roi_helpers.py", line 76, in calc_iou_np
IndexError: index 6 is out of bounds for axis 1 with size 6
Please check the attached config file of fasterrcnn
test_config.txt (3.72 KB)