Verify MD5 checksum

What is MD5 checksum?

MD5 checksum is a cryptographic hash function that produces a fixed-size (128-bit) hash value from input data of arbitrary size. It can used to verify the integrity of data by ensuring that the data has not been altered or corrupted. This checksum can be recalculated from the data by anyone with access to it, and if the recalculated checksum matches the original checksum, it indicates that the data has not been tampered with. If there's any change in the data, even a small one, the checksum will be completely different, providing a reliable method for detecting alterations.

Why is Verification Recommended?

Verifying the MD5 checksum ensures that the downloaded files are intact and have not been maliciously tampered with. This is especially important for large model artifacts where the download sizes can be quite large. This is also important to ensure the integrity of the predict.py prediction scripts and other supporting files such as label_map.pbtxt and requirements.txt, to ensure that the versions of these files are compatible with your exported model.

How Can I Verify My Files?

Run the OS-specific commands in your terminal, and replace <PATH_TO_YOUR_EXPORTED_ZIP_FILE> with the path to the model zip file downloaded from Nexus.

Windows (PowerShell)

Get-FileHash <PATH_TO_YOUR_EXPORTED_ZIP_FILE> -Algorithm MD5

Linux

md5sum <PATH_TO_YOUR_EXPORTED_ZIP_FILE>

MacOS

md5sum <PATH_TO_YOUR_EXPORTED_ZIP_FILE>

The output of each command will be a MD5 checksum, which you can compare to the checksum generated on Nexus to check for parity.