When I was downloading the resnet18 network using torchvision.models.resnet18(), I manually terminated it once and when I ran it again, I got the error PytorchStreamReader failed reading zip archive: failed finding central directory
This is because after manually terminating the program, the file was halfway down, but when I rerun it, the program thought it was done and started unpacking, which resulted in an error. Here is the file I downloaded halfway:
The procedure to detect if the file already exists is in the torch.hub file at line 585, follow the error message to find the torch.hub file
Type a breakpoint here, debug it, then see what the value of cached_file is here, follow the path of cached_file to find the file that is halfway down, delete it and you’re done.
When I run it, the path of this file looks like this
Read More:
- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed [Solved]
- Setting label malloc in MAC development_ error_ Break breakpoint (Xcode)
- Cv2.dnn read model error [How to Solve]
- Pytorch failed to specify GPU resolution
- Eclipse Graphical Layout Error: Failed to find the style corresponding to the id 2130772027
- Find malloc_error_Root cause method of break error
- Error. Onload failed when ‘rjava’ was calculated in loadnamespace()
- [Solved] Mavenwas cached in the local repository
- [Solved] RuntimeError: CUDA error: out of memory
- [Solved] jink Download Error: Failed to download RAMCode. Failed to prepare for programming.
- [Solved] RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR
- Centos pip install uwsgi error: “fatal error: Python.h: No such file or directory”
- How to Solve bootstrap.sh error during the construction of fabric environment
- [Solved] Excel plug in installation failed: unable to resolve the value of property ‘type’
- [Solved] CUDA error:-UserWarning: CUDA initialization: CUDA unknown error
- [Solved] Error downloading standard development IDs for MRPC. You will need to manually split your data.
- [Solved] ambiguous import: found package github.com/spf13/cobra/cobra in multiple modules
- blackduck Error: Request failed authorization [HTTP Error]: XXX, response was 403 Forbidden.
- [Solved] Triton-inference-server Start Error: Internal – failed to load all models
- [Solved] MATLAB Error: Wrong use of commLTETurboDecoder/step