Problem downloading model files
When attempting to initialize a dataset using the npyx library, the function download_file located in npyx.c4.dataset_init.py fails to retrieve the required model resources. Specifically, when the script iterates through the URLs defined in MODELS_URL_DICT and HESSIANS_URL_DICT, the download process completes instantly but results in a corrupted file (0KB) instead of the actual model weights.
Technical Description of the Problem: The issue is caused by a security challenge from the AWS Web Application Firewall (WAF) protecting the Figshare storage servers. Instead of the expected binary stream, the server intercepts the Python requests call and returns a "Challenge" page.
I tried several alternatives to resolve this issue, but none of them worked.
@fededagos ?
I recently encountered a similar problem with another project with data on figshare, but didn't immediately think it would have been a problem here as well... I will work on a fix in the coming days!