Closed bfineran closed 1 year ago
Looks like this is causing a failing unit test:
ERROR tests/sparsezoo/analyze/test_model_analysis_creation.py - NotADirectoryError: [Errno 20] Not a directory:
'/home/runner/.cache/sparsezoo/neuralmagic/resnet_v1-50-imagenet-pruned95_quantized/deployment.tar.gz/model.onnx'
to land with https://github.com/neuralmagic/deepsparse/pull/1318
updates
Model
to target the compressed deployment directory tarball instead of the loose directory includes a helper function for downloading/unzipping the tarballsimple test:
This PR adds a
AliasedSelectDirectory
class that can be used to download a different file, but point to the actual expected directory.Now, the deployment folder is always downloaded as a tar ball and extracted instead of downloading all files.
Test:
Case 1: When model is not already downloaded:
Case 2: When the files are already downloaded