Hi,
I trained the mask_rcnn on the default notebook, with the input size 832x1344 all fine.
Then, I changed only the “image_size” param to 320x448 (both factors of 64, as guided) and retrained - looks ok.
BUT
when I issue the tlt-export command:
tlt-export mask_rcnn -m $USER_EXPERIMENT_DIR/experiment_dir_unpruned/model.step-58500.tlt -k $KEY -e $SPECS_DIR/maskrcnn_train_resnet50.txt --batch_size 1 --data_type int8 --cal_image_dir $DATA_DOWNLOAD_DIR/raw-data/val2017 --batches 10 --cal_cache_file $USER_EXPERIMENT_DIR/export/maskrcnn.cal --cal_data_file $USER_EXPERIMENT_DIR/export/maskrcnn.tensorfile
I get:
… output that looks ok …
Marking ['generate_detections', 'mask_head/mask_fcn_logits/BiasAdd'] as outputs
2020-12-09 11:04:21,971 [INFO] iva.mask_rcnn.export.exporter: Converted model was saved into /workspace/tlt-experiments/maskrcnn/experiment_dir_unpruned/model.step-58500.etlt
8it [00:00, 16.23it/s]
Traceback (most recent call last):
File "/usr/local/bin/tlt-export", line 8, in <module>
sys.exit(main())
File "/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/app.py", line 185, in main
File "/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/app.py", line 263, in run_export
File "/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/mask_rcnn/export/exporter.py", line 528, in export
File "/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/base_exporter.py", line 206, in get_calibrator
File "/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/base_exporter.py", line 317, in generate_tensor_file
File "/home/vpraveen/.cache/dazel/_dazel_vpraveen/715c8bafe7816f3bb6f309cd506049bb/execroot/ai_infra/bazel-out/k8-py3-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/common/export/base_exporter.py", line 380, in prepare_chunk
ValueError: operands could not be broadcast together with shapes (320,448) (3,) (320,448)
And only the maskrcnn.tensorfile gets created, while the .engine and the .cal files are not created.
Any ideas ?
Thanks for the help !