neo-ai / neo-ai-dlr

Neo-AI-DLR is a common runtime for machine learning models compiled by AWS SageMaker Neo, TVM, or TreeLite.
Apache License 2.0
491 stars 107 forks source link

hash mismatch of resnet_v1.5_50-ml_c4.tar.gz file when building DLR #230

Open denisyuji opened 4 years ago

denisyuji commented 4 years ago

I am building from the source for x86, with:

git clone --recursive https://github.com/neo-ai/neo-ai-dlr.git
cd neo-ai-dlr
mkdir build
cd build
cmake ..

Then, I got the following error:

...

-- Added Test: dlr_relayvm_test
-- Added Test: dlr_test
-- Added Test: dlr_treelite_test
-- Added Test: dlr_tvm_test
-- Downloading: https://neo-ai-dlr-test-artifacts.s3-us-west-2.amazonaws.com/tflite-models/cat224-3.txt to /home/denis/TEMP/neo-ai-dlr/build/cat224-3.txt
-- Downloading: https://neo-ai-dlr-test-artifacts.s3-us-west-2.amazonaws.com/test-data/street_small.npy to /home/denis/TEMP/neo-ai-dlr/build/street_small.npy
-- Downloading: https://neo-ai-dlr-test-artifacts.s3-us-west-2.amazonaws.com/compiled-models/resnet_v1.5_50-ml_c4.tar.gz to /tmp/resnet_v1.5_50-ml_c4.tar.gz
CMake Error at cmake/Utils.cmake:48 (file):
  file DOWNLOAD HASH mismatch

    for file: [/tmp/resnet_v1.5_50-ml_c4.tar.gz]
      expected hash: [447c22239e63882a2bc754db550131756373d4df]
        actual hash: [42c01a36f6ec0eea01f7a40e4217b88ffc503179]
             status: [28;"Timeout was reached"]

Call Stack (most recent call first):
  CMakeLists.txt:462 (download_file)

I changed the line 49 from cmake/Utils.cmake from:

         TIMEOUT 60  # seconds

to:

         TIMEOUT 600  # seconds

and then it built correctly. I suggest changing this parameter to avoid errors in slower connections.

trevor-m commented 4 years ago

Hey @denisyuji I also experienced that issue and it seemed to resolve itself, I didn’t realize it was related to the internet connection. Thanks for the timeout suggestion, I will increase it!