Deep-Painterly-Harmonization-in-PyTorch icon indicating copy to clipboard operation
Deep-Painterly-Harmonization-in-PyTorch copied to clipboard

HTTP Error 403: Forbidden when tring to download models

Open orydatadudes opened this issue 4 years ago • 1 comments

when i run download_models.py i am getting following error "urllib.error.HTTPError: HTTP Error 403: Forbidden" so i can't download vgg19/16 can i download it from another place and them just load it, change layer's names : map = {'classifier.1.weight':u'classifier.0.weight', 'classifier.1.bias':u'classifier.0.bias', 'classifier.4.weight':u'classifier.3.weight', 'classifier.4.bias':u'classifier.3.bias'} sd = OrderedDict([(map[k] if k in map else k,v) for k,v in sd.items()])

thanks

orydatadudes avatar Jan 15 '21 09:01 orydatadudes

I got this too, but figured it out. The model location has been changed. Per https://github.com/jcjohnson/pytorch-vgg , you can find it at: https://web.eecs.umich.edu/~justincj/models/vgg19-d01eb7cb.pth I changed the address in "download_models.py", (which isn't in the "models" folder, contradictory to the instructions, just saying) and am currently running pass1.py, seemingly, just fine.

HandsomeDevilv112 avatar May 26 '21 07:05 HandsomeDevilv112