SDEdit icon indicating copy to clipboard operation
SDEdit copied to clipboard

urllib.error.HTTPError: HTTP Error 403: Forbidden

Open yuuma002 opened this issue 1 year ago • 8 comments

Hi, we cannot download the lsun_bedroom1.pth using the official command python main.py --exp ./runs/ --config bedroom.yml --sample -i images --npy_name lsun_bedroom1 --sample_step 3 --t 500 --ni. How could we fix this error? The traceback is posted below.

Thank you very much.

  File "main.py", line 104, in main
    runner.image_editing_sample()
  File "/mnt/zff/code/diffusion_model/sdedit/sdedit/runners/image_editing.py", line 113, in image_editing_sample
    download_process_data(path="colab_demo")
  File "/mnt/zff/code/diffusion_model/sdedit/sdedit/functions/process_data.py", line 8, in download_process_data
    torch.hub.download_url_to_file('https://image-editing-test-12345.s3-us-west-2.amazonaws.com/colab_examples/lsun_bedroom1.pth', os.path.join(path, 'lsun_bedroom1.pth'))
  File "/miniconda3/envs/t1/lib/python3.8/site-packages/torch/hub.py", line 611, in download_url_to_file
    u = urlopen(req)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/miniconda3/envs/t1/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

yuuma002 avatar Aug 02 '23 12:08 yuuma002

got the same question

stephenivy07 avatar Sep 20 '23 11:09 stephenivy07

me too

sunzhe09 avatar Sep 26 '23 06:09 sunzhe09

got same question

Powderbluee avatar Oct 11 '23 05:10 Powderbluee

me too

Zannnn avatar Oct 27 '23 08:10 Zannnn

me too

GISStd avatar Nov 02 '23 03:11 GISStd

same problem here, has anyone found a solution?

1LOVESJohnny avatar Dec 13 '23 16:12 1LOVESJohnny

Does anyone solve this problem?

jzhangCSER01 avatar Jul 04 '24 02:07 jzhangCSER01