tlt-prune error: IOError: Invalid decryption. Unable to open file (File signature not found)

Hi,

I am attempting to prune the “tlt_resnet18_detecnet_v2_v1” pretrained model with this command:

tlt-prune -pm /workspace/nvidia_experiment/tlt_resnet18_detectnet_v2_v1/resnet18.hdf5 \
-o /workspace/nvidia_experiment/pruned_models \
-k $My_API_KEY

However, I am getting this error:

Traceback (most recent call last):
  File "/usr/local/bin/tlt-prune", line 10, in <module>
    sys.exit(main())
  File "./common/magnet_prune.py", line 169, in main
  File "./common/magnet_prune.py", line 105, in run_pruning
  File "./common/utils.py", line 154, in decode_to_keras
IOError: Invalid decryption. Unable to open file (File signature not found)

Looking for some tips on how to fix this.

Thanks!

Hi,
Please run tlt-train against hdf5 file firstly and will get the tlt format file.
Then run tlt-prune against the tlt format file.

Got it. Thanks.

That works.

Still I am facing same error…

Hi sdeep038,
I reply on your same question at IOError: Invalid decryption. Unable to open file (File signature not found) tlt-prune command - TAO Toolkit - NVIDIA Developer Forums .
Let’s tracking via that ticket.Thanks.