AttributeError
Could anyone please help with fixing the following import error when trying to run urllib.urlretrieve('http://homes.cs.washington.edu/~jxie/download/deep3d-0050.params', 'deep3d-0050.params')? Thanks a lot.
----> 2 urllib.urlretrieve('http://homes.cs.washington.edu/~jxie/download/deep3d-0050.params', 'deep3d-0050.params') 3 model = mx.model.FeedForward.load('deep3d', 50, mx.gpu(0))
AttributeError: module 'urllib' has no attribute 'urlretrieve'
First the url for the model weights is not valid anymore, I tried running it but the file is missing. A saved version of model weights can be found at this repo: https://github.com/n1ckfg/deep3d
Also the urllib now has the retrieve function inside urllib.request, so you need to use urllib.request.urlretrieve