deep3d icon indicating copy to clipboard operation
deep3d copied to clipboard

AttributeError

Open OliveS9 opened this issue 4 years ago • 1 comments

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'

OliveS9 avatar Dec 21 '21 10:12 OliveS9

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

3ZadeSSG avatar Feb 11 '22 09:02 3ZadeSSG