NeuroPyxels icon indicating copy to clipboard operation
NeuroPyxels copied to clipboard

Problem downloading model files

Open FranciscoNaveros opened this issue 9 months ago • 2 comments

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.

FranciscoNaveros avatar Feb 27 '26 18:02 FranciscoNaveros

@fededagos ?

m-beau avatar Mar 02 '26 19:03 m-beau

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!

fededagos avatar Mar 02 '26 19:03 fededagos